LOW

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)

ArtifactAffected versionsFixed in
org.apache.struts » struts2-core
< 2.2.3
2.2.3

Blast radius

1affected artifacts
19affected versions
122dependent artifacts (est.)
1,379dependent versions

50% of the dependent artifacts (62) still pull an affected version in their latest release.

DepthDependent versions
Direct
567
2 hops
571
3 hops
239
4 hops
2

Most used dependents

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

Advisorynvd.nist.gov
Packagegithub.com
Webissues.apache.org
Webjvn.jp
Webjvndb.jvn.jp
Websecureappdev.blogspot.com
Webstruts.apache.org
Webstruts.apache.org