Skip to content
RCE Advisory Advanced CVE-2024-13087

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

nella17 Follow

Originally disclosed on Zero Day Initiative

High 7.1 View original

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.

nella17 (@nella17tw), working with DEVCORE Internship Program, and DEVCORE Research Team, 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

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.

More by nella17

View all

3 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.