Cross-site scripting in PHP - CVE-2007-1287

 

Cross-site scripting in PHP - CVE-2007-1287

Published: March 8, 2011 / Updated: June 10, 2025


Vulnerability identifier: #VU110456
CSH Severity: Medium
CVSS v4: []
CVE-ID: CVE-2007-1287
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data. The vulnerability allows remote attackers to conduct cross-site scripting (XSS) attacks via GET, POST, or COOKIE array values, which are not escaped in the phpinfo output, as originally fixed for CVE-2005-3388.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

PHP

How to mitigate CVE-2007-1287

Install update from vendor's website.

PHP - update to 4.4.7

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins