Contournement d'authentification dans doorkeeper-openid_connect (CVE-2026-44476)
Résumé
Contournement d'authentification dans doorkeeper-openid_connect (CVE-2026-44476). Risque d'opérations non autorisées ou de divulgation. Exploitable via POST /oauth/registration. Atténuation : mise à jour vers 1.10.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
The DynamicClientRegistrationController#register action hard-codes confidential: false when creating applications (dynamic_client_registration_controller.rb:18-25), yet the response includes a client_secret and advertises token_endpoint_auth_methods_supported: ["client_secret_basic", "client_secret_post"].
Because Doorkeeper's Application.by_uid_and_secret treats a blank/missing secret as valid for non-confidential (public) clients, an
attacker who knows only the client_id (which is public information) can authenticate as the dynamically-registered client at the token endpoint.
Note that Dynamic Client Registration is opt-in feature which is disabled by default so only projects that explicitly enabled it are affected.
Steps to Reproduce
- Enable dynamic client registration in the initializer
- POST /oauth/registration with client_name, redirect_uris, and scope
- Observe: response returns client_secret, but the created
Doorkeeper::Application has confidential: false - Call
Doorkeeper::Application.by_uid_and_secret(client_id, nil)— it
returns the application (credentials bypass) - POST /oauth/token with grant_type=client_credentials and only
client_id (no client_secret) — the token endpoint issues an access token
without any secret verification
Patches
Patched in 1.10.0
Workarounds
Upgrade existing applications created with a Dynamic Client registration to have confidential: true
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-44476 a été découverte dans doorkeeper-openid_connect.
Des attaquants peuvent cibler un point d'entrée spécifique comme POST /oauth/registration à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour doorkeeper-openid_connect vers 1.10.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « doorkeeper-openid_connect CVE-2026-44476 » sur le site de l'éditeur.
CVE-2026-44476 (doorkeeper-openid_connect) — CWE-287
Surface d'attaque : POST /oauth/registration / POST /oauth/token / Application.by_uid_and_secret
Correctif : 1.10.0 — appliquer immédiatement
Contournement : Upgrade existing applications created with a Dynamic Client registration to have confidential: true
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une contournement d'authentification (CWE-287) affecte doorkeeper-openid_connect. Les attaquants atteignent le code vulnérable via POST /oauth/registration.
Consultez l'avis de l'éditeur pour les versions affectées de doorkeeper-openid_connect. Surface d'attaque : POST /oauth/registration / POST /oauth/token / Application.by_uid_and_secret.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 1.10.0.
Contournement : Upgrade existing applications created with a Dynamic Client registration to have confidential: true
Recherchez dans les logs webserver/proxy/WAF des requêtes anormales vers POST /oauth/registration (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver doorkeeper-openid_connect.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'doorkeeper-openid_connect' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
doorkeeper-openid_connectを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'POST /oauth/registration' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
POST /oauth/registrationへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply temporary workaround mitigate
Upgrade existing applications created with a Dynamic Client registration to have `confidential: true`パッチが適用されるまでの応急処置として、Upgrade existing applications created with a Dynamic Client registration to have
confidential: trueを実施。回避策の副作用 (機能低下) を確認した上で。 -
4Apply patch patch
Upgrade doorkeeper-openid_connect to 1.10.0ステージング環境で 1.10.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
5Post-deployment verification verify
Replay attack against POST /oauth/registration on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- Debian DEBIAN-CVE-2026-44476 ruby-doorkeeper-openid-connect
- Ubuntu UBUNTU-CVE-2026-44476 ruby-doorkeeper-openid-connect
Références
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web cve.org
- web security-advisories@github.com