Skip to content
RCE Advisory Advanced CVE-2018-10388CVE-2018-10389

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.

gcali Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

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.

gcali (@_gcali), 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

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.

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.