CVE-2020-10187
mediumpriority · track · 31OT risk · elevatedEPSS 0.018 · 78 %ileEUUSEPSS · scored 2026-10-27
Doorkeeper version 5.0.0 and later contains an information disclosure vulnerability that allows an attacker to retrieve the client secret only intended for the OAuth application owner. After authorizing the application and allowing access, the attacker simply needs to request the list of their authorized applications in a JSON format (usually GET /oauth/authorized_applications.json). An application is vulnerable if the authorized applications controller is enabled.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.3–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (9)
Products and version ranges known to be affected.
- doorkeeper project doorkeeper5.0.0 → 5.0.3nvdUScpe:2.3:a:doorkeeper_project:doorkeeper:*:*:*:*:*:*:*:*
- doorkeeper project doorkeeper5.1.0 → 5.1.1nvdUScpe:2.3:a:doorkeeper_project:doorkeeper:*:*:*:*:*:*:*:*
- doorkeeper project doorkeeper5.2.0 → 5.2.5nvdUScpe:2.3:a:doorkeeper_project:doorkeeper:*:*:*:*:*:*:*:*
- doorkeeper project doorkeeper5.3.0 → 5.3.2nvdUScpe:2.3:a:doorkeeper_project:doorkeeper:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-j7vx-8mqj-cqp9Exposure of Sensitive Information to an Unauthorized Actor in Doorkeeper2020-05-07ghsa · osvUS
### Impact Information disclosure vulnerability. Allows an attacker to see all `Doorkeeper::Application` model attribute values (including secrets) using authorized applications controller if it's enabled (GET /oauth/authorized_applications.json). ### Patches These versions have the fix: * 5.0.3 * 5.1.1 * 5.2.5 * 5.3.2 ### Workarounds Patch `Doorkeeper::Application` model `#as_json(options = {})` method and define only those attributes you want to expose. Additional recommended hardening is to enable application secrets hashing ([guide](https://doorkeeper.gitbook.io/guides/security/token-and-application-secrets)), available since Doorkeeper 5.1. This would render the exposed secret useless. ### References - Commit with fix: https://github.com/doorkeeper-gem/doorkeeper/commit/25d038022c2fcad45af5b73f9d003cf38ff491f6 - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10187
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (15)
External citations — patches, advisories, analysis.
- http://www.nsfocus.net/vulndb/48115cnnvd
- https://github.com/doorkeeper-gem/doorkeeper/commit/25d038022c2fcad45af5b73f9d003cf38ff491f6cnnvd
- https://github.com/doorkeeper-gem/doorkeeper/releasescnnvd
- https://github.com/doorkeeper-gem/doorkeeper/security/advisories/GHSA-j7vx-8mqj-cqp9cnnvd
- https://github.com/rubysec/ruby-advisory-db/pull/446cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-10187cnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.1564/cnnvd
- https://github.com/doorkeeper-gem/doorkeeper/commit/25d038022c2fcad45af5b73f9d003cf38ff491f6enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan