Siretta QUARTZ-GOLD httpd shell.cgi leftover debug code vulnerability
The router's web server includes a leftover debug API that executes arbitrary shell commands. An authenticated attacker can send a crafted HTTP request to run commands and receive their output.
Originally disclosed on Cisco Talos
A leftover debug code vulnerability exists in the httpd shell.cgi functionality of Siretta QUARTZ-GOLD G5.0.1.5-210720-141020. A specially-crafted HTTP request can lead to remote code execution.
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 web server (AdvancedTomato) shipped with a debug API (shell.cgi) enabled by default, which passes a user-supplied parameter directly to a command execution function.
Impact
An attacker with valid credentials could execute arbitrary commands on the router, leading to full compromise of confidentiality, integrity, and availability.
What the attacker needed
Valid basic authentication credentials; knowledge of the correct _http_id token
The fix
The vendor released a patch to disable the debug API.
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 web server that has a hidden debugging feature left switched on. That feature lets anyone who can log in run commands on the router's operating system, as if they were sitting at a terminal. The attacker just sends a special web request and gets the command's output back.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.