Siretta QUARTZ-GOLD m2m DELETE_FILE cmd directory traversal vulnerability
The M2M DELETE_FILE command in the Siretta QUARTZ-GOLD router builds a shell command using unvalidated input from a UDP packet, allowing directory traversal. An attacker can send a crafted packet to delete arbitrary files on the device.
Originally disclosed on Cisco Talos
A directory traversal vulnerability exists in the m2m DELETEFILE cmd functionality of Siretta QUARTZ-GOLD G5.0.1.5-210720-141020. A specially-crafted network packet can lead to arbitrary file deletion.
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 DELETE_FILE command fails to validate the file path supplied in the UDP packet before using it in a shell command, allowing directory traversal.
Impact
An attacker could delete arbitrary files on the device, potentially disrupting its operation.
What the attacker needed
M2M feature enabled; network access to the M2M service
The fix
The vulnerability was fixed in a vendor patch release.
How it was found
- Enable the M2M feature on the router.
- Send a UDP packet with the DELETE_FILE command (0x15) containing a crafted file path with directory traversal sequences.
- The router executes the rm -rf command with the crafted path, deleting the targeted file.
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 has a feature that lets it delete files when it receives a special network message. The message includes a file name, and the router does not check if that name contains '..' or slashes that let it escape the intended folder. So an attacker can make the router delete any file on the system.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.