fastapi-proxy-lib
Affected
- introduced
0, fixed0.1.0(ecosystem)
Fixed versions
0.1.0
Fix
- Fixed version
0.1.0pip install --upgrade fastapi-proxy-lib==0.1.0
Advisory
Also known as: None
Cookie leakage between different users in fastapi-proxy-lib
Impact
In the implementation of version 0.0.1, requests from different user clients are processed using a shared httpx.AsyncClient.
However, one oversight is that the httpx.AsyncClient will persistently store cookies based on the set-cookie response header sent by the target server and share these cookies across different user requests.
This results in a cookie leakage issue among all user clients sharing the same httpx.AsyncClient.
Patches
It's fixed in 0.1.0
Workarounds
If you insist 0.0.1:
ForwardHttpProxy at all.ReverseHttpProxy or ReverseWebSocketProxy for any servers that may potentially send a set-cookie response.However, it's best to upgrade to the latest version.
References
fixed in #10
High Basis: The source's own band: HIGH
0, fixed 0.1.0 (ecosystem)0.1.0
0.1.0pip install --upgrade fastapi-proxy-lib==0.1.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0