Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 1.2.6-1 | — |
| Debian 13 | rails | 1.2.6-1 | — |
| Debian 12 | rails | 1.2.6-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | rails | < 1.2.6 | 1.2.6 | GHSA-p4c6-77gc-694x |
References
- ADV-2007-4238 vdb-entry
- TA07-352A third-party-advisory
- 28136 third-party-advisory
- 27781 third-party-advisory
- http://dev.rubyonrails.org/changeset/8177
- APPLE-SA-2007-12-17 vendor-advisory
- 26598 vdb-entry
- http://docs.info.apple.com/article.html?artnum=307179
- http://dev.rubyonrails.org/ticket/10048
- ADV-2007-4009 vdb-entry
- http://weblog.rubyonrails.org/2007/11/24/ruby-on-rails-1-2-6-security-and-maintenance-release