Skip to content
Path traversal Advisory Intermediate CVE-2022-41154

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.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.2 View original

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.

Francesco Benvenuto, on Cisco Talos

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

  1. Enable the M2M feature on the router.
  2. Send a UDP packet with the DELETE_FILE command (0x15) containing a crafted file path with directory traversal sequences.
  3. 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.

More by Francesco Benvenuto

View all

152 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.