CVE-2024-1729: Gradio App - Broken Authentication
- Cve: CVE-2024-1729
- Name: Gradio App - Broken Authentication
- Description: 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.
- Impact: Attackers can potentially bypass authentication and gain unauthorized access by exploiting timing differences.
- Remediation: Use constant-time comparison functions for credential validation to mitigate timing attacks.
- Vulnerability type: broken_authentication
- Vulnerability impact: privilege_escalation
- Requirement type: user_interaction
- Requirements: Attacker needs network access to the login endpoint and user interaction
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00501
- Epss percentile: 0.43757
- Assignee: [email protected]
- Published at: 2024-03-29T05:15:45Z
- Age in days: 970
- Modified at: 2026-06-17T07:04:53Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-1729
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.com/bounties/f6a10a8d-f538-4cb7-9bb2-85d9f5708124 | nvd | 2024-03-29 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe0e73962e8cbd5d3af6e87b | nvd | Patch |
| https://huntr.com/bounties/f6a10a8d-f538-4cb7-9bb2-85d9f5708124 | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gradio_project:gradio | >= 4.18.0, < 4.19.2 | no | nvd | /v1/products/gradio_project/gradio |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| gradio-app/gradio | commit, fix, package, releases, security_advisory | yes | /v1/repositories/gradio-app/gradio |
Index
- Repositories: 433
- Repositories high signal: 262
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-03-29
- Remote: yes
- Exposed hosts: 2932
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports