CVE-2018-1000088: Doorkeeper Cross-Site Scripting Vulnerability
MODERATECVE-2018-1000088 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Doorkeeper libraries in the RubyGems ecosystem. The issue involves doorkeeper is vulnerable to stored xss and code execution. Remediation is available by upgrading affected packages to version 4.2.6.
CVE-2018-1000088 at a Glance
Security Impact
CVSS: 6.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:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2018-1000088
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.6
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-2018-1000088, 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.6), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. 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-2018-1000088 Affected Doorkeeper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
doorkeeper
|
RubyGems |
≥ 2.1.0
< 4.2.6
|
4.2.6
|
References
Frequently Asked Questions
What is CVE-2018-1000088?
Which Doorkeeper versions are affected?
What version fixes CVE-2018-1000088?
Is doorkeeper affected?
What is the CVSS score of CVE-2018-1000088?
What CWE is associated with CVE-2018-1000088?
How can I check RubyGems dependencies for CVE-2018-1000088?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hwhh-2fwm-cfgw",
"modified" : "2022-04-26T17:36:10Z",
"published" : "2018-03-13T20:44:48Z",
"aliases" : [ "CVE-2018-1000088" ],
"summary" : "Doorkeeper is vulnerable to stored XSS and code execution",
"details" : "Doorkeeper version 2.1.0 through 4.2.5 contains a Cross Site Scripting (XSS) vulnerability in web view's OAuth app form, user authorization prompt web view that can result in Stored XSS on the OAuth Client's name will cause users interacting with it will execute payload. This attack appear to be exploitable via The victim must be tricked to click an opaque link to the web view that runs the XSS payload. A malicious version virtually indistinguishable from a normal link. This vulnerability appears to have been fixed in 4.2.6, 4.3.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "doorkeeper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "4.2.6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.2.5"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000088"
}, {
"type" : "WEB",
"url" : "https://github.com/doorkeeper-gem/doorkeeper/issues/969"
}, {
"type" : "WEB",
"url" : "https://github.com/doorkeeper-gem/doorkeeper/pull/970"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/pull/328/files"
}, {
"type" : "WEB",
"url" : "https://github.com/doorkeeper-gem/doorkeeper/commit/7b1a8373ecd69768c896000c7971dbf48948c1b5"
}, {
"type" : "WEB",
"url" : "https://blog.justinbull.ca/cve-2018-1000088-stored-xss-in-doorkeeper"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/doorkeeper-gem/doorkeeper"
}, {
"type" : "WEB",
"url" : "https://github.com/doorkeeper-gem/doorkeeper/releases/tag/v4.3.0"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/doorkeeper/CVE-2018-1000088.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:41:16Z",
"nvd_published_at" : null
}
}