Skip to content
RCE Advisory Intermediate CVE-2023-25649

(0Day) ZTE MF286R goahead Command Injection Remote Code Execution Vulnerability

A command injection flaw in the ZTE MF286R router's SET_DEVICE_LED endpoint allows an authenticated attacker to execute arbitrary code as root. The vulnerability arises because a user-supplied string is not properly validated before being used in a system call.

Rafal Goryl Follow

Originally disclosed on Zero Day Initiative

Medium 6.8 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of ZTE MF286R routers. Authentication is required to exploit this vulnerability.

Rafal Goryl (@voix44er), 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 SET_DEVICE_LED endpoint passes a user-controlled parameter directly to a system call without sanitisation or validation.

Impact

An authenticated attacker on the local network could execute arbitrary code with root privileges on the router.

What the attacker needed

Network-adjacent access; authentication

The fix

The vulnerability was fixed by the vendor in an update.

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.

This router has a feature that lets you control its LED lights. The code that handles this feature takes a value from the user and runs it as a system command without checking it first. An attacker who can log in to the router can trick the router into running their own commands, giving them full control of the device.

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.