Siretta QUARTZ-GOLD DetranCLI command parsing stack-based buffer overflow vulnerabilities
The DetranCLI command parser in the Siretta QUARTZ-GOLD router uses sprintf into fixed-size stack buffers without checking the length of user-supplied command parameters, causing stack-based buffer overflows. An attacker who can send crafted CLI commands could overflow these buffers and potentially execute arbitrary commands.
Originally disclosed on Cisco Talos
Several stack-based buffer overflow vulnerabilities exist in the DetranCLI command parsing functionality of Siretta QUARTZ-GOLD G5.0.1.5-210720-141020. A specially-crafted network packet 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 DetranCLI binary uses sprintf to copy command parameters into fixed-size stack buffers without validating their length.
What the attacker needed
Access to the DetranCLI interface; high privileges (PR:H in CVSS)
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.
A buffer overflow happens when a program copies more data into a fixed-size memory area than it can hold, so the extra data spills over into nearby memory. Here, the router's command-line tool builds text strings from your input without checking length, so a very long input can overwrite important memory and let an attacker take control. The attacker needs to be able to send commands to the router's CLI.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.