CVE-2007-4917: XSS in PHP-Stats 0.1.9.2 tracking.php
- Vendor
- Php-Stats
A cross-site scripting (XSS) vulnerability exists in tracking.php in PHP-Stats version 0.1.9.2. The vulnerability is due to insufficient sanitization of user-supplied input in the 'ip' parameter during an online action, allowing attackers to inject arbitrary web script or HTML. This is a distinct vector from CVE-2007-4334.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary JavaScript in the context of the victim's browser, potentially leading to session hijacking, credential theft, or other malicious actions within the affected web application.
Mitigation
If you can’t patch tonight, do this now.
As a temporary mitigation, implement input validation and output encoding for the 'ip' parameter in tracking.php. Additionally, consider deploying a web application firewall (WAF) to filter malicious input targeting this parameter.
Remediation
Patch, then assume compromise.
Upgrade to a version of PHP-Stats where input validation and output encoding are properly implemented for the 'ip' parameter in tracking.php. If no patched version is available, apply a custom patch to sanitize and encode user input before rendering it in the browser.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2007-4917 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2007-4917 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2007-4917?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2007-4917.
- Is there a patch for CVE-2007-4917?
- Upgrade to a version of PHP-Stats where input validation and output encoding are properly implemented for the 'ip' parameter in tracking.php. If no patched version is available, apply a custom patch to sanitize and encode user input before rendering it in the browser.
- What products are affected by CVE-2007-4917?
- Php-Stats.
- How severe is CVE-2007-4917?
- CVE-2007-4917 has a CVSS v2 score of 4.3 (Medium) and an EPSS score of 1.5% (74th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.