dxbjavid opened a new pull request, #863: URL: https://github.com/apache/httpcomponents-client/pull/863
BearerScheme writes the token straight into the Authorization header, and unlike BasicScheme it never checks the credential for control characters. A bearer token carrying CR/LF is neutralised by the HTTP/1.1 line formatter, which replaces those bytes with spaces, but the HTTP/2 request converter passes header values through unchanged, so over h2 such a token can inject extra header material into the request. This applies the same control-character guard BasicScheme already uses, rejecting the token before the header is built. -- 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]
