8.1high
Dancer2::Plugin::Auth::OAuth::Provider versions before 0.23 for Perl do not support the OAuth 2.0 state parameter
- Severity
- 8.1high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.19% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CPANSec
Description
Dancer2::Plugin::Auth::OAuth::Provider versions before 0.23 for Perl do not support the OAuth 2.0 state parameter. The authentication_url method builds the provider authorization redirect without issuing a state value, and the callback method exchanges the callback code and registers the resulting token into the session without verifying that the callback corresponds to an authorization request this session initiated. Any application that uses this plugin for OAuth 2.0 login is exposed to login cross-site request forgery: because the callback is not bound to the session that began the flow, an attacker who starts an authorization with their own provider account can deliver the resulting callback to a victim, causing the victim's session to complete the attacker's authorization and associating the attacker's provider identity and access token with that session. Where the application persists this as an account link, the attacker may retain access to the victim's account through their own provider credentials.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Dancer2-Plugin-Auth-OAuth | before 0.23 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Dancer2::Plugin::Auth::OAuth::Provider versions before 0.23 for Perl do not support the OAuth 2.0 state parameter. The authentication_url method builds the provider authorization redirect without issuing a state value, and the callback method exchanges the callback code and registers the resulting token into the session without verifying that the callback corresponds to an authorization request this session initiated. Any application that uses this plugin for OAuth 2.0 login is exposed to login cross-site request forgery: because the callback is not bound to the session that began the flow, an attacker who starts an authorization with their own provider account can deliver the resulting callback to a victim, causing the victim's session to complete the attacker's authorization and associating the attacker's provider identity and access token with that session. Where the application persists this as an account link, the attacker may retain access to the victim's account through their own provider credentials.
NVD (es)
Las versiones de Dancer2::Plugin::Auth::OAuth::Provider anteriores a 0.23 para Perl no son compatibles con el parámetro state de OAuth 2.0. El método authentication_url construye la redirección de autorización del proveedor sin emitir un valor state, y el método callback intercambia el código de callback y registra el token resultante en la sesión sin verificar que el callback corresponde a una petición de autorización que esta sesión inició. Cualquier aplicación que utilice este plugin para el inicio de sesión de OAuth 2.0 está expuesta a la falsificación de petición en sitios cruzados de inicio de sesión: porque el callback no está vinculado a la sesión que inició el flujo, un atacante que inicia una autorización con su propia cuenta de proveedor puede entregar el callback resultante a una víctima, haciendo que la sesión de la víctima complete la autorización del atacante y asociando la identidad del proveedor y el token de acceso del atacante con esa sesión. Donde la aplicación persiste esto como un enlace de cuenta, el atacante puede retener el acceso a la cuenta de la víctima a través de sus propias credenciales de proveedor.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-12746 changed 2026-07-06 | CVE Terms of Use |
| NVD | CVE-2026-12746 changed 2026-10-25 | Public domain |