Skip to content
RCE Advisory Intermediate CVE-2024-37186

Wavlink AC3000 adm.cgi set_ledonoff() OS command injection vulnerability

An OS command injection vulnerability exists in the set_ledonoff() function of the adm.cgi binary on Wavlink AC3000 routers. An authenticated attacker can send a crafted HTTP request to execute arbitrary commands on the device.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An os command injection vulnerability exists in the adm.cgi setledonoff() functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted HTTP request can lead to arbitrary code execution.

Lilith >_>, on Cisco Talos

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

The set_ledonoff() function takes the user-supplied 'led_cmd' parameter and passes it directly to do_system() without sanitisation.

Impact

An authenticated attacker can execute arbitrary commands on the device, potentially leading to full compromise.

What the attacker needed

Authentication as admin; network access to the device

The fix

The vendor is working on patches, but no fix is described in the text.

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 web interface for administrators. One of its functions takes a value from a form and runs it as a system command without checking it. An attacker who is logged in can put their own command in that value, and the router will run it, giving them 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 by Lilith >_>

View all

148 more disclosed reports, best first.

More from Cisco Talos

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.