(Pwn2Own) QNAP QHora-322 miro_webserver_lib_RunExecBash Command Injection Remote Code Execution Vulnerability
The miro_webserver_lib_RunExecBash function in QNAP QHora-322 routers fails to validate user-supplied input before passing it to a system call, allowing command injection. An attacker with network access can bypass authentication and execute arbitrary code as root.
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of 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
Impact
An attacker could execute arbitrary code with root privileges on the router, though authentication is required and must first be bypassed.
What the attacker needed
Network-adjacent access; authentication bypass
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 command injection bug in a router's web server. The server takes some input from a user and runs it as a system command without checking it first, so an attacker can sneak in extra commands. Because the server runs with high privileges, the attacker can take full control of the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.