Skip to content
RCE Write-up Intermediate

(CVE-2018-20334) ASUSWRT Command Injection in start_apply.htm

The ASUSWRT router firmware has a command injection flaw when processing POST data. An attacker could exploit this to control the router.

starlabs.sg

Published on starlabs.sg

When processing the POST data, there is a command injection issue. By using this issue, an attacker can control the router.

The author, on starlabs.sg

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 web interface passes user-supplied POST data to a system shell without proper sanitisation.

Impact

An attacker could control the router.

What the attacker needed

Access to the router's web interface

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 security flaw in the software that runs on ASUS routers. When the router receives certain data from a web form, it mistakenly runs it as a system command, letting an attacker take over the router.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.