Skip to content
05 Login Username Strcpy

05 Login Username Strcpy

github.com • November 30, 2026

The Tenda FH1201 authentication handler copies the mitUSERNAME form field into a fixed-size stack buffer with strcpy() before any credential check. A single unauthenticated POST /login/Auth carrying a long user name corrupts the stack and stops the web server. Unlike the other findings in this repository, this one needs no authentication bypass, no password and no prior request .

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 )

Component: bin/httpd → authSecurityHandler() at 0x004a072c (runs for every request)

The copy happens before the credential comparison, so the overflow does not depend on knowing any password.

Frame layout (objdump):

Proof of Concept (non-destructive: the device is restarted, nothing is persisted)

Measured in the rehosted firmware: control → 302 and the server keeps serving; attack → the process enters the Bad_Sig_entry signal loop and stops serving.

A second experiment aligned a 1539-byte payload with the saved return address (three trailing bytes, NUL supplied by strcpy ). Both ra = 0x00414141 and ra = 0x004a4060 produce the same crash, which shows the process dies before the epilogue — intermediate live locals are overwritten first. Therefore this advisory claims denial of service only, not return-address control.

Unauthenticated denial of service of the entire management interface (and of the web UI) with a single request; the device keeps routing traffic but cannot be administered until it is rebooted.

Because the sink sits in the authentication handler, it is reached by every deployment, independently of which business handlers are enabled.

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H — 6.5 Rationale: verified, unauthenticated, single-request denial of service; no confidentiality or integrity effect was demonstrated.

Discovered by Zimo-666 on 2026-10-17 via rehosting, static analysis of authSecurityHandler and length-controlled requests. 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

Extracted Entities

Attack Types (1)

Companies (1)

Platforms (1)