D-Link DIR-842 HNAP GetCAPTCHAsetting Authentication Bypass Vulnerability
The D-Link DIR-842 router fails to properly handle sessions when processing HNAP GetCAPTCHAsetting requests, allowing network-adjacent attackers to bypass authentication. An attacker could exploit this to execute arbitrary code on the device.
chung96vn - Security Researcher of VinCSS (Member of Vingroup) Follow
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of D-Link DIR-842 routers. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the router does not properly validate session state when handling HNAP GetCAPTCHAsetting requests, allowing authentication to be bypassed.
Impact
An attacker on the same network could bypass authentication and execute arbitrary code on the router.
What the attacker needed
Network-adjacent access
The fix
The vulnerability was fixed by a vendor update.
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 report has not been written yet. The Original tab links to the source.
This is a security flaw in a home router. The router has a web interface that should require a password, but due to a mistake in how it checks sessions, someone on the same network can skip the login and run their own code on the device.
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.