CVE-2022-27226: CSRF to RCE in iRZ Mobile Routers through 2022-03-16
The router's login page accepted default root credentials, giving administrative access. An authenticated administrator could use the crontabs feature to run arbitrary commands, leading to remote code execution.
johnjhacking.com
Published on johnjhacking.com
A CSRF issue on iRZ Mobile Routers through 2022-03-16 allows a threat actor to create a crontab entry in the router administration panel. The cronjob will consequently execute the entry on the threat actor's defined interval, leading to remote code execution, allowing the threat actor to gain file system 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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the device shipped with default administrative credentials and exposed a crontab editing feature that allowed arbitrary command execution.
Impact
An attacker with the default credentials could gain administrative control and execute arbitrary code on the router.
What the attacker needed
Default root credentials unchanged; network access to the router login page
How it was found
- Find the router login page and try the default root credentials.
- Log in to reach the administrative interface.
- Open the services tab and locate the Crontabs feature.
- Use crontabs to schedule a command, achieving remote code execution.
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.
A router shipped with a built-in administrator username and password that nobody had changed. Anyone who knew or guessed those defaults could log in and use a scheduling feature to make the device run their own commands.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.