GHSA-7vwr-g6pm-9hc8

Suggest an improvement
Source
https://github.com/advisories/GHSA-7vwr-g6pm-9hc8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-7vwr-g6pm-9hc8/GHSA-7vwr-g6pm-9hc8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7vwr-g6pm-9hc8
Published
2023-12-01T19:23:49Z
Modified
2024-12-06T05:38:58.654295Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Cookie leakage between different users in fastapi-proxy-lib
Details

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: - Do not use ForwardHttpProxy at all. - Do not use 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

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-12-01T19:23:49Z"
}
References

Affected packages

PyPI / fastapi-proxy-lib

Package

Name
fastapi-proxy-lib
View open source insights on deps.dev
Purl
pkg:pypi/fastapi-proxy-lib

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.1.0

Affected versions

0.*

0.0.1b0