CVE-2024-1729
published 2024-03-29CVE-2024-1729: A timing attack vulnerability exists in the gradio-app/gradio repository, specifically within the login function in routes.py. The vulnerability arises from…
PriorityP336medium5.9CVSS 3.0
AVNACHPRNUINSUCHINAN
EPSS
0.50%
38.8th percentile
A timing attack vulnerability exists in the gradio-app/gradio repository, specifically within the login function in routes.py. The vulnerability arises from the use of a direct comparison operation (`app.auth[username] == password`) to validate user credentials, which can be exploited to guess passwords based on response times. Successful exploitation of this vulnerability could allow an attacker to bypass authentication mechanisms and gain unauthorized access.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gradio-app | gradio-app_gradio | >= unspecified < 4.19.2 | 4.19.2 |
| gradio_project | gradio | >= 0 < 4.19.2 | 4.19.2 |
| gradio_project | gradio | >= 4.18.0 < 4.19.2 | 4.19.2 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Gradio apps vulnerable to timing attacks to guess password
osv·2024-02-22
CVE-2024-1729 [MEDIUM] Gradio apps vulnerable to timing attacks to guess password
Gradio apps vulnerable to timing attacks to guess password
### Impact
This security policy is with regards to a timing attack that allows users of Gradio apps to potentially guess the password of password-protected Gradio apps. This relies on the fact that string comparisons in Python terminate early, as soon as there is a string mismatch. Because Gradio apps are, by default, not rate-limited, a user could brute-force millions of guesses to figure out the correct username and password.
### Patches
Yes, the problem has been patched in Gradio version 4.19.2 or higher. We have no knowledge of this exploit being used against users of Gradio applications, but we encourage all users to upgrade to Gradio 4.19.2 or higher.
Fixed in: https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe
GHSA
Gradio apps vulnerable to timing attacks to guess password
ghsa·2024-02-22
CVE-2024-1729 [MEDIUM] CWE-367 Gradio apps vulnerable to timing attacks to guess password
Gradio apps vulnerable to timing attacks to guess password
### Impact
This security policy is with regards to a timing attack that allows users of Gradio apps to potentially guess the password of password-protected Gradio apps. This relies on the fact that string comparisons in Python terminate early, as soon as there is a string mismatch. Because Gradio apps are, by default, not rate-limited, a user could brute-force millions of guesses to figure out the correct username and password.
### Patches
Yes, the problem has been patched in Gradio version 4.19.2 or higher. We have no knowledge of this exploit being used against users of Gradio applications, but we encourage all users to upgrade to Gradio 4.19.2 or higher.
Fixed in: https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-03-29
Published