Summary
TOTOLINK CA1200-PoE is a ceiling access point. Its web interface runs a vendor lighttpd build with a form login endpoint. The endpoint /formLoginAuth.htm accepts an integer authCode and creates an administrator session whenever the value is not zero. It never compares that value with anything on the device and never checks the password. An unauthenticated client on the local network sends one GET request with authCode=1 and receives a SESSION_ID cookie that the session gate accepts on the protected administrator pages; the same check covers the CGI paths by code reading. The password check exists only in the separate login handler that builds the redirect to this endpoint.
Affected product
TOTOLINK CA1200-PoE, firmware 5.9c.3994_B20190326, the latest public image. Image file TOTOLINK_C8B180A-1G_CA1200-POE_AP0167_8197F_SPI_8M128M_V5.9c.3994_B20190326_ALL.web, sha256 32e7da327263979568ccbe98c23acd530a5387667e18e6bc888613b249cd1c4e. The image is distributed through totolink.vn.
Affected files and parameters
/bin/lighttpd, functionForm_Loginat0x40b9c0. Query parametersauthCode,userName,password,goURL,flag.authCodeis converted withatoiat0x40bc08and tested at0x40bdc8and0x40bdcc.- Session creation:
form_add_sessioncalled at0x40bff4,ws_set_cookiecalled at0x40c034. - Session gate:
checkLoginUserat0x40c400, called fromuserloginAuthat0x40c818, which is called fromhttp_response_write_headerat0x408a88.
Severity
The web server listens on the LAN side; one request without credentials creates an administrator session with access to the device configuration.
Details
Form_Loginparses the query pairs withgetNthValueSafeand copiesuserName,password,goURLandflaginto stack buffers. The password buffer is never compared with a stored password or hash.- The only test on
authCodeis at0x40bdc8and0x40bdcc. If the value is zero, the function converts the flag at0x40bddcand redirects to/mobile/login.aspwhen flag is 1, otherwise to/login.asp. Any nonzero value branches to0x40be64. That branch clears the login error flag, reads the clock, and callsform_add_sessionat0x40bff4withuserNameas the label; on successws_set_cookieat0x40c034setsSESSION_ID. - The login handler in
lib/cste_modules/global.sochecks the password and redirects to/formLoginAuth.htmwithauthCodefrom the configuration. The server side never binds that value to the login that produced it. Any nonzero number, including a negative one, is accepted. checkLoginUserat0x40c400allows paths that containindex.htm,login.asporforgot.aspwithout a session. Every other path requires aSESSION_IDwhose session table entry is active. The forged session satisfies that check: on/home.aspthe server returned 302 without the cookie and 200 with it. For the other paths this follows from code reading; the CGI dispatcher was not exercised in this proof.- The request is a plain GET with no token and no Origin or Host check, and the cookie is set with
Path=/and noSameSiteattribute.
Proof
I ran the vendor /bin/lighttpd under QEMU user-mode with the real web root as the document root and a minimal test configuration with five stock modules (mod_access, mod_accesslog, mod_alias, mod_rewrite and mod_cgi) on a local port. I sent an equivalent request with curl from inside the emulation container:
GET /formLoginAuth.htm?authCode=1&userName=admin&goURL=home.asp&action=login HTTP/1.1
Host: <device>
Connection: closeObserved response: HTTP/1.1 302 Found, Set-Cookie: SESSION_ID=2:<timestamp>:2; Path=/, Location: an absolute URL ending in /home.asp?timestamp=<timestamp>. No password was sent. Repeating with authCode=2, authCode=999 and authCode=-1 produced the same result: a SESSION_ID cookie whose value contains the current timestamp. Requesting /home.asp without a cookie returned 302 to /index.htm; requesting it with the cookie returned 200 and the administrator home page, 2595 bytes.
Control
The same request with authCode=0 returned 302 to /login.asp and no Set-Cookie header. Requesting /home.asp without the cookie returned 302 to /index.htm. In the bypass run the cookie was present and the page was served.
Test environment
Tested with the vendor's own binary taken from the public firmware image TOTOLINK_C8B180A-1G_CA1200-POE_AP0167_8197F_SPI_8M128M_V5.9c.3994_B20190326_ALL.web (sha256 32e7da327263979568ccbe98c23acd530a5387667e18e6bc888613b249cd1c4e), run under QEMU user-mode emulation. This proof covers the web server half: the vendor lighttpd handled the login endpoint and the session gate on a static page. The lighttpd-to-CGI spawn was not part of this proof because QEMU user-mode cannot execute a second guest binary in this container, and the web server and the CGI could not be run together. The configuration library was not used in this proof. The device was not tested.
Impact
An attacker on the same local network who can reach the web interface gets an administrator session without any password. By design, that session gives access to the device configuration, including the wireless settings and firmware update pages. The local admin password does not prevent it. I exercised the session creation and the gate on the protected home page; the configuration pages were not exercised.
Recommended fix
Issue authCode as a one-time server value when the password check succeeds and reject values that do not match a live entry. Do not create a session when authCode is merely nonzero. As a minimum, require the same password check in Form_Login that the login handler already performs. Separately, add an Origin and Host check and set the cookie with SameSite=Strict.
Timeline
- Reported to the vendor by email
- Submitted to VulDB with a CVE request
- CVE assigned as CVE-2026-144988, VulDB entry VDB-449766 published
Related advisories
- AA-2026-002 TOTOLINK CA1200-PoE: command injection in NTPSyncWithHost (hostTime)
- AA-2026-003 TOTOLINK CA1200-PoE: command injection in recvUpgradeNewFw (fwUrl)
- AA-2026-004 TOTOLINK CA1200-PoE: command injection in recvUpgradeNewFw (magicid)
- AA-2026-005 TOTOLINK CA1200-PoE: command injection in setUpgradeFW (FileName)
- AA-2026-006 TOTOLINK CA1200-PoE: command injection in downloadFlile.cgi (query string)