session fixation protection mechanism in cgi_process.rb in Rails
Published 24 Oct 2017 · Updated 9 Apr 2025
Is your project on an affected rails?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.2.6
- Fixed in
- 1.2.6
bundle update --conservative rails # Gemfile: '>= 1.2.6'Details
The session fixation protection mechanism in cgi_process.rb in Rails 1.2.4, as used in Ruby on Rails, removes the :cookie_only attribute from the DEFAULT_SESSION_OPTIONS constant, which effectively causes cookie_only to be applied only to the first instantiation of CgiRequest, which allows remote attackers to conduct session fixation attacks. NOTE: this is due to an incomplete fix for CVE-2007-5380.
Is GHSA-p4c6-77gc-694x in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rails, and gives you the command that fixes it.
More advisories for rails
- MediumCVE-2024-26143Rails has possible XSS Vulnerability in Action Controller · 27 Feb 2024
- CriticalCVE-2009-2422rails vulnerable to improper authentication · 24 Oct 2017
- HighCVE-2006-4112Rails Denial of Service vulnerability · 24 Oct 2017
- HighCVE-2006-4111Ruby on Rails vulnerable to code injection · 24 Oct 2017
- MediumCVE-2009-4214Moderate severity vulnerability that affects rails · 24 Oct 2017
- MediumCVE-2007-5379Moderate severity vulnerability that affects rails · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2007-6077
- Advisorygithub.com/advisories/GHSA-p4c6-77gc-694x
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-6077.yml
- Linkrubyonrails.org/2007/11/24/ruby-on-rails-1-2-6-security-and-maintenance-release
- Linkdev.rubyonrails.org/changeset/8177
- Linkdev.rubyonrails.org/ticket/10048
- Linkdocs.info.apple.com/article.html?artnum=307179
- Linklists.apple.com/archives/security-announce/2007/Dec/msg00002.html
- Linksecunia.com/advisories/27781
- Linksecunia.com/advisories/28136
- Linkweblog.rubyonrails.org/2007/11/24/ruby-on-rails-1-2-6-security-and-maintenance-release
- Linkwww.securityfocus.com/bid/26598
- Linkwww.us-cert.gov/cas/techalerts/TA07-352A.html
- Linkwww.vupen.com/english/advisories/2007/4009
- Linkwww.vupen.com/english/advisories/2007/4238
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.