CVE-2019-0221
Cross-site scripting in Apache Tomcat
Record summary
CVE-2019-0221 has a selected CVSS score of 6.1 (medium); EIP currently links 1 catalogued exploit and 1 Nuclei template.
Description
The SSI printenv command in Apache Tomcat 9.0.0.M1 to 9.0.0.17, 8.5.0 to 8.5.39 and 7.0.0 to 7.0.93 echoes user provided data without escaping and is, therefore, vulnerable to XSS. SSI is disabled by default. The printenv command is intended for debugging and is unlikely to be present in a production website.
Exploitation context
Affected products and versions
4| Product | Source | Version range | Status |
|---|---|---|---|
Apache TomcatBrowse Apache / Apache Tomcat | CVE List | Apache Tomcat 9.0.0.M1 to 9.0.0.17 | affected |
| 8.5.0 to 8.5.39 | affected | ||
| 7.0.0 to 7.0.93 | affected | ||
org.apache.tomcat.embed:tomcat-embed-coreBrowse Maven / org.apache.tomcat.embed:tomcat-embed-core | GitHub Advisory | 9.0.0 to < 9.0.17 · Fixed in 9.0.17 | affected |
| 8.5.0 to < 8.5.40 · Fixed in 8.5.40 | affected | ||
| 7.0.0 to < 7.0.94 · Fixed in 7.0.94 | affected | ||
org.apache.tomcat:tomcatBrowse Maven / org.apache.tomcat:tomcat | GitHub Advisory | 9.0.0 to < 9.0.17 · Fixed in 9.0.17 | affected |
| 8.5.0 to < 8.5.40 · Fixed in 8.5.40 | affected | ||
| 7.0.0 to < 7.0.94 · Fixed in 7.0.94 | affected | ||
org.apache.tomcat:tomcat-catalinaBrowse Maven / org.apache.tomcat:tomcat-catalina | GitHub Advisory | 9.0.0 to < 9.0.17 · Fixed in 9.0.17 | affected |
| 8.5.0 to < 8.5.40 · Fixed in 8.5.40 | affected | ||
| 7.0.0 to < 7.0.94 · Fixed in 7.0.94 | affected |
Proofs of concept
1Catalogued exploits
ExploitDBApache Tomcat 9.0.0.M1 - Cross-Site Scripting (XSS)ExploitDB exploitby Central InfoSecNot analyzed1 file
Nuclei templates
1ProjectDiscoveryMEDIUMApache Tomcat - Cross-Site ScriptingCVSS 6.1
Apache Tomcat 9.0.0.M1 to 9.0.0.17, 8.5.0 to 8.5.39, and 7.0.0 to 7.0.93 are vulnerable to cross-site scripting because the SSI printenv command echoes user provided data without escaping. Note: SSI is disabled by default. The printenv command is intended for debugging and is unlikely to be present in a production website.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
Remediation
Apply the necessary patches or updates provided by Apache Tomcat to fix the XSS vulnerability.
Source: ProjectDiscovery