CVE-2011-1772
Cross-site Scripting in Apache Struts
Description
Multiple Cross-Site Scripting (XSS) in XWork generated error pages in Apache Struts. By default, XWork doesn't escape action's names in automatically generated error page, allowing for a successful XSS attack. When Dynamic Method Invocation (DMI) is enabled, the action name is generated dynamically base on request parameters. This allows to call non-existing page and method to produce error page with injected code as below. As of Struts 2.2.3 the action names are escaped when automatically generated error pages are rendered.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.struts » struts2-core | < 2.2.3 | 2.2.3 |
Blast radius
50% of the dependent artifacts (62) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 567 |
| 2 hops | 571 |
| 3 hops | 239 |
| 4 hops | 2 |
Most used dependents
- 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.jgeppert.struts2.jquery » struts2-jquery-grid-plugin15 usages
- org.onebusaway » onebusaway-presentation10 usages
- com.atlassian.xwork » atlassian-xwork-1210 usages
- org.apache.struts » struts2-dojo-plugin10 usages
- com.jgeppert.struts2.jquery » struts2-jquery-tree-plugin8 usages
- com.jgeppert.struts2.jquery » struts2-jquery-richtext-plugin7 usages
- org.onebusaway » onebusaway-nyc-presentation5 usages
- org.codehaus.redback » redback-struts2-integration5 usages
- com.atlassian.xwork » atlassian-xwork-core5 usages
- com.jgeppert.struts2.jquery » struts2-jquery-mobile-plugin4 usages
- com.k-int.discover » srusearch3 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-1772 | nvd.nist.gov |
| Package | apache/struts | github.com |
| Web | jira/browse/WW-3579 | issues.apache.org |
| Web | en/jp/JVN25435092/index.html | jvn.jp |
| Web | jvndb/JVNDB-2011-000106 | jvndb.jvn.jp |
| Web | 2011/05/apache-struts-2-xwork-webwork-reflected.html | secureappdev.blogspot.com |
| Web | 2.2.3/docs/version-notes-223.html | struts.apache.org |
| Web | 2.x/docs/s2-006.html | struts.apache.org |
