CVE-2022-31033
published 2022-06-09CVE-2022-31033: The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow…
PriorityP343high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
1.39%
69.3th percentile
The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. In versions prior to 2.8.5 the Authorization header is leaked after a redirect to a different port on the same site. Users are advised to upgrade to Mechanize v2.8.5 or later. There are no known workarounds for this issue.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | ruby-mechanize | < ruby-mechanize 2.8.5-1 (bookworm) | ruby-mechanize 2.8.5-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| mechanize_project | mechanize | < 2.8.5 | 2.8.5 |
| mechanize_project | mechanize | >= 0 < 2.8.5 | 2.8.5 |
| sparklemotion | mechanize | < 2.8.5 | 2.8.5 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
ghsa6.5MEDIUM
osv7.5HIGH
vendor_debian5.9MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
osv·2022-06-09·CVSS 6.5
CVE-2022-31033 [MEDIUM] Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
**Summary**
Mechanize (rubygem) ` 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.
OSV
CVE-2022-31033: The Mechanize library is used for automating interaction with websites
osv·2022-06-09·CVSS 7.5
CVE-2022-31033 [HIGH] CVE-2022-31033: The Mechanize library is used for automating interaction with websites
The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. In versions prior to 2.8.5 the Authorization header is leaked after a redirect to a different port on the same site. Users are advised to upgrade to Mechanize v2.8.5 or later. There are no known workarounds for this issue.
GHSA
Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
ghsa·2022-06-09·CVSS 6.5
CVE-2022-31033 [MEDIUM] CWE-200 Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
**Summary**
Mechanize (rubygem) ` 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.
Debian
CVE-2022-31033: ruby-mechanize - The Mechanize library is used for automating interaction with websites. Mechaniz...
vendor_debian·2022·CVSS 5.9
CVE-2022-31033 [MEDIUM] CVE-2022-31033: ruby-mechanize - The Mechanize library is used for automating interaction with websites. Mechaniz...
The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. In versions prior to 2.8.5 the Authorization header is leaked after a redirect to a different port on the same site. Users are advised to upgrade to Mechanize v2.8.5 or later. There are no known workarounds for this issue.
Scope: local
bookworm: resolved (fixed in 2.8.5-1)
bullseye: open
forky: resolved (fixed in 2.8.5-1)
sid: resolved (fixed in 2.8.5-1)
trixie: resolved (fixed in 2.8.5-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/sparklemotion/mechanize/commit/c7fe6996a5b95f9880653ba3bc548a8d4ef72317https://github.com/sparklemotion/mechanize/security/advisories/GHSA-64qm-hrgp-pgr9https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7OKZMR5O3T5HQ2V737TC7IU4WZRT2LGX/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA2FJROTX2U6EBWDPKRQ2VAM67A5TQXF/https://github.com/sparklemotion/mechanize/commit/c7fe6996a5b95f9880653ba3bc548a8d4ef72317https://github.com/sparklemotion/mechanize/security/advisories/GHSA-64qm-hrgp-pgr9https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7OKZMR5O3T5HQ2V737TC7IU4WZRT2LGX/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA2FJROTX2U6EBWDPKRQ2VAM67A5TQXF/
2022-06-09
Published