(Pwn2Own) QNAP TS-464 HLS_tmp Directory Traversal Arbitrary File Creation Vulnerability
The share.cgi endpoint on QNAP TS-464 NAS devices did not properly validate the user-supplied HLS_tmp path before using it in file operations. An unauthenticated remote attacker could create or modify files with admin privileges, which the report says allows arbitrary code execution.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of QNAP TS-464 NAS devices. Authentication is not required to exploit this vulnerability.
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 HLS_tmp parameter was passed into file operations without checking that the resulting path stayed within the intended directory.
Impact
An unauthenticated remote attacker could create or modify files as admin, which the report states allows arbitrary code execution on affected devices.
What the attacker needed
Network access to the device's web interface; no authentication needed
The fix
QNAP issued an update to correct the vulnerability, so the fix is to install the vendor's patched firmware.
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 NAS is a small storage server on a home or office network. Its web interface takes a path from the user and uses it to decide where to write a file, but it never checked that the path stayed inside the intended folder. Because of that, someone on the network could make the device write files in places it should not, and the report says that can lead to running their own code.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.