Skip to content
RCE Write-up Intermediate

Critical Vulnerabilities in RUT22GW Industrial LTE Cellular Route

The router's popen.cgi endpoint passes a user-supplied command parameter directly to popen without sanitisation, allowing unauthenticated remote command execution as root. A hard-coded backdoor account in the libicos library grants system-level access to the web management panel.

Vortex Follow

Published on blog.byteray.co.uk

Two critical security vulnerabilities have been identified in ALLNET ALL-RUT22GW routers, posing severe risks to users. These include:

Vortex, on blog.byteray.co.uk

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The CGI program takes the command parameter from the HTTP request and passes it straight to popen without any validation, and the authentication library compares credentials against hard-coded values.

Impact

An unauthenticated attacker could execute arbitrary OS commands as root and log in to the management panel with system-level access, taking full control of the router.

What the attacker needed

Network access to the router's web interface; no authentication required

How it was found

  1. Send an unauthenticated HTTP GET request to the popen.cgi endpoint with a command parameter.
  2. Observe that the command executes on the device and returns output as root.
  3. Analyse the popen binary and libicos library to find the ICOS_CheckPrivilege function.
  4. Identify the hard-coded username and password hash compared in that function.
  5. Crack the hash to recover the plaintext password.
  6. Log in to the web management panel with the recovered credentials at system access level.

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 write-up has not been written yet. The Original tab links to the source.

This report describes two serious flaws in an industrial router. First, a web address on the device runs whatever system command you put in it, with the highest privileges, and without asking for a password. Second, the device contains a hidden username and password baked into its software, so anyone who finds them can log in as an administrator.

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 Vortex

View all

1 more disclosed report, best first.

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.