CVE-2024-2206
Gradio Reverse Proxy Server-Side Request Forgery (SSRF)
Description
An SSRF vulnerability exists in the gradio-app/gradio due to insufficient validation of user-supplied URLs in the `/proxy` route. Attackers can exploit this vulnerability by manipulating the `self.replica_urls` set through the `X-Direct-Url` header in requests to the `/` and `/config` routes, allowing the addition of arbitrary URLs for proxying. This flaw enables unauthorized proxying of requests and potential access to internal endpoints within the Hugging Face space. The issue arises from the application's inadequate checking of safe URLs in the `build_proxy_request` function.
INFO
Published Date :
March 27, 2024, 1:15 a.m.
Last Modified :
April 16, 2024, 12:15 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.4
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-2206
.
URL | Resource |
---|---|
https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6 | |
https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98e |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-2206
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-2206
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Apr. 16, 2024
Action Type Old Value New Value Changed Description The /proxy route allows a user to proxy arbitrary urls including potential internal endpoints. An SSRF vulnerability exists in the gradio-app/gradio due to insufficient validation of user-supplied URLs in the `/proxy` route. Attackers can exploit this vulnerability by manipulating the `self.replica_urls` set through the `X-Direct-Url` header in requests to the `/` and `/config` routes, allowing the addition of arbitrary URLs for proxying. This flaw enables unauthorized proxying of requests and potential access to internal endpoints within the Hugging Face space. The issue arises from the application's inadequate checking of safe URLs in the `build_proxy_request` function. -
CVE Received by [email protected]
Mar. 27, 2024
Action Type Old Value New Value Added Description The /proxy route allows a user to proxy arbitrary urls including potential internal endpoints. Added Reference huntr.dev https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98e [No types assigned] Added Reference huntr.dev https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6 [No types assigned] Added CWE huntr.dev CWE-918 Added CVSS V3 huntr.dev AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-2206
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-2206
weaknesses.