Cool Vulns Don't Live Long - Netgear And Pwn2Own
Two vulnerabilities were found in the Netgear RAX30 router: a command injection in the LAN-side HTTP sniffer via the User-Agent header, and an IPv6 firewall misconfiguration that exposed services like telnet on the WAN side. An attacker on the LAN could execute arbitrary commands, and an attacker on the same network segment could access telnet and log in with a hardcoded support account to escape to a full shell.
Published on synacktiv.com
Rédigé par Kevin Denis - 06/12/2022 - dans Exploit - Téléchargement
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 LAN bug is caused by passing unsanitised User-Agent data to a shell command, and the WAN bug is caused by IPv6 firewall rules not being applied to the WAN interface when only a link-local address is used.
Impact
An attacker on the LAN could execute arbitrary commands and take over the router, and an attacker on the same network segment could access telnet and gain a full shell using a hardcoded account.
What the attacker needed
LAN access for the command injection; Same network segment for IPv6 access; No authentication needed for the injection
The fix
The vulnerabilities were fixed in firmware version 1.0.9.90 by replacing system() with execve() and applying IPv6 firewall rules to the WAN interface.
How it was found
- Extract the router firmware and identify the puhttpsniff binary.
- Send an HTTP request with a malicious User-Agent header to the router's LAN IP.
- The router executes the injected command, such as rebooting.
- From the WAN side, scan the IPv6 link-local address to find open ports like telnet.
- Connect to telnet using the hardcoded 'support' account.
- Escape the restricted shell by chaining commands or invoking a shell.
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 two security holes in a home router. The first lets someone on the local network run commands on the router by sending a specially crafted web request. The second lets someone on the same network segment connect to services like telnet that should not be exposed, and then log in with a default account to take full control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.