Browse / AI Framework and Platform Flaws / CVE-2024-1183
gradio Server-Side Request Forgery vulnerability
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Server-side request forgery
- Affected
- gradio (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS
- 1.8% chance of exploitation in 30 days
How it works, in short
A file parameter in a GET request makes the server contact internal addresses, so the responses reveal which internal ports are open. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-1183
- https://github.com/gradio-app/gradio/commit/2ad3d9e7ec6c8eeea59774265b44f11df7394bb4
- https://github.com/gradio-app/gradio/commit/7ba8c5da45b004edd12c0460be9222f5b5f5f055
- https://github.com/gradio-app/gradio
- https://huntr.com/bounties/103434f9-87d2-42ea-9907-194a3c25007c
Source: GitHub Advisory Database, used under CC BY 4.0.