S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Product Based Web Vulnerabilities·Updated Jun 5, 2025

CVE-2018-8024 Scanner

CVE-2018-8024 Scanner - Cross-Site Scripting vulnerability in Apache Spark UI

Est. Time~10 seconds
Scan TypeGroup Scan
Targetsurl
CostFree
2.8k
Times Used
continuous scan runs
4.3k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2018-8024
5.4
CVSS

In Apache Spark 2.1.0 to 2.1.2, 2.2.0 to 2.2.1, and 2.3.0, it's possible for a malicious user to construct a URL pointing to a Spark cluster's UI's job and stage info pages, and if a user can be tricked into accessing the URL, can be used to cause script to execute and expose information from the user's view of the Spark UI. While some browsers like recent versions of Chrome and Safari are able to block this type of attack, current versions of Firefox (and possibly others) do not.

Attack Vector
-
Privileges Req.
-
User Interaction
-
Affected
Apache Sparkby Apache Software Foundation
1.0.0 to 2.1.2
Updated Aug 18, 2026View on NVD →
Detail

Apache Spark is an open-source distributed computing system designed for real-time data processing and analytics. It’s widely used by organizations to handle large-scale data processing tasks across cluster computing environments. By providing interfaces for programming entire clusters with implicit data parallelism and fault-tolerance, Apache Spark is a valuable tool for analytics and big data professionals. Its user interface, Spark UI, offers a way to monitor activities on a cluster, providing insights into the execution state of the jobs and stages. The UI is pivotal for administrators to assess and optimize resource utilization. Its robust framework is popular in tech companies, scientific research, and for academic purposes.

The Cross-Site Scripting (XSS) vulnerability found in Apache Spark UI permits attackers to inject malicious scripts into web requests, which are then reflected back to users. This vulnerability emerges from improperly sanitized query string parameters on the /jobs/ endpoint, allowing scripts to execute in the context of the user’s session. Attackers could exploit this issue to perform actions on behalf of users, steal session cookies, or deliver malware. The vulnerability arises because user-supplied input is included in output HTML without proper escaping, allowing code execution in browsers. It affects versions prior to 2.3.2, which did not have the proper security measures implemented.

Technical details reveal that the vulnerable endpoint is located on the /jobs/ path, where unsanitized query string parameters are disclosed. A typical exploit involves sending a specifically crafted URL to a victim containing the malicious script. The vulnerability relies on the server returning these malicious inputs directly in the HTML, without sanitization. In Apache Spark UI, this can be tested by attempting to trigger an alert box through crafted scripts injected into URL parameters. The script payloads can exploit how the UI constructs HTML pages, making elements of the page interact with the unexpected script code. The issue persists when text/html content types are returned, presenting a vector for XSS attacks.

When exploited, XSS vulnerabilities can lead to severe consequences including the theft of authentication tokens, cookies, and other sensitive data. Attackers may carry out phishing attacks by impersonating the site or manipulating site content. Infected JavaScript might download additional malicious payloads or alter browser settings. In enterprise environments, exploiting XSS can cause unauthorized actions affecting data integrity. Damage to organizational reputation is a high risk, as well as a potential monetary loss due to breaches. Addressing XSS vulnerabilities is critical to maintaining user trust and ensuring the security of web applications.

REFERENCES

Solution Advice
  • Upgrade Apache Spark to version 2.3.2 or later to fix the XSS vulnerability in the UI.
  • Implement input validation and HTML escaping on all user-provided inputs, especially query string parameters.
  • Configure Content Security Policy (CSP) headers to restrict sources for scripts and resources on your web pages.
  • Regularly audit and test append input points in your applications against known XSS techniques.
  • Ensure that your web applications do not return user input without escaping by implementing server-side protections.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2018-8024 Scanner - Cross-Site Scripting vulnerability in Apache Spark UI | S4E