CVE-2024-47167CWE-918

SSRF in the path parameter of /queue/join in Gradio

Medium · published October 10, 2024

CVSS v4.0
6.9
EPSS
0%
Percentile
40.1
In the wild
Unconfirmed
What it is

⚠️ A sneaky SSRF vulnerability hides in Gradio's `/queue/join` endpoint! This lets attackers trick your server into sending requests to user-controlled URLs—think of it as a delivery person who has been given a fake address to deliver sensitive information! 🔥 It's like a restaurant worker who blindly takes orders from anyone, delivering meals to addresses that don't exist or are actually competitors. If the server trusts these requests without verifying them, it could lead to some unwanted surprises! An attacker could exploit this SSRF to target internal servers or services within your local network, leading to data exfiltration or even launching attacks from within. This vulnerability could be a gateway for malicious content, potentially compromising sensitive data and causing significant headaches for your organization.

Put simply

It's like a restaurant worker who blindly takes orders from anyone, delivering meals to addresses that don't exist or are actually competitors. If the server trusts these requests without verifying them, it could lead to some unwanted surprises! This vulnerability in Gradio's `async_save_url_to_cache` function allows attackers to force the server to make HTTP requests to arbitrary URLs, including those within the internal network. Attackers can leverage this to exfiltrate data stored locally or even upload malicious files.

What to do

An attacker could exploit this SSRF to target internal servers or services within your local network, leading to data exfiltration or even launching attacks from within. This vulnerability could be a gateway for malicious content, potentially compromising sensitive data and causing significant headaches for your organization. Upgrade your Gradio to version 5 or higher to patch this vulnerability immediately. As a temporary workaround, restrict URL-based inputs to only trusted domains and implement allowlist-based validation to keep your server safe. You've got this! Follow these steps, and you'll secure your Gradio server like a true security hero! 🛡️

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
EPSS
0.00476 · 40.1th percentile
Weakness
CWE-918 · Server-Side Request Forgery (SSRF)
Published
2024-10-10T21:47Z
EPSS history
Timeline
  • 10 OCT 21:47Z
    SSRF in the path parameter of /queue/join in Gradio
    cvelistv5