Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsThere is no fixed version for gradio
.
gradio is a Python library for easily interacting with trained machine learning models
Affected versions of this package are vulnerable to Path Equivalence due to the blocked_path()
function only blocking standard pathnames. On Windows systems, an attacker can read unauthorized files by using NTFS Alternate Data Streams syntax to bypass path restrictions.
If c:/tmp/secret.txt
is inaccessible but its containing directory c:/tmp
is accessible:
http://127.0.0.1:7860/file=c:/tmp/secret.txt::$DATA