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).
These versions have the fix:
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), available since Doorkeeper 5.1. This would render the exposed secret useless.
{ "nvd_published_at": "2020-05-04T14:15:00Z", "github_reviewed_at": "2020-05-07T21:09:24Z", "severity": "HIGH", "github_reviewed": true, "cwe_ids": [ "CWE-862" ] }