CVE-2025–52692: Discovery and Exploitation of Zero-day Vulnerab
The router's web server uses a substring check to decide if a request is for an authenticated API endpoint, so a path like /LOGIN/API/obj bypasses authentication. An attacker on the local network can enable the Telnet server without credentials and gain root shell access.
Authors: Jun Rong, Javier Koh, Dr Joseph Teo
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The web server uses strstr to check for '/API/obj' anywhere in the path instead of verifying the path prefix, so a path starting with '/LOGIN/' but containing '/API/obj' later bypasses authentication.
Impact
An attacker on the local network can enable Telnet without credentials and gain full root command line access to the router.
What the attacker needed
Access to the router's administrative web interface; attacker on the local network
How it was found
- Extract the router firmware and locate the httpd binary.
- Reverse engineer the handle_request function to find the routing logic.
- Identify that the do_cmd_cgi handler is shared between unauthenticated LOGIN/** and authenticated API/** routes.
- Craft a request to /LOGIN/API/obj/en_telnet to bypass authentication and enable Telnet.
- Connect to the Telnet service without credentials to execute shell commands.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The router's web server checks if a request path contains a certain string to decide if it needs a password. Because it only looks for the string anywhere in the path, an attacker can put the protected string after a public one to skip the password check. This lets someone on the same network turn on a remote terminal service and take full control of the router.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.