GitHub Advisoryadvisory · RubyGems
GHSA-4hpq-rjcx-7vj9 Clearance Gem Open Redirect Vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2021-23435
- Ecosystem
- RubyGems
- Packages
- clearance
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
- Weaknesses
- CWE-601
- Reviewed
- 2021-09-13
Affected packages
• RubyGems clearance: < 2.5.0 → fixed in 2.5.0
Description
This affects the package clearance before 2.5.0. The vulnerability can be possible when users are able to set the value of `session[:return_to]`. If the value used for return_to contains multiple leading slashes (`/////example.com`) the user ends up being redirected to the external domain that comes after the slashes (`http://example.com`).
Related
Alias · CVE (1)
- CVE-2021-23435 This affects the package clearance before 2.5.0. vulnerability
Weakness · CWE (1)
- CWE-601 URL Redirection to Untrusted Site weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23435 advisory
- https://github.com/thoughtbot/clearance/pull/945 web
- https://github.com/advisories/GHSA-4hpq-rjcx-7vj9 advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/clearance/CVE-2021-23435.yml web
- https://github.com/thoughtbot/clearance package
- https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284 web