(Pwn2Own) QNAP TS-453E write_file_to_svr External Control of File Path Remote Code Execution Vulnerability
The write_file_to_svr method in QNAP TS-453E firmware fails to validate a user-supplied file path before using it in file operations. A network-adjacent attacker who bypasses authentication could exploit this to execute code as the RR2 administrator.
Originally disclosed on Zero Day Initiative
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 write_file_to_svr method passes a user-controlled path to file operations without validating or restricting it.
Impact
A network-adjacent attacker could execute arbitrary code in the context of the RR2 administrator, though authentication is required and must first be bypassed.
What the attacker needed
Network-adjacent access; authentication bypass required
The fix
QNAP issued an update that corrects 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.
This is a path-handling flaw in a network storage device. A function that writes files accepts a path from the user without checking it, so a crafted path can make the device write or run files in places it should not. An attacker on the same network could then run their own code on the device with high privileges.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.