Skip to content
Path traversal Advisory Beginner CVE-2022-38088

Siretta QUARTZ-GOLD httpd downfile.cgi directory traversal vulnerability

The downfile.cgi script in the Siretta QUARTZ-GOLD router's web server does not sanitise the _filename parameter, allowing directory traversal. An authenticated attacker can read arbitrary files on the device, such as /etc/passwd.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Medium 4.9 View original

A directory traversal vulnerability exists in the httpd downfile.cgi functionality of Siretta QUARTZ-GOLD G5.0.1.5-210720-141020. A specially-crafted HTTP request can lead to arbitrary file read.

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 _filename parameter is used directly in a file path without any sanitisation or validation.

Impact

An authenticated attacker could read any file on the file system, potentially exposing sensitive information such as user credentials.

What the attacker needed

Valid basic authentication credentials; correct _http_id token

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.

A directory traversal bug lets someone use '..' in a file name to escape the intended folder and read other files on the device. Here, the router's download feature takes a file name from the user without checking it, so an attacker who can log in can ask for sensitive system files like the password file.

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.