CVE-2007-6077 session fixation protection mechanism in cgi_process.rb in Rails

Medium 6.8 Published Updated

Remote attackers can hijack user sessions due to flawed session fixation protection in Ruby on Rails, requiring user interaction to exploit.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2007-6077?

CVE-2007-6077 is a medium-severity authentication bypass vulnerability in Rubyonrails Rails, published on 21 Nov 2007. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-362

Which versions are affected by CVE-2007-6077?

2 open source packages ship an affected version, including rails. It affects 1 product.

PackageAffectedFixed in
rails RubyGemsAll versions1.2.6
rails RubyGemsAll versions1.2.6

Products include Rubyonrails Rails.

How do I fix CVE-2007-6077?

Upgrade rails to 1.2.6 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2007-6077 being exploited?

There is no known exploitation of CVE-2007-6077 in the wild and no public exploit code.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2007-6077, GHSA-p4c6-77gc-694x.

Is CVE-2007-6077 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free