Wavlink AC3000 wctrls static login vulnerability
A hidden UDP service on the Wavlink AC3000 router accepts a hardcoded encrypted command that enables telnet with a static root account, allowing an unauthenticated attacker to gain root access over the WAN.
Originally disclosed on Cisco Talos
A static login vulnerability exists in the wctrls functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted set of network packets can lead to root access.
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
Impact
An unauthenticated attacker could gain root access to the router over the WAN, as no iptables rules were found to block the UDP port.
What the attacker needed
Network access to UDP port 36338; No authentication required
The fix
The product is discontinued and patches are being worked on, but no fix is described in the text.
How it was found
- Send a two-byte packet where the first byte is between 0x11 and 0x17 to the UDP service on port 36338.
- Send a 16-byte packet that matches the expected encrypted value.
- Receive a 16-byte encrypted ASCII key from the server.
- Send another two-byte packet and a 16-byte packet encrypted with the received key, containing a command from the command list.
- The server executes the command, such as starting telnet on port 2323.
- Log in using the static rootws account.
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.
The router runs a secret network service that listens for special commands. If someone sends the right command, the service turns on a remote login feature that uses a fixed username and password, so anyone who knows them can log in as the administrator from anywhere on the internet.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.