Open Redirect in Openidc Mod Auth
CVE-2021-32786
mod_auth_openidc is an authentication/authorization module for the Apache 2.x HTTP server that functions as an OpenID Connect Relying Party, authenticating users against an OpenID Connect Provider. In versions prior to 2.4.9, `oidc_validate_redirect_url()` does not parse URLs the same way as most browsers do. As a result, this function can be bypassed and leads to an Open Redirect vulnerability in the logout functionality. This bug has been fixed in version 2.4.9 by replacing any backslash of the URL to redirect with slashes to address a particular breaking change between the different specifications (RFC2396 / RFC3986 and WHATWG). As a workaround, this vulnerability can be mitigated by configuring `mod_auth_openidc` to only allow redirection whose destination matches a given regular expression.
Vulnerability class: Open Redirect
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.7 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.024, 84.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Openidc Mod Auth
- Zmartzone Mod Auth Openidc — versions < 2.4.9
- Fedoraproject Fedora — versions 33, 34
Weakness classification (CWE)
References
- github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9 (Third Party Advisory, Release Notes)
- github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-xm4c-5wm5-jqv7 (Third Party Advisory)
- github.com/zmartzone/mod_auth_openidc/commit/3a115484eb927bc6daa5737dd84f88ff4b… (Patch, Third Party Advisory)
- daniel.haxx.se/blog/2017/01/30/one-url-standard-please/ (Exploit, Third Party Advisory)
- FEDORA-2021-e3017c538a (vendor-advisory)
- FEDORA-2021-17f5cedf66 (vendor-advisory)
- www.oracle.com/security-alerts/cpuapr2022.html (Patch, Third Party Advisory)
- security.netapp.com/advisory/ntap-20210902-0001/ (Third Party Advisory)
- [debian-lts-announce] 20230430 [SECURITY] [DLA 3409-1] libapache2-mod-auth-openidc security update (mailing-list)