Vulnerabilities in Tenda's W15Ev2 AC1200 Router
The Tenda W15Ev2 router has multiple vulnerabilities including improper authorization that allows bypassing the login page to read the syslog containing the admin password, and several OS command injection flaws in various configuration parameters. An attacker could exploit these to gain full control of the device, including starting telnet with default credentials or executing arbitrary commands.
Published on boschko.ca
Lately, after work, I've really enjoyed hacking and reverse engineering funky IoT devices. In early May of 2022, I went on a little Amazon/AliExpress shopping spree and bought ~15 cheap IoT devices.
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
Likely the web server's authentication handler fails to properly validate session cookies, and several configuration parameters are passed to system commands without sanitisation.
Impact
An unauthenticated attacker could read the syslog to obtain the admin password, and authenticated attackers could execute arbitrary commands, potentially leading to a root shell and full device compromise.
What the attacker needed
Access to the router's web interface; remote management enabled for remote attacks
How it was found
- Send a request to the syslog download endpoint with the user cookie left blank.
- Observe that the syslog file is returned without authentication.
- Search the syslog for successful login entries containing the base64-encoded admin password.
- Decode the password to obtain the administrator credentials.
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.
This report describes several security holes in a cheap home router. The most serious one lets someone skip the login screen and read a log file that contains the administrator's password, and other flaws let an attacker run their own commands on the device. Together these could give an attacker complete 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.