(Pwn2Own) QNAP TS-453E conn_log_tool Format String Remote Code Execution Vulnerability
A format string flaw in the conn_log_tool executable on QNAP TS-453E devices lets a network-adjacent attacker who can bypass authentication pass a crafted format parameter. Combined with other vulnerabilities, this can lead to code execution as admin.
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of QNAP TS-453E 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 conn_log_tool executable passes a user-supplied string directly as a format specifier without validating or escaping it.
Impact
A network-adjacent attacker who bypasses authentication could, in conjunction with other vulnerabilities, execute code in the context of admin.
What the attacker needed
Network-adjacent access; authentication bypass; other vulnerabilities chained
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.
A format string bug happens when a program takes text from a user and treats it as a set of instructions for printing output, instead of just printing it as plain text. Here, a tool on a QNAP storage device does that with a value called the format parameter, so an attacker who can reach the device and get past login can make the program do unintended things. The report says this can be chained with other bugs to run code with admin rights.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.