(Pwn2Own) QNAP QHora-322 qvpn_db_mgr role_type Improper Neutralization of Escape Sequences Authentication Bypass Vulnerability
The qvpn_db_mgr endpoint on QNAP QHora-322 routers fails to neutralise special characters in the role_type parameter, allowing an authenticated attacker to bypass QBelt VPN authentication. This lets a remote attacker bypass the existing authentication mechanism.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to bypass authentication on affected QNAP QHora-322 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 insufficient neutralisation of special characters in the role_type parameter allows manipulation of authentication logic.
Impact
An attacker could bypass QBelt VPN authentication, though authentication is required to exploit the vulnerability.
What the attacker needed
Authentication to the router
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.
This is a flaw in a router's VPN login system. The router does not properly clean up a special value (the role_type parameter) before using it, so someone who already has some access can trick the system into letting them in without the correct VPN credentials.
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.