0xsha/CVE-2020-8515.go
A pre-authentication command injection flaw in the web management interface of several DrayTek router models allowed an unauthenticated attacker to execute arbitrary commands as root. The provided exploit script sends a crafted login request to run shell commands on the device.
gist.github.com
Published on gist.github.com
Clone this repository at <script src="https://gist.github.com/0xsha/e7f59e9332b44d151039059bc98c554b.js"></script> - Save 0xsha/e7f59e9332b44d151039059bc98c554b to your computer and use it in GitHub Desktop.
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 router's web interface passes user-supplied input from the keyPath parameter directly to a shell command without sanitisation, enabling command injection.
Impact
An unauthenticated attacker could execute arbitrary commands as root on affected DrayTek routers, leading to full device compromise.
What the attacker needed
Network access to the router's web interface; affected DrayTek model with vulnerable firmware
The fix
The issue was fixed in firmware version 1.5.1; users should upgrade to 1.5.1 or later.
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 some DrayTek routers that lets anyone run commands on the device without logging in. The attacker sends a specially crafted request to the router's web interface, and because the router does not properly check the input, it runs the attacker's commands with full system privileges.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.