Siretta QUARTZ-GOLD m2m m2m_parse_router_config cmd OS command injection vulnerabilities
The m2m binary of the Siretta QUARTZ-GOLD router passes unsanitised data from UDP packets to a system() call, allowing OS command injection. An attacker can send a crafted network request to execute arbitrary commands.
Originally disclosed on Cisco Talos
Several OS command injection vulnerabilities exist in the m2m binary of Siretta QUARTZ-GOLD G5.0.1.5-210720-141020. A specially-crafted network request 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 m2m_parse_router_config function copies user-supplied data into a command string passed to system() without sanitisation.
Impact
An attacker can execute arbitrary OS commands on the device, potentially leading to full compromise.
What the attacker needed
M2M feature enabled; network access to the m2m service
The fix
The vendor released a patch on 2022-11-24.
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.
The router runs a background program that takes commands from the network. It builds a system command using text from the network without checking it, so an attacker can add extra commands that the router will run.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.