Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
Moderate severity
GitHub Reviewed
Published
Jun 9, 2022
in
sparklemotion/mechanize
•
Updated Jan 27, 2023
Description
Published by the National Vulnerability Database
Jun 9, 2022
Published to the GitHub Advisory Database
Jun 9, 2022
Reviewed
Jun 9, 2022
Last updated
Jan 27, 2023
Summary
Mechanize (rubygem)
< v2.8.5
leaks theAuthorization
header after a redirect to a different port on the same site.Mitigation
Upgrade to Mechanize v2.8.5 or later.
Notes
See https://curl.se/docs/CVE-2022-27776.html for a similar vulnerability in curl.
Cookies are shared with a server at a different port on the same site, per https://datatracker.ietf.org/doc/html/rfc6265#section-8.5 which states in part:
References