a2a-java-sdk-http-client-vertxでリダイレクト先に認証情報が送られる脆弱性
Summary
a2a-java-sdk-http-client-vertxの1.3.2.Finalから1.4.0.Finalまでの版では、followRedirects(true)を有効にしたとき、リダイレクト先が別のホストでもAuthorizationヘッダーを含むすべてのヘッダーが送られます。悪意のあるエージェントや乗っ取られたエージェントの応答により、認証情報が攻撃者の管理するホストへ渡るおそれがあります。修正版の有無は公表されていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
a2a-java-sdk-http-client-vertxの1.3.2.Finalから1.4.0.Finalまでの版では、followRedirects(true)を有効にしたとき、リダイレクト先が別のホストでもAuthorizationヘッダーを含むすべてのヘッダーが送られます。悪意のあるエージェントや乗っ取られたエージェントの応答により、認証情報が攻撃者の管理するホストへ渡るおそれがあります。修正版の有無は公表されていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| a2a-javaa2a-java-sdk-http-client-vertx |
1.3.2.Final – 1.4.0.Final→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
The Vert.x HTTP client transport (a2a-java-sdk-http-client-vertx) hand-rolls a POST redirect follower that, when the documented PostBuilder.followRedirects(true) opt-in is enabled, re-issues the redirected request with the full request header map copied verbatim and performs no credential stripping and no same-authority check. A malicious, compromised, or mistyped agent that returns a 30x response with an absolute cross-host Location causes the client to forward the standard Authorization header (Bearer/Basic/OAuth) — plus every other header, including the allowlisted API-key headers — to the attacker-controlled authority. This breaks the project's own cross-transport invariant (SECURITY.md §8, OkHttpPostRedirectHeaderLeakTest) that credentials are stripped on cross-authority redirects even when redirects are followed. The sibling JDK and OkHttp/Android transports strip Authorization; Vert.x uniquely does not. This is a "fix introduced the bug" variant — the follower was added by the GHSA-9rhm hardening PR (3ae82912, refined by a5e76a0b).
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- web github.com