Bugzilla – Bug 1188639
VUL-0: CVE-2021-32786: apache2-mod_auth_openidc: open redirect in logout functionality
Last modified: 2024-06-07 07:53:23 UTC
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. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-32786 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32786 https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9 https://github.com/zmartzone/mod_auth_openidc/commit/3a115484eb927bc6daa5737dd84f88ff4bbc5544 https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-xm4c-5wm5-jqv7 https://daniel.haxx.se/blog/2017/01/30/one-url-standard-please/
# maintenance_jira_update_notice SUSE-SU-2021:3020-1: An update that fixes four vulnerabilities is now available. Category: security (moderate) Bug References: 1188638,1188639,1188848,1188849 CVE References: CVE-2021-32785,CVE-2021-32786,CVE-2021-32791,CVE-2021-32792 JIRA References: Sources used: SUSE Linux Enterprise Module for Server Applications 15-SP3 (src): apache2-mod_auth_openidc-2.3.8-3.15.1 SUSE Linux Enterprise Module for Server Applications 15-SP2 (src): apache2-mod_auth_openidc-2.3.8-3.15.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
# maintenance_jira_update_notice openSUSE-SU-2021:3020-1: An update that fixes four vulnerabilities is now available. Category: security (moderate) Bug References: 1188638,1188639,1188848,1188849 CVE References: CVE-2021-32785,CVE-2021-32786,CVE-2021-32791,CVE-2021-32792 JIRA References: Sources used: openSUSE Leap 15.3 (src): apache2-mod_auth_openidc-2.3.8-3.15.1
# maintenance_jira_update_notice openSUSE-SU-2021:1277-1: An update that fixes four vulnerabilities is now available. Category: security (moderate) Bug References: 1188638,1188639,1188848,1188849 CVE References: CVE-2021-32785,CVE-2021-32786,CVE-2021-32791,CVE-2021-32792 JIRA References: Sources used: openSUSE Leap 15.2 (src): apache2-mod_auth_openidc-2.3.8-lp152.5.6.1
SUSE-SU-2021:3352-1: An update that fixes 5 vulnerabilities is now available. Category: security (moderate) Bug References: 1188638,1188639,1188848,1188849,1190223 CVE References: CVE-2021-32785,CVE-2021-32786,CVE-2021-32791,CVE-2021-32792,CVE-2021-39191 JIRA References: Sources used: SUSE Linux Enterprise Server 12-SP5 (src): apache2-mod_auth_openidc-2.4.0-3.23.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.