Skip to content
RCE Advisory Intermediate CVE-2025-54404CVE-2025-54403

Planet WGR-500 swctrl OS command injection vulnerabilities

The swctrl service on the Planet WGR-500 router builds shell commands from attacker-supplied password and device name fields without sanitisation. An attacker who knows the current password can send a crafted UDP packet to execute arbitrary operating system commands.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.8 View original

Multiple OS command injection vulnerabilities exist in the swctrl functionality of Planet WGR-500 v1.3411b190912. A specially crafted network request can lead to arbitrary command execution.

Francesco Benvenuto, 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 service uses sprintf to build shell command strings from untrusted packet fields and passes them to system() without sanitising shell metacharacters.

Impact

An attacker with knowledge of the current password could execute arbitrary operating system commands on the router.

What the attacker needed

Network access to the swctrl UDP service; knowledge of the current password

How it was found

  1. Send a UDP packet to the swctrl service with the magic string 'PLANETut' and command 0x90.
  2. Include the correct current password in the packet so the password check passes.
  3. Put shell metacharacters and commands in the new_password field to inject into the password-change command.
  4. Alternatively, set use_dhcp to false and a non-127 first IP octet, then put shell metacharacters in the device_name field to inject into the device-name 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 runs a small background service that listens for special network messages. When it receives a message asking to change the password or device name, it pastes that text directly into a command that the operating system runs. Because the text is not cleaned, an attacker can include extra command instructions and make the router run them.

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 Francesco Benvenuto

View all

152 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.