Skip to content
SSRF Disclosed report Intermediate CVE-2024-1183

gradio Server-Side Request Forgery vulnerability

The gradio application accepted a user-supplied file parameter in a GET request and fetched it server-side, letting an attacker probe internal network ports by observing whether the response contained a Location header or a 'File not allowed' error.

gradio-app/gradio

Originally disclosed on huntr

An SSRF (Server-Side Request Forgery) vulnerability exists in the gradio-app/gradio repository, allowing attackers to scan and identify open ports within an internal network. By manipulating the 'file' parameter in a GET request, an attacker can discern the status of internal ports based on the presence of a 'Location' header or a 'File not allowed' error in the response.

From the GitHub Advisory Database (GHSA-qh6x-j82h-vpf9, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 server fetched a user-controlled file path or URL without restricting it to allowed locations, and its error messages revealed whether the internal target responded.

What the attacker needed

Access to the gradio endpoint; internal network reachable from server

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.

Server-Side Request Forgery (SSRF) is when a server is tricked into making a request to a destination the attacker chooses. Here, the attacker could ask the gradio server to fetch a file from an internal address and then tell from the reply whether that internal port was open or closed. This lets someone map out a private network they could not reach directly.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from gradio-app/gradio

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.