GitHub Advisoryadvisory · RubyGems
GHSA-64qm-hrgp-pgr9 Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
MEDIUM
Official page ↗
- Aliases
- CVE-2022-31033
- Ecosystem
- RubyGems
- Packages
- mechanize
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-200, CWE-522
- Reviewed
- 2022-06-09
Affected packages
• RubyGems mechanize: < 2.8.5 → fixed in 2.8.5
Description
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.
Related
Alias · CVE (1)
- CVE-2022-31033 The Mechanize library is used for automating interaction with websites. vulnerability
References
- https://github.com/sparklemotion/mechanize/security/advisories/GHSA-64qm-hrgp-pgr9 web
- https://nvd.nist.gov/vuln/detail/CVE-2022-31033 advisory
- https://github.com/sparklemotion/mechanize/commit/c7fe6996a5b95f9880653ba3bc548a8d4ef72317 web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mechanize/CVE-2022-31033.yml web
- https://github.com/sparklemotion/mechanize package