(Pwn2Own) QNAP QHora-322 IPv6 Incorrectly Specified Destination in a Communication Channel Network Spoofing Vulnerability
The router's /etc/hosts file causes it to send DNS requests for localhost to the WAN, allowing a network-adjacent attacker to redirect localhost traffic. This can be chained with other vulnerabilities to execute code as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to redirect localhost traffic on affected installations of QNAP QHora-322 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 /etc/hosts file on the router is misconfigured so that localhost is not resolved locally, causing DNS queries for localhost to be sent to the WAN.
Impact
A network-adjacent attacker could redirect localhost traffic and, in conjunction with other vulnerabilities, execute code as root.
What the attacker needed
Network-adjacent access; no authentication required
The fix
QNAP has issued an update to correct this vulnerability.
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 normally keeps 'localhost' traffic inside the device, but this router mistakenly sends DNS lookups for localhost out to the internet. An attacker on the same network can answer those lookups and redirect that traffic to themselves, which can then be used with other bugs to take full control of the router.