Siretta QUARTZ-GOLD httpd SNMP OS command injection vulnerability
The router's web interface allows an authenticated user to set custom SNMP OIDs that are written directly into the SNMP configuration as exec entries, so arbitrary commands run when the OID is queried. An attacker with valid credentials could execute commands on the device and read their output via SNMP.
Originally disclosed on Cisco Talos
An OS command injection vulnerability exists in the httpd SNMP functionality of Siretta QUARTZ-GOLD G5.0.1.5-210720-141020. A specially-crafted HTTP response can lead to arbitrary command 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 interface passes user-supplied custom OID values directly into the SNMP configuration file as exec entries without validation or sanitisation.
Impact
An attacker with valid credentials could execute arbitrary commands on the router and read their output through SNMP.
What the attacker needed
Valid credentials for the web interface; network access to the router
The fix
The vendor released a patch; the text does not describe the fix details.
How it was found
- Send an authenticated POST request to the router's configuration CGI with SNMP settings and a custom OID containing a command.
- The router saves the settings and restarts the SNMP service.
- Query the custom OID via SNMP to retrieve the command output.
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 lets you define custom SNMP items (called OIDs) that run a command when queried. The web page that saves these settings does not check what command you enter, so someone who can log in can make the router run any command they like. They then read the result through SNMP.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.