CVE-2012-1006 Apache Struts Multiple Cross-site Scripting Vulnerabilities
Remote attackers can inject arbitrary scripts via specific parameters in Apache Struts showcase applications, potentially stealing user data or hijacking sessions.
- 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-1006?
CVE-2012-1006 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 2.0.14 and 2.2.3 allow remote attackers to inject arbitrary web script or HTML via the (1) name or (2) lastName parameter to struts2-showcase/person/editPerson.action, or the (3) clientName parameter to struts2-rest-showcase/orders.
Weakness: CWE-79
Which versions are affected by CVE-2012-1006?
4 open source packages ship an affected version, including org.apache.struts:struts2-parent. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.struts:struts2-parent Maven | All versions | 2.1.2 |
org.apache.struts:struts2-parent Maven | All versions | 2.1.2 |
org.apache.struts:struts2-parent Maven | From 2.2 | 2.2.3.1 |
org.apache.struts:struts2-parent Maven | From 2.2 | 2.2.3.1 |
Products include Apache Struts.
How do I fix CVE-2012-1006?
Upgrade org.apache.struts:struts2-parent to a fixed version for your release line: 2.1.2 or 2.2.3.1.
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-1006 being exploited?
There is no known exploitation of CVE-2012-1006 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-cmpm-jg8r-fv37.