Record summary

CVE-2018-8024 has a selected CVSS score of 5.4 (medium); EIP currently links 1 curated repository PoC and 1 Nuclei template.

Description

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.

Description source: CVE List

Exploitation context

Available material

Curated repository PoCs
1
Nuclei templates
1

Affected products and versions

3
ProductSourceVersion rangeStatus
CVE List1.0.0 to 2.1.2affected
2.2.0 to 2.2.1affected
2.3.0affected

org.apache.spark:spark-core_2.10

Browse Maven / org.apache.spark:spark-core_2.10
GitHub Advisory2.1.0 to < 2.1.3 · Fixed in 2.1.3affected
2.2.0 to < 2.2.2 · Fixed in 2.2.2affected

org.apache.spark:spark-core_2.11

Browse Maven / org.apache.spark:spark-core_2.11
GitHub Advisory2.1.0 to < 2.1.3 · Fixed in 2.1.3affected
2.2.0 to < 2.2.2 · Fixed in 2.2.2affected
2.3.0affected
2.3.0 to < 2.3.1 · Fixed in 2.3.1affected

Proofs of concept

1

Curated repository PoCs

GitHubCVE-2018-8024Curated repository PoCby RhinoSecurityLabsStars: 905Not analyzed2 files

Python · 202.0 KiB

GitHub

PoC details

Nuclei templates

1
ProjectDiscoveryMEDIUMApache Spark UI - Cross-Site ScriptingCVSS 6.1

Apache Spark UI before 2.3.2 is vulnerable to XSS via unsanitized query string parameters in the /jobs/ endpoint.

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.

WeaknessesCWE-79
Authorsritikchaddha
Template tagscvecve2018sparkxssuivuln
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CPE: cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*
Shodan: title:"spark master at"
FOFA: title="spark master at"

Source: ProjectDiscovery

References

5