GitHub Advisoryadvisory · RubyGems
GHSA-746g-3gfp-hfhw Devise Gem for Ruby Unauthorized Access Using "Remember Me" Cookie
HIGH
Official page ↗
- Aliases
- CVE-2015-8314
- Ecosystem
- RubyGems
- Packages
- devise
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-288, CWE-312
- Reviewed
- 2023-01-26
Affected packages
• RubyGems devise: < 3.5.4 → fixed in 3.5.4
Description
Devise version before 3.5.4 uses cookies to implement a "Remember me" functionality. However, it generates the same cookie for all devices. If an attacker manages to steal a remember me cookie and the user does not change the password frequently, the cookie can be used to gain access to the application indefinitely.
Related
Alias · CVE (1)
- CVE-2015-8314 The Devise gem before 3.5.4 for Ruby mishandles Remember Me cookies for sessions, which may allow an adversary to obtain unauthorized… vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-8314 advisory
- https://github.com/heartcombo/devise/commit/c92996646aba2d25b2c3e235fe0c4f1a84b70d24 web
- https://github.com/advisories/GHSA-746g-3gfp-hfhw advisory
- https://github.com/heartcombo/devise package
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/CVE-2015-8314.yml web
- https://rubysec.com/advisories/CVE-2015-8314 web
- http://blog.plataformatec.com.br/2016/01/improve-remember-me-cookie-expiration-in-devise web