Detect D-Link DMS-3130/DXS-3130 898_ssl_global OS Command Injection (CVE-2026-138357) in Splunk
Detects exploitation attempts against CVE-2026-138357, an OS command injection vulnerability (CWE-77, CWE-78) with CVSS base score 8.6 in D-Link DMS-3130 and DXS-3130 switches running firmware 1.20.P006. The flaw is in the file 898_ssl_global.lua, part of the SSL Certificate Import Endpoint. The file_name argument is passed into a command context, which allows OS command execution. The attack can be carried out remotely. Because these are network switches with a web management interface, detection relies on HTTP and web-proxy telemetry showing requests to the SSL endpoint carrying shell metacharacters, and on any command-execution or outbound-connection telemetry forwarded from the device. The exploit has been publicly disclosed.
MITRE ATT&CK
- Tactic
- Initial Access Execution
SPL Detection Query
``` df00tech DF00-2da3655ac1 · https://df00tech.com/detections/CVE-2026-138357 · licence: https://df00tech.com/detections/licence ```
index=web OR index=proxy OR index=network (uri_path="*898_ssl_global*" OR uri="*898_ssl_global*" OR url="*898_ssl_global*")
| eval blob=lower(uri." ".uri_query." ".form_data)
| where match(blob, "(;|\||&&|\|\||`|\$\(|\$\{|%3b|%7c|%26|%60|wget|curl|/bin/sh|telnetd|nc\s)")
| stats count min(_time) as first_seen max(_time) as last_seen values(http_method) as methods values(status) as statuses by src_ip dest_ip uri
| sort - count Searches web/proxy/network indexes for requests to the D-Link 898_ssl_global endpoint carrying command-injection metacharacters, grouped by source and destination.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Authorized penetration testing or scanning traffic against switch management interfaces
- Admin configuration changes to SSL settings containing special characters in field values
- Automated backup/config-management tooling that posts URL-encoded payloads to the management UI
Other platforms for CVE-2026-138357
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 further down this page.
- Test 1 Command injection probe against 898_ssl_global (semicolon)
Expected signal: Web/proxy log entry for 898_ssl_global containing '%3B' or ';id' from the test source IP.
- Test 2 Command injection with outbound callback (wget)
Expected signal: Request log showing 898_ssl_global with '%7C' (pipe) and 'wget' substrings.
- Test 3 Encoded pipe injection via POST body
Expected signal: POST to 898_ssl_global with body containing '%60' (backtick) metacharacters.
Response Playbook
Triage
- Confirm the target host is a D-Link DMS-3130 or DXS-3130 switch running firmware 1.20.P006 by checking asset inventory and the device's management banner/version page.
- Extract the full request URI, query string, and any POST body hitting 898_ssl_global and decode URL-encoded characters to reveal the injected command payload.
- Determine whether the source IP is an authorized administrator/scanner or an untrusted/external host, and whether the management interface is reachable from untrusted networks.
- Check the HTTP response status and size to assess whether the injection likely succeeded (e.g., 200 with anomalous output vs. error/4xx).
Containment
- Restrict the switch management interface to a dedicated management VLAN/ACL and block the offending source IP at the upstream firewall.
- If compromise is suspected, isolate the switch from production traffic and fail over to a standby device where possible.
- Disable remote HTTP/HTTPS management on the affected device until a vendor fix or mitigation is applied.
Evidence Collection
- Capture and preserve web/proxy/firewall logs showing the full request and response for the 898_ssl_global interaction.
- Export the switch running-config, syslog, and any available command-history or audit logs for forensic review of unauthorized changes.
- Collect outbound connection telemetry from the device timeframe to identify attacker callback (wget/curl/nc) activity.
Escalation Criteria
- !Escalate to incident response if the injected command executed (confirmed by device-side command/outbound-connection telemetry) or config changes are observed.
- !Escalate to network operations and the device owner if the management interface is exposed to untrusted or internet-facing networks.
Investigation Guide
Forensic Artifacts
- >
Web/management-plane access logs on the device and upstream proxy showing 898_ssl_global requests - >
Switch running-config diffs and syslog entries indicating unexpected changes or new accounts - >
Outbound network connections from the switch management IP to attacker infrastructure
Tuning Guidance
Baseline which internal management/admin hosts and authorized scanners legitimately access the switch web UI and allowlist them. Narrow the metacharacter regex if admin workflows legitimately include certain characters in SSL field values, and prioritize alerts where the source IP is outside the management network or the request originates from an untrusted segment.
Hunting Queries
Surfaces source IPs making repeated requests to the 898_ssl_global endpoint, indicating probing or brute-force injection attempts.
// df00tech DF00-2da3655ac1 · https://df00tech.com/detections/CVE-2026-138357 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "898_ssl_global" | summarize count() by cIP, bin(TimeGenerated, 1h) | where count_ > 5 ``` df00tech DF00-2da3655ac1 · https://df00tech.com/detections/CVE-2026-138357 · licence: https://df00tech.com/detections/licence ```
index=web uri="*898_ssl_global*" | stats count by src_ip, date_hour | where count>5 Atomic Red Team Tests
Sends a crafted GET request to the vulnerable SSL global endpoint with a shell command appended via semicolon, simulating OS command injection.
Command
curl -k -s -o /dev/null -w '%{http_code}\n' "https://SWITCH_IP/898_ssl_global?param=1%3Bid" Cleanup
echo 'No cleanup required; probe is read-only against lab device.' Expected Telemetry
Web/proxy log entry for 898_ssl_global containing '%3B' or ';id' from the test source IP.
Expected Detection
KQL/SPL rule fires on the presence of 898_ssl_global plus a command metacharacter.
Simulates an attacker injecting a wget command to retrieve a payload, exercising the outbound-callback detection path.
Command
curl -k -s "https://SWITCH_IP/898_ssl_global?cfg=x%7Cwget%20http%3A%2F%2F127.0.0.1%2Ft" Cleanup
rm -f ./t 2>/dev/null; echo 'cleanup done' Expected Telemetry
Request log showing 898_ssl_global with '%7C' (pipe) and 'wget' substrings.
Expected Detection
Detection matches on the wget/pipe indicators within the 898_ssl_global request.
Posts a URL-encoded command-injection payload in the request body to the SSL global configuration endpoint.
Command
curl -k -s -X POST "https://SWITCH_IP/898_ssl_global" --data 'ssl_opt=a%60id%60' Cleanup
echo 'No persistent artifacts created.' Expected Telemetry
POST to 898_ssl_global with body containing '%60' (backtick) metacharacters.
Expected Detection
Rule matches body/query metacharacters for the 898_ssl_global endpoint.