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
- 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
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-129353
- https://www.cve.org/CVERecord?id=CVE-2026-129353
- https://vuldb.com/vuln/437416
- https://vuldb.com/vuln/437416/cti
- https://github.com/ruanyi101/router-firmware-security-advisories/blob/main/router-firmware-GitHub-advisories/advisories/D-Link-DIR-600L-authentication-cgi.md
- https://supportannouncement.us.dlink.com/security/publication.aspx?name=SAP10393
- https://github.com/googlesky/CVE-2026-129353
- https://github.com/captn3m0/dir-600l
- https://www.dlink.com/
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-11-19 |
| Author / Researcher | googlesky (Lê Hiếu), laboratory and differential PoC; ruanyi (VulDB user ruanyi101), original advisory and disclosure |
| CVE / Advisory | CVE-2026-129353 (VulDB 437416) |
| Category | network |
| Severity | Critical |
| CVSS Score | 10.0 — CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (VulDB) |
| Status | PoC |
| Tags | dlink, dir-600l, router, mips, firmware, stack-buffer-overflow, cwe-121, pre-auth, qemu-user, iot |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | 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 |
| Versions Affected | 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. |
| Language / Platform | C, 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 Required | No |
| Network Access Required | Yes (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:
| |
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
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 decompilationSetup 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.
| |
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
- Prepare the environment — build the images and start both router containers with
./run-lab.sh buildand./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. - Baseline crash (advisory signature) — deliver a 3000-byte
'G'fill as theidquery parameter to/web/authentication.cgi. The CGI child dies with SIGSEGV atsi_addr=0x47474747, exactly the signature in the upstream advisory’s capture.Shell script1 2podman run --rm --network cve129353lab cve-2026-129353-poc:local \ check --host=router-vuln - Locate the saved return address —
exploitstage 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 marker0x42424242at each candidate. The pointers stay valid until the epilogue, so execution reachesjr $ra.Shell script1 2podman run --rm --network cve129353lab cve-2026-129353-poc:local \ exploit --host=router-vuln - Confirm control — when the faulting address equals the marker, the saved
$rais proven attacker-controlled. The captured run reports the overwrite at offset 2536 (0x9e8) with faulting PC0x42424242. - Differential on the remediated side — repeat against
--host=router-fixed, where the same binary is loaded withLD_PRELOAD=/usr/lib/bndshim.so(boundedstrcpy/sprintf, cap 256). No crash occurs at any length, confirming that the crashes are exactly the unbounded copies. - Boundary and delivery matrix (optional) —
probechecks query versus body delivery,idversuspassword, thewebfa_authentication.cgialias, 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) andpoc/poc.py(stdlib-onlycheck/exploit/probe/mitigationdriver). 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:
| |
Expected Output
| |
Captured verbatim in evidence/exploit-vuln-run.txt; the baseline run is in evidence/check-vuln-run.txt.
Screenshots / Evidence
evidence/check-vuln-run.txt—checkagainst the shipped binary: SIGSEGV at0x47474747evidence/exploit-vuln-run.txt— two-stage run: crash signature then saved-$racontrol (0x42424242)evidence/versions.txt— firmware,cgibin, qemu and image digests used for the differential
Detection & Indicators of Compromise
- Requests to
/web/authentication.cgior/web/webfa_authentication.cgiwhose query string contains anidorpasswordvalue longer than roughly 1024 bytes (the buffer size), especially repeated fills of the same byte such as long runs ofG. - 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 as0x42424242; in the emulated lab the qemu strace showsSIGSEGV {si_signo=SIGSEGV, si_code=1, si_addr=0x47474747}. - Repeated login requests from one source with oversized
id/passwordparameters, 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/messagescrash entries, and watchdog reboots under sustained probing.
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | None 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. |
| Workaround | Do 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 Hardening | Disable 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
- CVE-2026-129353 — NVD
- CVE-2026-129353 — CVE.org record
- VulDB 437416 — CVE-2026-129353
- VulDB CTI entry
- ruanyi101 — D-Link DIR-600L authentication.cgi advisory
- D-Link SAP10393 — DIR-600/605/605L end-of-life statement
- googlesky/CVE-2026-129353 — source PoC repository
- captn3m0/dir-600l — independent firmware extraction / mirror
- D-Link
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.
| |