Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

`CookieStore` replaces explicitly defined `Cookie`s

Critical
hyperxpro publishedGHSA-mfj5-cf8g-g2fvDec 2, 2024

Package

mavenorg.asynchttpclient:async-http-client (Maven)

Affected versions

3.0.0

Patched versions

3.0.1

Description

Summary

When making any HTTP request, the automatically enabled and self-managedCookieStore (aka cookie jar) will silently replace explicitly definedCookies with any that have the same name from the cookie jar. For services that operate with multiple users, this can result in one user'sCookie being used for another user's requests.

Details

This issue is described without security warnings here:

#1964

I already have a PR to fix this issue:

#2033

PoC

  1. Add an authCookie to theCookieStore
    • This is identical to receiving an HTTP response that usesSet-Cookie, as shown in issue#1964 above.
  2. Handle a different user's request where the sameCookie is provided as a passthrough, like a JWT, and attempt to use it by explicitly providing it.
  3. Observe that the user's cookie in step 2 is passed as the Cookie in step 1.

Impact

This is generally going to be a problem for developers of backend services that implement third party auth features and use other features like token refresh. The moment a third party service responds bysetting a cookie in the response, theCookieStore will effectively break almost every follow-up request (hopefully by being rejected, but possibly by revealing a different user's information).

If your service sets cookies based on the response that happens here, it's possible to lead to even greater levels of exposure.

Severity

Critical

CVE ID

CVE-2024-53990

Weaknesses

No CWEs

Credits


[8]ページ先頭

©2009-2025 Movatter.jp