Server-Side Request Forgery in gradio
High severity
GitHub Reviewed
Published
Jun 6, 2024
to the GitHub Advisory Database
•
Updated Jun 6, 2024
Description
Published by the National Vulnerability Database
Jun 6, 2024
Published to the GitHub Advisory Database
Jun 6, 2024
Reviewed
Jun 6, 2024
Last updated
Jun 6, 2024
A Server-Side Request Forgery (SSRF) vulnerability exists in the gradio-app/gradio and was discovered in version 4.21.0, specifically within the
/queue/join
endpoint and thesave_url_to_cache
function. The vulnerability arises when thepath
value, obtained from the user and expected to be a URL, is used to make an HTTP request without sufficient validation checks. This flaw allows an attacker to send crafted requests that could lead to unauthorized access to the local network or the AWS metadata endpoint, thereby compromising the security of internal servers.References