CVE-2013-4562: Omniauth facebook Omniauth-facebook Cross-Site Request Forgery Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-cf36-985g-v73c
CWE-352
Published
Advisory Summary

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

CVE-2013-4562 at a Glance

CVE Identifier CVE-2013-4562
GHSA Identifier GHSA-cf36-985g-v73c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Omniauth facebook
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-4562

To remediate this vulnerability, upgrade all affected Omniauth facebook 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-facebook fixed: 1.5.0
Upgrade omniauth-facebook to 1.5.0
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-facebook

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-4562, inspect your project dependencies for Omniauth facebook:

inspect dependencies for omniauth-facebook

Analyze the terminal output to locate any version of Omniauth facebook in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.0), 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 facebook, 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

The omniauth-facebook gem 1.4.1 before 1.5.0 does not properly store the session parameter, which allows remote attackers to conduct cross-site request forgery (CSRF) attacks via the state parameter.

CVE-2013-4562 Affected Omniauth facebook Versions

1 component(s)
Fixed Versions:
1.5.0
Product / Package Ecosystem Affected Versions Fixed Version
omniauth-facebook
RubyGems
≥ 1.4.1
< 1.5.0
1.5.0

References

Frequently Asked Questions

What is CVE-2013-4562?
CVE-2013-4562 is a security vulnerability in Omniauth facebook involving omniauth-facebook Cross-Site Request Forgery vulnerability under CWE-352: Cross-Site Request Forgery (CSRF).
Which Omniauth facebook versions are affected?
Affected versions include releases prior to 1.5.0 across affected packages: omniauth-facebook.
What version fixes CVE-2013-4562?
Upgrading to 1.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is omniauth-facebook affected?
Yes, omniauth-facebook is affected in releases prior to 1.5.0. Upgrade your dependency to 1.5.0 or later.
What CWE is associated with CVE-2013-4562?
CVE-2013-4562 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-2013-4562?
Run the dependency tree command: 'inspect dependencies for omniauth-facebook'. 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-cf36-985g-v73c",
  "modified" : "2023-01-23T21:12:18Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-4562" ],
  "summary" : "omniauth-facebook Cross-Site Request Forgery vulnerability",
  "details" : "The omniauth-facebook gem 1.4.1 before 1.5.0 does not properly store the session parameter, which allows remote attackers to conduct cross-site request forgery (CSRF) attacks via the state parameter.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-facebook"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.1"
      }, {
        "fixed" : "1.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4562"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mkdynamic/omniauth-facebook/commit/ccfcc26fe7e34acbd75ad4a095fd01ce5ff48ee7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mkdynamic/omniauth-faceboo"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/d/msg/ruby-security-ann/-tJHNlTiPh4/9SJxdEWLIawJ"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2013/q4/264"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2013/q4/267"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:31:10Z",
    "nvd_published_at" : "2014-05-13T15:55:04Z"
  }
}