Skip to content
RCE Write-up Intermediate

(CVE-2024-1838) Singtel RT5703W Authenticated Command Injection RCE via SetLoginPwd Vulnerability

An authenticated attacker on the local network can inject operating system commands through the login endpoint of the router's web interface. This allows execution of arbitrary commands with root privileges on the underlying OS.

starlabs.sg

Published on starlabs.sg

Singtel WI-FI 6 ROUTER RT5703W is a router provided by Singtel to their customers, manufactured by Askey Computer Corp.

The author, on starlabs.sg

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

Likely the login CGI script passes user-supplied input to a system shell without proper sanitisation or escaping.

Impact

An authenticated attacker on the LAN could execute arbitrary OS commands with root privileges, potentially taking full control of the router.

What the attacker needed

Authenticated access to the router; attacker on the local network

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 router's web management page has a login form that passes user input directly to the operating system without cleaning it. Someone who is already logged in and on the same local network can type special characters that make the router run their own commands as the most powerful user (root).

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.