CVE-2012-1007 Cross-site scripting in n/a
Remote attackers can inject arbitrary web script or HTML via specific parameters in Apache Struts example applications, potentially leading to session hijacking or data theft.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2012-1007?
CVE-2012-1007 is a medium-severity cross-site scripting vulnerability in Apache Struts, published on 7 Feb 2012. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Multiple cross-site scripting (XSS) vulnerabilities in Apache Struts 1.3.10 allow remote attackers to inject arbitrary web script or HTML via (1) the name parameter to struts-examples/upload/upload-submit.do, or the message parameter to (2) struts-cookbook/processSimple.do or (3) struts-cookbook/processDyna.do.
Weakness: CWE-79
Which versions are affected by CVE-2012-1007?
It affects 1 product.
Products include Apache Struts.
How do I fix CVE-2012-1007?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2012-1007 being exploited?
There is no known exploitation of CVE-2012-1007 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry.