CVE-2022-34305
XSS in examples web application
Record summary
CVE-2022-34305 has a selected CVSS score of 6.1 (medium); EIP currently links 1 repository PoC and 1 Nuclei template.
Description
In Apache Tomcat 10.1.0-M1 to 10.1.0-M16, 10.0.0-M1 to 10.0.22, 9.0.30 to 9.0.64 and 8.5.50 to 8.5.81 the Form authentication example in the examples web application displayed user provided data without filtering, exposing a XSS vulnerability.
Exploitation context
Affected products and versions
3| Product | Source | Version range | Status |
|---|---|---|---|
TomcatBrowse Apache / Tomcat | VulnCheck | Version data not supplied | |
Apache TomcatBrowse Apache Software Foundation / Apache Tomcat | CVE List | Apache Tomcat 8.5 8.5.50 to 8.5.81 | affected |
| Apache Tomcat 9 9.0.30 to 9.0.64 | affected | ||
| Apache Tomcat 10.0 10.0.0-M1 to 10.0.22 | affected | ||
| Apache Tomcat 10.1 10.1.0-M1 to 10.1.0-M16 | affected | ||
org.apache.tomcat:tomcatBrowse Maven / org.apache.tomcat:tomcat | GitHub Advisory | 10.1.0-M1 to < 10.1.0-M17 · Fixed in 10.1.0-M17 | affected |
| 10.0.0-M1 to < 10.0.22 · Fixed in 10.0.22 | affected | ||
| 9.0.30 to < 9.0.65 · Fixed in 9.0.65 | affected | ||
| 8.5.50 to < 8.5.82 · Fixed in 8.5.82 | affected | ||
Proofs of concept
1Repository PoCs
GitHubzeroc00I/CVE-2022-34305Repository PoCby zeroc00IStars: 1Not analyzed1 file
Nuclei templates
1ProjectDiscoveryMEDIUMApache Tomcat Examples Web Application - Cross-Site ScriptingCVSS 6.1
Apache Tomcat 8.5.50 to 8.5.81, 9.0.30 to 9.0.64, 10.0.0-M1 to 10.0.22, and 10.1.0-M1 to 10.1.0-M16 contain a reflected cross-site scripting caused by displaying unfiltered user data in the Form authentication example, letting attackers execute scripts in victim browsers, exploit requires attacker to craft malicious input.
Impact
Attackers can execute malicious scripts in victim browsers, leading to session hijacking, defacement, or redirection.
Remediation
Update to the latest version of Apache Tomcat where this issue is fixed.
Source: ProjectDiscovery