(Pwn2Own) QNAP TS-464 privWizard.cgi Authentication CRLF Injection Privilege Escalation Vulnerability
The privWizard.cgi endpoint on QNAP TS-464 devices fails to neutralise CRLF sequences, and the existing authentication can be bypassed. A network-adjacent attacker could use this to escalate privileges to resources normally protected from the user.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to escalate privileges on affected installations of QNAP TS-464 devices. 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 endpoint inserts user-supplied values into a protocol message without stripping carriage return and line feed characters, allowing injected lines to alter the request.
Impact
A network-adjacent attacker who bypasses authentication could escalate privileges to resources normally protected from the user.
What the attacker needed
Network-adjacent access to the device; authentication bypass is possible
The fix
QNAP issued an update to correct the 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.
CRLF stands for carriage return and line feed, the two characters that mark the end of a line in many text-based protocols. If a program puts user input into a message without removing these characters, an attacker can inject extra lines and change how the message is read. Here that let someone get past the login check and reach parts of the device they should not control.
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.