CVE-2012-6134: Omniauth oauth2 Omniauth-oauth2 Cross-Site Request Forgery Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-fgmx-8h93-26fh
CWE-352
Published
Advisory Summary

CVE-2012-6134 is a MODERATE omniauth-oauth2 cross-site request forgery vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Omniauth oauth2 libraries in the RubyGems ecosystem. The issue involves omniauth-oauth2 cross-site request forgery vulnerability. Remediation is available by upgrading affected packages to version 1.1.1.

CVE-2012-6134 at a Glance

CVE Identifier CVE-2012-6134
GHSA Identifier GHSA-fgmx-8h93-26fh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Omniauth oauth2
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2012-6134

To remediate this vulnerability, upgrade all affected Omniauth oauth2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

omniauth-oauth2 fixed: 1.1.1
Upgrade omniauth-oauth2 to 1.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for omniauth-oauth2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2012-6134, inspect your project dependencies for Omniauth oauth2:

inspect dependencies for omniauth-oauth2

Analyze the terminal output to locate any version of Omniauth oauth2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Omniauth oauth2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Cross-site request forgery (CSRF) vulnerability in the omniauth-oauth2 gem prior to 1.1.1 for Ruby allows remote attackers to hijack the authentication of users for requests that modify session state.

CVE-2012-6134 Affected Omniauth oauth2 Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
omniauth-oauth2
RubyGems
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is CVE-2012-6134?
CVE-2012-6134 is a security vulnerability in Omniauth oauth2 involving omniauth-oauth2 Cross-Site Request Forgery vulnerability under CWE-352: Cross-Site Request Forgery (CSRF).
Which Omniauth oauth2 versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: omniauth-oauth2.
What version fixes CVE-2012-6134?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is omniauth-oauth2 affected?
Yes, omniauth-oauth2 is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What CWE is associated with CVE-2012-6134?
CVE-2012-6134 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check RubyGems dependencies for CVE-2012-6134?
Run the dependency tree command: 'inspect dependencies for omniauth-oauth2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fgmx-8h93-26fh",
  "modified" : "2023-01-25T23:20:49Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2012-6134" ],
  "summary" : "omniauth-oauth2 Cross-Site Request Forgery vulnerability",
  "details" : "Cross-site request forgery (CSRF) vulnerability in the omniauth-oauth2 gem prior to 1.1.1 for Ruby allows remote attackers to hijack the authentication of users for requests that modify session state.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-oauth2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-6134"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Shopify/omniauth-shopify-oauth2/pull/1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/intridea/omniauth-oauth2/pull/25"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Shopify/omniauth-shopify-oauth2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-oauth2/CVE-2012-6134.yml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20170312020947/https://gist.github.com/homakov/3673012"
  }, {
    "type" : "WEB",
    "url" : "http://rubysec.github.io/advisories/CVE-2012-6134"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2013/q1/304"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:34:38Z",
    "nvd_published_at" : null
  }
}