logo
DATABASE RESOURCES PRICING ABOUT US

Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect

Description

**Summary** Mechanize (rubygem) `< v2.8.5` leaks the `Authorization` 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](CVE-2022-27776) 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: > Cookies do not provide isolation by port. If a cookie is readable > by a service running on one port, the cookie is also readable by a > service running on another port of the same server. If a cookie is > writable by a service on one port, the cookie is also writable by a > service running on another port of the same server. For this > reason, servers SHOULD NOT both run mutually distrusting services on > different ports of the same host and use cookies to store security- > sensitive information.


Affected Software


CPE Name Name Version
mechanize 0.1.0
mechanize 0.1.1
mechanize 0.1.2
mechanize 0.1.3
mechanize 0.2.0
mechanize 0.2.1
mechanize 0.2.2
mechanize 0.2.3
mechanize 0.3.0
mechanize 0.3.1
mechanize 0.4.0
mechanize 0.4.1
mechanize 0.4.2
mechanize 0.4.3
mechanize 0.4.4
mechanize 0.4.5
mechanize 0.4.6
mechanize 0.4.7
mechanize 0.5.0
mechanize 0.5.1
mechanize 0.5.2
mechanize 0.5.3
mechanize 0.5.4
mechanize 0.6.0
mechanize 0.6.1
mechanize 0.6.10
mechanize 0.6.11
mechanize 0.6.2
mechanize 0.6.3
mechanize 0.6.4
mechanize 0.6.5
mechanize 0.6.6
mechanize 0.6.7
mechanize 0.6.8
mechanize 0.6.9
mechanize 0.7.0
mechanize 0.7.1
mechanize 0.7.2
mechanize 0.7.3
mechanize 0.7.4
mechanize 0.7.5
mechanize 0.7.6
mechanize 0.7.7
mechanize 0.7.8
mechanize 0.8.0
mechanize 0.8.1
mechanize 0.8.2
mechanize 0.8.3
mechanize 0.8.4
mechanize 0.8.5
mechanize 0.9.0
mechanize 0.9.1
mechanize 0.9.2
mechanize 0.9.3
mechanize 1.0.0
mechanize 1.0.1.beta.20110107104205
mechanize 2.0
mechanize 2.0.1
mechanize 2.0.pre.1
mechanize 2.0.pre.2
mechanize 2.1
mechanize 2.1.1
mechanize 2.1.pre.1
mechanize 2.2
mechanize 2.2.1
mechanize 2.3
mechanize 2.4
mechanize 2.5
mechanize 2.5.1
mechanize 2.6.0
mechanize 2.7.0
mechanize 2.7.1
mechanize 2.7.2
mechanize 2.7.3
mechanize 2.7.4
mechanize 2.7.5
mechanize 2.7.6
mechanize 2.7.7
mechanize 2.8.0
mechanize 2.8.1
mechanize 2.8.2
mechanize 2.8.3
mechanize 2.8.4

Related