SSRF vulnerability in Gradio gr.DownloadButton
A server-side request forgery (SSRF) vulnerability was discovered in the gr.DownloadButton function in Gradio versions 4.42.0 and earlier. The save_url_to_cache function lacked URL restrictions, potentially allowing attackers to access local resources and sensitive information through the application.
What happened
The gr.DownloadButton function in Gradio versions 4.42.0 and earlier contains an SSRF vulnerability in the save_url_to_cache function. The function lacks URL restrictions, allowing access to local target resources without validation.
Reported impact
The vulnerability could allow unauthorized download of local resources and exposure of sensitive information. Attackers could exploit this by invoking the gr.DownloadButton with arbitrary URLs, potentially enabling SSRF attacks to access internal services.
Classification
Sources and evidence
This record was researched and written by the Index, based on the following original reporting.