Gradio Vulnerable to Arbitrary File Deletion
The Gradio Audio component allowed an attacker to control the audio file format, which led to arbitrary file content deletion. By manipulating the output format, an attacker could reset any file to empty, causing a denial of service on the server.
gradio
Originally disclosed on huntr
A path traversal vulnerability exists in the Gradio Audio component of gradio-app/gradio, as of version git 98cbcae. This vulnerability allows an attacker to control the format of the audio file, leading to arbitrary file content deletion. By manipulating the output format, an attacker can reset any file to an empty file, causing a denial of service (DOS) on the server.
From the GitHub Advisory Database (GHSA-pgfv-gvc5-prfg, CC BY 4.0).
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
Likely the Audio component used the attacker-supplied format value directly in a file path without validating or sanitising it, allowing path traversal.
Impact
An attacker could reset any file to an empty file, causing a denial of service on the server.
What the attacker needed
Access to the Gradio Audio component
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.
Gradio is a tool for building web interfaces for machine learning models. The Audio component lets users upload or process audio, and it used the format they chose to name and save files. Because the format was not checked, someone could make the component overwrite or empty other files on the server, which could stop the service from working.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.