CVE-2016-6582: Doorkeeper Doorkeeper Is Vulnerable To Replay Vulnerability
CRITICALCVE-2016-6582 is a CRITICAL (CVSS 9.1) doorkeeper is vulnerable to replay vulnerability (CWE-1254: Incorrect Comparison Logic Granularity) affecting Doorkeeper libraries in the RubyGems ecosystem. The issue involves doorkeeper is vulnerable to replay attacks. Remediation is available by upgrading affected packages to version 4.2.0.
CVE-2016-6582 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2016-6582
To remediate this vulnerability, upgrade all affected Doorkeeper 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 doorkeeper to 4.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for doorkeeper
How to Check if You Are Affected
To determine whether your application is affected by CVE-2016-6582, inspect your project dependencies for Doorkeeper:
inspect dependencies for doorkeeper
Analyze the terminal output to locate any version of Doorkeeper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.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-1254: Incorrect Comparison Logic Granularity, where the product's comparison logic is performed over a series of steps rather than across the entire string in one operation. if there is a comparison logic failure on one of these steps, the operation may be vulnerable to a timing attack that can result in the interception of the process for nefarious purposes. In Doorkeeper, 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-2016-6582 Affected Doorkeeper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
doorkeeper
|
RubyGems |
< 4.2.0
|
4.2.0
|
References
Frequently Asked Questions
What is CVE-2016-6582?
Which Doorkeeper versions are affected?
What version fixes CVE-2016-6582?
Is doorkeeper affected?
What is the CVSS score of CVE-2016-6582?
What CWE is associated with CVE-2016-6582?
How can I check RubyGems dependencies for CVE-2016-6582?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3m6r-39p3-jq25",
"modified" : "2022-04-25T16:34:57Z",
"published" : "2017-10-24T18:33:35Z",
"aliases" : [ "CVE-2016-6582" ],
"summary" : "Doorkeeper is vulnerable to replay attacks",
"details" : "The Doorkeeper gem before 4.2.0 for Ruby might allow remote attackers to conduct replay attacks or revoke arbitrary tokens by leveraging failure to implement the OAuth 2.0 Token Revocation specification.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "doorkeeper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-6582"
}, {
"type" : "WEB",
"url" : "https://github.com/doorkeeper-gem/doorkeeper/issues/875"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-3m6r-39p3-jq25"
}, {
"type" : "WEB",
"url" : "https://github.com/doorkeeper-gem/doorkeeper"
}, {
"type" : "WEB",
"url" : "https://github.com/doorkeeper-gem/doorkeeper/releases/tag/v4.2.0"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/doorkeeper/CVE-2016-6582.yml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20170214021758/http://www.securityfocus.com/bid/92551"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20201207202519/http://www.securityfocus.com/archive/1/539268/100/0/threaded"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/138430/Doorkeeper-4.1.0-Token-Revocation.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2016/Aug/105"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2016/08/19/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1254" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:55:30Z",
"nvd_published_at" : null
}
}