Skip to content
RCE Advisory Intermediate CVE-2024-39367

Wavlink AC3000 firewall.cgi iptablesWebsFilterRun() command injection vulnerability

An OS command injection vulnerability exists in the firewall.cgi iptablesWebsFilterRun() functionality of Wavlink AC3000. An authenticated attacker can send a specially 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 firewall.cgi iptablesWebsFilterRun() 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 web interface takes user input for URL filters and passes it to a system command without proper sanitisation, allowing command injection.

Impact

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

What the attacker needed

Authenticated access to the web interface

The fix

The vendor is working on patches, but the product has been discontinued.

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 firewall.cgi with firewall=websURLFilter and an addURLFilter parameter containing a command injection payload.
  3. The payload is stored in NVRAM and later used in a system command, executing the injected command.

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 where an admin can set URL filters. The code that applies these filters passes the filter text directly to a system command without cleaning it. An attacker who is logged in can put special characters in the filter to run their own commands on 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.

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.