FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stop config realm leaking to a cross-origin redirect target by jmestwa-coder · Pull Request #2224 · AsyncHttpClient/async-http-client · GitHub

stop config realm leaking to a cross-origin redirect target - #2224

Merged
hyperxpro merged 1 commit into
AsyncHttpClient:mainfrom
jmestwa-coder:redirect-config-realm-strip
Jul 12, 2026
Merged

stop config realm leaking to a cross-origin redirect target#2224
hyperxpro merged 1 commit into
AsyncHttpClient:mainfrom
jmestwa-coder:redirect-config-realm-strip

Conversation

Copy link
Copy Markdown

Cross-origin and https-to-http redirects strip the request realm, but exitAfterIntercept re-derived it from config.getRealm(), reattaching a client-wide realm to the redirect target:

  • the target answers 401 and then receives the configured credentials, leaking them to a different origin
  • Redirect30xInterceptor already clears future.getRealm() on the strip, so read the realm from the future instead of falling back to config
    Added a cross-origin 401 case to RedirectCredentialSecurityTest that fails without the change.

Copy link
Copy Markdown
Author

gentle ping

hyperxpro merged commit b66757b into AsyncHttpClient:main Jul 12, 2026
13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL