Skip to content
Advisory Advanced

(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.

Daan Keuper Follow

Originally disclosed on Zero Day Initiative

Medium 5.0 View original

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.

Daan Keuper, Thijs Alkemade and Khaled Nassar from Computest Sector 7, on the Zero Day Initiative

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.

More by Daan Keuper

View all

5 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.