QNAP TS-453E syslog log_message Format String Remote Code Execution Vulnerability
The syslog service on QNAP TS-453E devices passed the user-supplied log_message parameter directly into a format string without validation. A network-adjacent attacker without credentials could exploit this to run arbitrary code as the TFTP server.
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of QNAP TS-453E 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 log_message value was passed straight to a format-string function as the format argument instead of as data.
Impact
A network-adjacent attacker without authentication could execute arbitrary code in the context of the TFTP server.
What the attacker needed
Network-adjacent access; no authentication needed
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 is a template that tells a program how to print text, and if a user's input is used as that template, the program can be tricked into reading or writing memory it should not. Here the syslog service did exactly that with a value called log_message, so someone on the same network could take over the service without logging in.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.