Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. omniauth-oauth2
  4. ›
  5. CVE-2012-6134

CVE-2012-6134: CSRF vulnerability, injecting state in session

April 9, 2013 (updated August 2, 2019)

The package omniauth-oauth2 for Ruby contains a flaw related to omniauth.state that allows a remote attacker to conduct a session injection attack. This flaw exists because the application, when establishing a new session, does not invalidate an existing session identifier and assign a new one. With a specially crafted request fixating the session identifier, a context-dependent attacker can ensure a user authenticates with the known session identifier, allowing the session to be subsequently hijacked.

References

  • web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6134
  • github.com/intridea/omniauth-oauth2/pull/25

Code Behaviors & Features

Detect and mitigate CVE-2012-6134 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.1.1

Fixed versions

  • 1.1.1

Solution

Upgrade

Impact 6.8 MEDIUM

AV:N/AC:M/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

gem/omniauth-oauth2/CVE-2012-6134.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:39 +0000.