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-proxy-lib
to version 0.1.0 or higher.
fastapi-proxy-lib is a HTTP/WebSocket proxy for starlette/FastAPI.
Affected versions of this package are vulnerable to Information Exposure due to the shared usage of httpx.AsyncClient
in processing requests from different user clients. An attacker can exploit this to leak cookies among all user clients sharing the same httpx.AsyncClient
by sending a set-cookie
response header. This is only exploitable if the ForwardHttpProxy
is used, or if ReverseHttpProxy
or ReverseWebSocketProxy
are used for servers that may potentially send a set-cookie
response.
This vulnerability can be mitigated by not using ForwardHttpProxy
at all, and not using ReverseHttpProxy
or ReverseWebSocketProxy
for any servers that may potentially send a set-cookie
response.