WizがGoogle Cloudに参加:共に魔法を作り出す
脆弱性データベースGHSA-jpw8-42g9-g437

GHSA-jpw8-42g9-g437: 
Python 脆弱性の分析と軽減

Summary

HARP forwards every proxied request through one shared HTTP client whose cookie jar is enabled. Cookies set by an upstream are stored by the proxy and sent with later requests from other clients, so one user can be sent upstream with another user's session.

Impact

Affects deployments where an upstream sets cookies (for example, session cookies after a login) and more than one client uses the same HARP instance. No HARP configuration is needed to trigger it: the default configuration is vulnerable.

  • Any later request that arrives with no Cookie header is sent upstream with the most recently stored cookies for that domain. Its sender then acts as the user who set them. An unauthenticated attacker can take over a session just by sending cookieless requests. Legitimate clients can also end up acting as another user without knowing it.
  • Cookies are matched by domain, not port. They therefore also reach other HARP endpoints whose upstream is on the same host, and sibling hosts when the cookie carries a Domain attribute.
  • Requests that carry their own Cookie header are forwarded unchanged and are not affected.

Patches

Fixed in 0.11.1 and 0.12.0. The proxy's HTTP client no longer stores cookies. Cookie and Set-Cookie headers are still relayed between clients and upstreams as-is.

Workarounds

No configuration option disables the cookie jar. Until you can upgrade:

  • do not proxy upstreams that use cookie-based sessions through a HARP instance shared by several users, or
  • make sure every client request carries a Cookie header (the stored cookies are only added to requests that have none), and
  • restart HARP to clear any cookies it has already stored.

Details

The http_client service (harp_apps/http_client/services.yml) builds an httpx.AsyncClient with its default cookie jar, and one instance serves the whole process. httpx stores every Set-Cookie header from a response in that jar. harp_apps/proxy/adapters.py builds each upstream request with http_client.build_request(), which merges the jar into the request and adds a Cookie header whenever the incoming request has none.

PoC

  1. Run an upstream on 127.0.0.1:4700 that answers /login/<user> with Set-Cookie: session=<user> and echoes back the Cookie header it receives.
  2. Start HARP: harp-proxy server --endpoint up=4701:http://127.0.0.1:4700/
  3. Victim logs in: curl -i http://127.0.0.1:4701/login/alice (response carries Set-Cookie: session=alice)
  4. Another client, with no cookie: curl http://127.0.0.1:4701/whoami. The upstream receives Cookie: session=alice.

ソース: NVDの

関連 Python 脆弱 性:

CVE 識別子

重大度

スコア

テクノロジー

コンポーネント名

CISA KEV エクスプロイト

修正あり

公開日

GHSA-49wc-vv82-h8j7CRITICAL9.3
  • Python logoPython
  • harp-proxy
いいえはいOct 24, 2026
GHSA-jpw8-42g9-g437HIGH7.4
  • Python logoPython
  • harp-proxy
いいえいいえOct 24, 2026
GHSA-vvjr-4qwm-6xjxMEDIUM4.8
  • Python logoPython
  • harp-proxy
いいえいいえOct 24, 2026
GHSA-rr87-p3f8-qhxjHIGH該当なし
  • Python logoPython
  • memtomem
いいえはいOct 24, 2026
GHSA-3v6c-9qpg-gf63HIGH該当なし
  • Python logoPython
  • memtomem-stm
いいえはいOct 24, 2026

無料の脆弱性評価

クラウドセキュリティポスチャーのベンチマーク

9つのセキュリティドメインにわたるクラウドセキュリティプラクティスを評価して、リスクレベルをベンチマークし、防御のギャップを特定します。

評価を依頼する

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者