CVE-2021-27342 Brute Force Protection Bypass
The router's telnet service delayed only failed login responses, so an attacker could tell a correct password from an incorrect one by waiting a short time and then opening a new connection to guess again immediately. This bypassed the intended three-second cool-down between failed attempts, allowing faster password guessing.
blog.whtaguy.com
Published on blog.whtaguy.com
I recently bought a new DIR-842 home router, and immediately (as any hacker would) started toying with it - I can’t call it mine until I pop a shell on it.
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
Impact
An attacker could guess telnet passwords much faster than the intended three-second delay allowed, potentially gaining high-privilege admin access to the router.
What the attacker needed
Telnet enabled via admin web GUI; network access to the router's telnet service
The fix
The vulnerability was patched and an update is available from the vendor.
How it was found
- Enable telnet through the admin web GUI and connect as an admin user.
- Send a telnet login request and wait about 0.05 seconds.
- If a welcome response arrives, the password is correct; if nothing arrives, it is wrong.
- Open a new connection and try another password immediately, bypassing the three-second cool-down.
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.
When you log in to a device, it checks your password. This router tried to slow down attackers by making wrong passwords take three seconds to be rejected. But correct passwords were accepted instantly, so an attacker could just wait a tiny moment: if nothing came back, the password was wrong, and they could start a new connection and try again without waiting the three seconds.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.