(0Day) (Pwn2Own) NETGEAR R6700 UPnP NewBlockSiteName Stack-based Buffer Overflow Remote Code Execution Vulnerability
The UPnP service on the NETGEAR R6700 router copies user-supplied data into a fixed-length stack buffer without checking its length, so a network-adjacent attacker can overflow it. By bypassing the existing authentication, an attacker could execute code as root on the device.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of NETGEAR R6700 routers. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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 UPnP service copies a user-supplied site name into a fixed-size stack buffer without validating its length.
Impact
A network-adjacent attacker who bypasses authentication could execute code as root on the router; the text notes the only mitigation is restricting access to the service to trusted machines.
What the attacker needed
Network-adjacent access to the router; UPnP service reachable on TCP port 5000; bypass of existing authentication
The fix
No patch was available at disclosure; the advisory says the only mitigation is to restrict interaction with the service to trusted machines, for example with firewall rules or whitelisting.
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.
A router runs a small service that lets devices on the local network find and talk to it. That service takes a name sent by a client and stores it in a small reserved space in memory without checking how long the name is. Sending a very long name spills past that space and overwrites nearby memory, which can let an attacker run their own commands on the router.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.