CVE-2011-3923
Struts ParameterInterceptor vulnerability allows remote command execution
Description
Regular expression in ParametersInterceptor matches top['foo'](0) as a valid expression, which OGNL treats as (top['foo'])(0) and evaluates the value of 'foo' action parameter as an OGNL expression. This lets malicious users put arbitrary OGNL statements into any String variable exposed by an action and have it evaluated as an OGNL expression and since OGNL statement is in HTTP parameter value attacker can use blacklisted characters (e.g. #) to disable method execution and execute arbitrary methods, bypassing the ParametersInterceptor and OGNL library protections.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.struts » struts2-core | >= 2.0.0, < 2.3.1.2 | 2.3.1.2 |
Blast radius
38% of the dependent artifacts (76) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 709 |
| 2 hops | 678 |
| 3 hops | 267 |
| 4 hops | 4 |
Most used dependents
- 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.centit.framework » framework-core53 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
- com.atlassian.bamboo » atlassian-bamboo-deployments-api27 usages
- com.atlassian.bamboo » atlassian-bamboo-deployments16 usages
- com.jgeppert.struts2.jquery » struts2-jquery-grid-plugin15 usages
- com.atlassian.bamboo » atlassian-bamboo-web-app15 usages
- org.nuiton.web » nuiton-struts212 usages
- com.atlassian.bamboo » atlassian-bamboo-persistence12 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-2011-3923 | nvd.nist.gov |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | vulnerabilities/72585 | exchange.xforce.ibmcloud.com |
| Web | tracker/CVE-2011-3923 | security-tracker.debian.org |
| Web | web/20140725074137/http:/seclists.org/fulldisclosure/2014/Jul/38 | web.archive.org |
| Web | 2012/01/cve-2011-3923-yet-another-struts2.html | blog.o0o.nu |
| Web | development/2.x/docs/s2-009.html | struts.apache.org |
