Vulnerabilities in pkg:gem/omniauth-oauth2
PACKAGECVE-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.
pkg:gem/omniauth-oauth2
Vulnerability advisories affecting package pkg:gem/omniauth-oauth2. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-fgmx-8h93-26fh | CVE-2012-6134 | MODERATE | omniauth-oauth2 Cross-Site Request Forgery vulnerability |
CVE-2012-6134 at a Glance
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.
Upgrade omniauth-oauth2 to 1.1.1
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
CVE-2012-6134 Affected Omniauth oauth2 Versions
1 component(s)| 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?
Which Omniauth oauth2 versions are affected?
What version fixes CVE-2012-6134?
Is omniauth-oauth2 affected?
What CWE is associated with CVE-2012-6134?
How can I check RubyGems dependencies for CVE-2012-6134?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}