Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsUpgrade fastapi-guard
to version 2.0.0 or higher.
fastapi-guard is a Security library for FastAPI to control IPs and more.
Affected versions of this package are vulnerable to Use of Less Trusted Source via the manipulation of the X-Forwarded-For
header. An attacker can inject arbitrary IP addresses into the request by manipulating this header. This can lead to bypassing IP-based access controls, misleading logging systems, and impersonating trusted clients.
Run the FastAPI application locally:
uvicorn main:app --host 0.0.0.0 --port 8000
Send a crafted request with a manipulated X-Forwarded-For
header:
curl -i http://127.0.0.1:8000/ -H "X-Forwarded-For: 8.8.8.8"