Skip to content
03 Zero Auth Stack Overflow

03 Zero Auth Stack Overflow

github.com • November 30, 2026

Three weak design decisions combine into a fully unauthenticated exploit chain in the Tenda FH1201: the login page discloses the current administrator password, the password-change handler accepts it through the authentication bypass and stores an arbitrarily long sys.username , and the manufacturing handler copies that value into a 128-byte stack buffer without a length check . A 263-byte payload overwrites the saved return address; execution can be redirected to any address inside httpd (verified).

Vendor: Tenda · Product: FH1201 · Firmware: V1.2.0.19(946) (latest, 2026-07-13)

Vendor: Tenda · Product: FH1201 · Firmware: V1.2.0.19(946) (latest, 2026-07-13)

Status: the vendor lists FH1201 V1.0 as end-of-life (discontinued 2015) yet published firmware V1.2.0.19(946) on 2026-07-13 as a security update for CVE-2026-11405

Status: the vendor lists FH1201 V1.0 as end-of-life (discontinued 2015) yet published firmware V1.2.0.19(946) on 2026-07-13 as a security update for CVE-2026-11405

Vulnerability Details

Type: Stack-based Buffer Overflow ( CWE-121 ); Missing Authentication ( CWE-306 ) and Insufficiently Protected Credentials ( CWE-522 ) as enablers

Components: bin/httpd → fromSysToolChangePwd() ( 0x00479110 ), TendaAte() ( 0x0045c25c ), and the nvram accessors SetValue() / GetValue() (libCfm)

Step 1 — password disclosure on the unauthenticated login page

/login.asp is static HTML that embeds the current password so the page can pre-fill the field:

The rendered page contains the base64 form of the administrator password. No credentials required.

Step 2 — unbounded nvram write through the password change handler

POST /goform/SysToolChangePwd/login.asp (reachable via the login.asp bypass of advisory 01) verifies mitOldPASSWORD against the stored password and then:

Step 3 — unbounded read into a 128-byte stack buffer

GET /goform/ate (authentication-exempt, advisory 02) reaches TendaAte() , whose frame is:

followed by GetValue("sys.username", bufA) — an unbounded strcpy into a 128-byte buffer. The saved return address is therefore at offset 260 from the start of the value.

Proof of Concept (non-destructive: no persistent change is left, the device is rebooted)

Verified behaviour (two payloads differing only in the last three bytes):

That differential demonstrates precise return-address control . (The same experiment performed through the password-change handler instead of TendaAte shows only a crash, because intermediate live locals are corrupted before the epilogue — documented in docs/root-cause.md .)

Verified : unauthenticated memory corruption of the web server, which stops serving ( httpd is the main process; on the device the web/management interface becomes unavailable until reboot). Return-address control is proven, so arbitrary code execution is reachable in principle; a full RCE payload was not completed (the value cannot contain NUL bytes, which constrains the target address space to 0x00xxxxxx ).

The chain requires no credentials and no user interaction , and leaves no persistent change other than the modified user name.

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H — 6.5 Rationale: scored on the verified effect (pre-authentication denial of service); the verified return-address control suggests a higher impact but code execution was not demonstrated, so the score stays conservative.

Discovered by Zimo-666 on 2026-10-17 via rehosting, frame-layout analysis and differential crash/exit experiments. Vendor notified: pending.

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

Tenda FH1201 Router Firmware Flaws Enable Unauthenticated Stack Overflows Two GitHub write-ups (dated 2026-11-30) describe unauthenticated stack-based buffer overflow vulnerabilities in the Tenda FH1201 web server (bin/httpd), tracked in the reporting as CVE-2026-11405. The first write-up describes a chain in which the unauthenticated /login.asp page discloses the current administrator password, the password-change handler accepts it to bypass authentication, and the manufacturing handler copies an attacker-supplied username into a 128-byte stack buffer without a length check. The author states a 263-byte payload overwrites the saved return address and that execution can be redirected to any address inside httpd, verified in the author's testing. The second write-up states that the authentication handler authSecurityHandler() copies the mitUSERNAME form field with strcpy() before any credential check, so a single unauthenticated POST to /login/Auth with a long username corrupts the stack and stops the web server. In the author's rehosted-firmware tests, the overflow caused the process to enter a signal loop and stop serving, while control requests returned normally. Both write-ups state the affected firmware is V1.2.0.19(946), which the authors describe as the latest release dated 2026-07-13, and note the vendor lists FH1201 V1.0 as end-of-life while publishing that firmware as a security update. Neither article reports observed exploitation in the wild, and both are single-author GitHub repositories with no vendor or CERT confirmation in the provided sources. 61