FastAPI
cpe:2.3:a:fastapi_project:fastapi:*:*:*:*:*:*:*
- < 2.0.0
A vulnerability allowing HTTP header injection has been identified in FastAPI Guard versions prior to 2.0.0. This issue arises from the library's handling of the X-Forwarded-For header, which can be manipulated to inject arbitrary IP addresses. Such exploitation could bypass IP-based access controls, mislead logging systems, and allow impersonation of trusted clients, particularly in applications that rely on this header for authorization or authentication.
Exploitation of this vulnerability can lead to bypassing IP-based access controls, misleading logging systems, and impersonating trusted clients.
To reproduce this vulnerability, upload FastAPI Guard version 1.5.0 or earlier. Run the FastAPI application and send a request with a manipulated X-Forwarded-For header. The server will respond with the injected IP address, demonstrating the successful exploitation of the vulnerability.
Users are advised to upgrade to FastAPI Guard version 2.0.0, which addresses this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.