CVE-2013-4346: Oauth2 SimpleGeo Python-oauth2 Does Not Check Vulnerability

HIGH
Advisory Identifier: GHSA-4433-4cxq-vv73
CVSS 7.5
CWE-347
Published
Advisory Summary

CVE-2013-4346 is a HIGH (CVSS 7.5) simplegeo python-oauth2 does not check vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Oauth2 libraries in the PyPI ecosystem. The issue involves simplegeo python-oauth2 does not check the nonce allowing replay attacks. Remediation is available in the latest vendor maintenance releases.

CVE-2013-4346 at a Glance

CVE Identifier CVE-2013-4346
GHSA Identifier GHSA-4433-4cxq-vv73
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Oauth2
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2013-4346

To remediate this vulnerability, upgrade all affected 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.

oauth2 fixed: Latest secure release
pip install oauth2>=Latest secure release
Verify Direct and Transitive Dependencies

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

pip show oauth2

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2013-4346, inspect your installed packages using pip:

pip show oauth2

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

Note: The pip show oauth2 command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In 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

The Server.verify_request function in SimpleGeo python-oauth2 does not check the nonce, which allows remote attackers to perform replay attacks via a signed URL. The vulnerability does not appear to be patched according to the following [discussion](https://github.com/joestump/python-oauth2/issues/129#issuecomment-895911502).

CVE-2013-4346 Affected Oauth2 Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
oauth2
PyPI
≤ 1.9rc1

References

Frequently Asked Questions

What is CVE-2013-4346?
CVE-2013-4346 is a security vulnerability in Oauth2 involving SimpleGeo python-oauth2 does not check the nonce allowing replay attacks under CWE-347: Improper Verification of Cryptographic Signature.
Which Oauth2 versions are affected?
Affected versions include releases prior to current release patches across affected packages: oauth2.
What version fixes CVE-2013-4346?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is oauth2 affected?
Yes, oauth2 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2013-4346?
CVE-2013-4346 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2013-4346?
CVE-2013-4346 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check PyPI dependencies for CVE-2013-4346?
Run the dependency tree command: 'pip show 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-4433-4cxq-vv73",
  "modified" : "2024-10-07T21:00:48Z",
  "published" : "2022-05-17T03:46:28Z",
  "aliases" : [ "CVE-2013-4346" ],
  "summary" : "SimpleGeo python-oauth2 does not check the nonce allowing replay attacks",
  "details" : "The Server.verify_request function in SimpleGeo python-oauth2 does not check the nonce, which allows remote attackers to perform replay attacks via a signed URL.\nThe vulnerability does not appear to be patched according to the following [discussion](https://github.com/joestump/python-oauth2/issues/129#issuecomment-895911502).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "oauth2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.9rc1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4346"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simplegeo/python-oauth2/issues/129"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2015:1591"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2015:1592"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2013-4346"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1007746"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/joestump/python-oauth2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/oauth2/PYSEC-2014-85.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228063302/http://www.securityfocus.com/bid/62386"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2013/09/12/7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-23T21:12:22Z",
    "nvd_published_at" : "2014-05-20T14:55:00Z"
  }
}