Skip to content
RCE Advisory Intermediate CVE-2024-34544

Wavlink AC3000 wireless.cgi AddMac() command injection vulnerability

The wireless.cgi AddMac() function in Wavlink AC3000 router fails to sanitise the addMac POST parameter, allowing an authenticated attacker to inject arbitrary system commands. This leads to remote command execution with high impact.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A command injection vulnerability exists in the wireless.cgi AddMac() functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted HTTP request can lead to arbitrary command 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 addMac POST parameter is passed directly to a system() call without any input sanitisation.

Impact

An authenticated attacker could execute arbitrary commands on the router, leading to full compromise.

What the attacker needed

Valid session cookie (authenticated)

The fix

The addMac parameter should be properly sanitised before being passed to system().

How it was found

  1. Log in to the router's web interface to obtain a valid session cookie.
  2. Send an HTTP POST request to wireless.cgi with page=AddMac and a crafted addMac parameter containing shell metacharacters.
  3. The router executes the injected command with system privileges.

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's web interface has a feature that runs system commands based on user input. Because it doesn't check what you type, someone who is logged in can trick the router into running any command they want, taking over 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.