dxbjavid opened a new pull request, #848:
URL: https://github.com/apache/httpcomponents-client/pull/848

   DefaultRedirectStrategy decides whether to keep the Authorization and Cookie 
headers on a redirect by comparing the current and new targets, but 
isSameAuthority only looks at the host name and the resolved port and leaves 
the scheme out. A response that redirects from https to http on the same host 
and the same explicit port, say https://host:8443/ to http://host:8443/, is 
treated as the same origin, so those credentials are retained and end up being 
sent in the clear. I've added the scheme to that comparison so a cross-scheme 
downgrade counts as a different origin and the sensitive headers are stripped 
as they already are for a different host or port.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to