Command Injection in Asus M25 NAS
A cookie value was used without sanitisation in a call to exec(), allowing an unauthenticated attacker to inject arbitrary commands. The vulnerability affects all versions of the Asus M25 NAS, which is end-of-life and will not be fixed.
Published on onekey.com
Example H2
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application failed to sanitise user-controlled cookie input before passing it to exec(), and the added authentication layer did not prevent the injection.
Impact
An unauthenticated attacker could execute arbitrary commands on the NAS, leading to full compromise of confidentiality, integrity, and availability.
What the attacker needed
Network access to the NAS; no authentication required
The fix
The input should be properly sanitised or escaped before being passed to exec(), but the vendor states the product is end-of-life and will not be fixed.
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 write-up has not been written yet. The Original tab links to the source.
This is a command injection bug. The device takes a value from a cookie (a small piece of data stored in your browser) and passes it directly to a system command without checking it. An attacker can add extra commands after a semicolon, and because no login is needed, anyone who can reach the device can run commands on it.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.