Detect Samsung MagicINFO 9 Server Path Traversal and Arbitrary File Upload in Splunk
Detects exploitation of CVE-2024-7399, a path traversal and unrestricted file upload vulnerability in Samsung MagicINFO 9 Server. Successful exploitation allows unauthenticated or low-privileged attackers to upload arbitrary files outside the intended directory, potentially leading to remote code execution. This CVE is actively exploited in the wild (CISA KEV).
MITRE ATT&CK
- Tactic
- Initial Access Execution Persistence
SPL Detection Query
index=proxy OR index=web OR index=iis
(sourcetype=access_combined OR sourcetype=ms:iis:auto OR sourcetype=cisco:asa OR sourcetype=pan:traffic)
| eval url_lower=lower(uri_path)
| eval has_traversal=if(match(url_lower, "\.\./|%2e%2e%2f|%2e%2e/|\.\.%2f|%2e%2e%5c"), 1, 0)
| eval has_webshell_ext=if(match(url_lower, "\.(jsp|jspx|aspx|ashx|php|war|sh|py|pl)(\?|$)"), 1, 0)
| eval magicinfo_target=if(match(url_lower, "magicinfo") OR match(host, "(?i)magicinfo"), 1, 0)
| where (has_traversal=1 OR has_webshell_ext=1) AND (magicinfo_target=1 OR (dest_port IN (8080, 7001, 8088) AND has_traversal=1))
| stats count AS attempts, values(uri_path) AS urls, values(method) AS methods, values(status) AS response_codes BY src_ip, dest_ip, dest_port, _time span=5m
| where attempts > 1
| eval cve="CVE-2024-7399", severity="critical"
| table _time, src_ip, dest_ip, dest_port, attempts, urls, methods, response_codes, cve, severity Detects path traversal and suspicious file upload attempts against Samsung MagicINFO 9 Server by correlating URI patterns, file extensions, and target host identifiers in web and proxy logs.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Authorized penetration testing activities against MagicINFO infrastructure
- Legitimate content management operations that use non-standard file extensions
- URL-encoded characters in normal MagicINFO CMS content paths
Other platforms for CVE-2024-7399
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1CVE-2024-7399 Path Traversal Directory Enumeration
Expected signal: Web access logs show GET requests with '../', '%2e%2e%2f', or '..%2f' in the URI path targeting MagicINFO endpoints. Network monitoring captures HTTP requests to port 8080 with traversal sequences.
- Test 2CVE-2024-7399 Web Shell Upload via Path Traversal
Expected signal: IIS or servlet container logs show POST request to upload endpoint with path traversal in query parameter. Filesystem monitoring detects new .jsp file created in webroot. Process monitoring may show java.exe or tomcat process writing to unexpected directory.
- Test 3CVE-2024-7399 Web Shell Execution Verification
Expected signal: Access logs show GET request to the uploaded shell path returning HTTP 200. EDR/process monitoring captures cmd.exe, sh, or powershell.exe spawned as a child of the Java/Tomcat process. Network connections from MagicINFO server process to external IPs if a reverse shell payload is used.
Unlock Pro Content
Get the full detection package for CVE-2024-7399 including response playbook, investigation guide, and atomic red team tests.