CVE-2012-0392
Apache Struts's CookieInterceptor component does not use the parameter-name whitelist
Description
The CookieInterceptor component in Apache Struts before 2.3.1.1 does not use the parameter-name whitelist, which allows remote attackers to execute arbitrary commands via a crafted HTTP Cookie header that triggers Java code execution through a static method.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.struts » struts2-core | < 2.2.3.1 | 2.2.3.1 |
| org.apache.struts.xwork » xwork-core | < 2.2.3.1 | 2.2.3.1 |
Blast radius
40% of the dependent artifacts (77) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 664 |
| 2 hops | 875 |
| 3 hops | 553 |
| 4 hops | 180 |
| 5 hops | 76 |
Most used dependents
- org.apache.struts » struts2-core360 usages
- com.atlassian.bamboo » atlassian-bamboo-web203 usages
- com.atlassian.bamboo » atlassian-bamboo-api171 usages
- com.atlassian.bamboo » atlassian-bamboo-core127 usages
- com.atlassian.bamboo » atlassian-bamboo-test-utils105 usages
- com.atlassian.bamboo » atlassian-bamboo-pageobjects65 usages
- com.jgeppert.struts2.jquery » struts2-jquery-plugin50 usages
- org.apache.struts » struts2-convention-plugin48 usages
- com.atlassian.bamboo.plugins » atlassian-bamboo-plugin-test-utils41 usages
- org.nuiton » nuiton-validator33 usages
- com.atlassian.bamboo » atlassian-bamboo-deployments-api27 usages
- org.nuiton.jaxx » maven-jaxx-plugin20 usages
- org.nuiton.jaxx » jaxx-validator18 usages
- com.atlassian.bamboo » atlassian-bamboo-deployments16 usages
- com.jgeppert.struts2.jquery » struts2-jquery-grid-plugin15 usages
Computed from the dependency graph of build 20261205.2030 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2012-0392 | nvd.nist.gov |
| Package | apache/struts | github.com |
| Web | apache/struts commit 25e5006 | github.com |
| Web | pipermail/dailydave/2012-January/000011.html | lists.immunityinc.com |
| Web | web/20120612142634/https:/sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critica ... | web.archive.org |
| Web | web/20140723153720/http:/secunia.com/advisories/47393 | web.archive.org |
| Web | archives/bugtraq/2012-01/0031.html | archives.neohapsis.com |
| Web | 2.x/docs/s2-008.html | struts.apache.org |
| Web | 2.x/docs/version-notes-2311.html | struts.apache.org |
| Web | exploits/18329 | exploit-db.com |
