CVE-2010-4172 Improper Neutralization of Input During Web Page Generation in Apache Tomcat
Remote attackers can inject arbitrary web script or HTML into the Apache Tomcat Manager application, potentially leading to session hijacking or code execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2010-4172?
CVE-2010-4172 is a medium-severity cross-site scripting vulnerability in Apache Tomcat, published on 26 Nov 2010. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
Multiple cross-site scripting (XSS) vulnerabilities in the Manager application in Apache Tomcat 6.0.12 through 6.0.29 and 7.0.0 through 7.0.4 allow remote attackers to inject arbitrary web script or HTML via the (1) orderBy or (2) sort parameter to sessionsList.jsp, or unspecified input to (3) sessionDetail.jsp or (4) java/org/apache/catalina/manager/JspHelper.java, related to use of untrusted web applications.
Weakness: CWE-79
Which versions are affected by CVE-2010-4172?
4 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat:tomcat Maven | From 6.0.12 to 6.0.29 | None |
org.apache.tomcat:tomcat Maven | From 6.0.12 to 6.0.29 | None |
org.apache.tomcat:tomcat Maven | From 7.0.0 | 7.0.5 |
org.apache.tomcat:tomcat Maven | From 7.0.0 | 7.0.5 |
Products include Apache Tomcat.
How do I fix CVE-2010-4172?
Upgrade org.apache.tomcat:tomcat to 7.0.5 or later.
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-2010-4172 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2010-4172 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Apache Tomcat
Sources
Also known as GHSA-c78g-qwpw-2jgv.