Detect Samsung MagicINFO 9 Server Path Traversal and Arbitrary File Upload in Microsoft Sentinel
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
KQL Detection Query
let MagicINFOPorts = dynamic([80, 443, 8080, 7001, 8088]);
let SuspiciousExtensions = dynamic(['.jsp', '.aspx', '.php', '.war', '.jspx', '.ashx', '.sh', '.py', '.pl']);
let TraversalPatterns = dynamic(['../', '..\\', '%2e%2e%2f', '%2e%2e/', '..%2f', '%2e%2e%5c']);
union DeviceNetworkEvents, CommonSecurityLog
| where TimeGenerated > ago(24h)
| where DestinationPort has_any (MagicINFOPorts)
or RequestURL has_any (TraversalPatterns)
or RequestURL has_any (SuspiciousExtensions)
| where RequestURL contains 'MagicInfo' or DestinationHostName contains 'magicinfo'
or RequestURL has_any (TraversalPatterns)
| extend CleanURL = tolower(RequestURL)
| where CleanURL has_any (TraversalPatterns) or CleanURL has_any (SuspiciousExtensions)
| project TimeGenerated, SourceIP, DestinationIP, DestinationPort, RequestURL, RequestMethod, ResponseCode, DeviceAction
| summarize Attempts=count(), Methods=make_set(RequestMethod), URLs=make_set(RequestURL, 10) by SourceIP, DestinationIP, bin(TimeGenerated, 5m)
| where Attempts > 2
| extend AlertSeverity = 'High', CVE = 'CVE-2024-7399' Detects HTTP requests to Samsung MagicINFO 9 Server endpoints containing path traversal sequences or suspicious file extensions indicative of CVE-2024-7399 exploitation attempts.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate administrative file uploads to MagicINFO server using paths that contain dots
- Security scanners or vulnerability assessment tools performing authorized scans of MagicINFO endpoints
- URL-encoded characters in normal content delivery requests to MagicINFO server
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.