CVE-2020-10187
published 2020-05-04CVE-2020-10187: 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…
PriorityP342high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
2.02%
78.8th percentile
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.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | ruby-doorkeeper | < ruby-doorkeeper 5.0.3-1 (bookworm) | ruby-doorkeeper 5.0.3-1 (bookworm) |
| doorkeeper_project | doorkeeper | >= 5.0.0 < 5.0.3 | 5.0.3 |
| doorkeeper_project | doorkeeper | >= 5.0.0 < 5.0.3 | 5.0.3 |
| doorkeeper_project | doorkeeper | >= 5.1.0 < 5.1.1 | 5.1.1 |
| doorkeeper_project | doorkeeper | >= 5.1.0 < 5.1.1 | 5.1.1 |
| doorkeeper_project | doorkeeper | >= 5.2.0 < 5.2.5 | 5.2.5 |
| doorkeeper_project | doorkeeper | >= 5.2.0 < 5.2.5 | 5.2.5 |
| doorkeeper_project | doorkeeper | >= 5.3.0 < 5.3.2 | 5.3.2 |
| doorkeeper_project | doorkeeper | >= 5.3.0 < 5.3.2 | 5.3.2 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:P/I:N/A:N
ghsa7.5HIGH
osv7.5HIGH
vendor_debian7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Exposure of Sensitive Information to an Unauthorized Actor in Doorkeeper
ghsa·2020-05-07·CVSS 7.5
CVE-2020-10187 [HIGH] CWE-862 Exposure of Sensitive Information to an Unauthorized Actor in Doorkeeper
Exposure of Sensitive Information to an Unauthorized Actor in Doorkeeper
### 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
- Co
OSV
Exposure of Sensitive Information to an Unauthorized Actor in Doorkeeper
osv·2020-05-07·CVSS 7.5
CVE-2020-10187 [HIGH] Exposure of Sensitive Information to an Unauthorized Actor in Doorkeeper
Exposure of Sensitive Information to an Unauthorized Actor in Doorkeeper
### 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
- Co
OSV
CVE-2020-10187: Doorkeeper version 5
osv·2020-05-04·CVSS 7.5
CVE-2020-10187 [HIGH] CVE-2020-10187: Doorkeeper version 5
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.
Debian
CVE-2020-10187: ruby-doorkeeper - Doorkeeper version 5.0.0 and later contains an information disclosure vulnerabil...
vendor_debian·2020·CVSS 7.5
CVE-2020-10187 [HIGH] CVE-2020-10187: ruby-doorkeeper - Doorkeeper version 5.0.0 and later contains an information disclosure vulnerabil...
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.
Scope: local
bookworm: resolved (fixed in 5.0.3-1)
bullseye: resolved (fixed in 5.0.3-1)
forky: resolved (fixed in 5.0.3-1)
sid: resolved (fixed in 5.0.3-1)
trixie: resolved (fixed in 5.0.3-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/doorkeeper-gem/doorkeeper/commit/25d038022c2fcad45af5b73f9d003cf38ff491f6https://github.com/doorkeeper-gem/doorkeeper/releaseshttps://github.com/doorkeeper-gem/doorkeeper/security/advisories/GHSA-j7vx-8mqj-cqp9https://github.com/rubysec/ruby-advisory-db/pull/446https://github.com/doorkeeper-gem/doorkeeper/commit/25d038022c2fcad45af5b73f9d003cf38ff491f6https://github.com/doorkeeper-gem/doorkeeper/releaseshttps://github.com/doorkeeper-gem/doorkeeper/security/advisories/GHSA-j7vx-8mqj-cqp9https://github.com/rubysec/ruby-advisory-db/pull/446
2020-05-04
Published