Bug 1188639 (CVE-2021-32786) - VUL-0: CVE-2021-32786: apache2-mod_auth_openidc: open redirect in logout functionality
Summary: VUL-0: CVE-2021-32786: apache2-mod_auth_openidc: open redirect in logout func...
Status: RESOLVED FIXED
Alias: CVE-2021-32786
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/305068/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-32786:4.7:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-23 09:21 UTC by Marcus Meissner
Modified: 2024-06-07 07:53 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Meissner 2021-07-23 09:21:10 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/
Comment 7 Swamp Workflow Management 2021-09-13 10:18:24 UTC
# 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.
Comment 8 Swamp Workflow Management 2021-09-13 10:21:07 UTC
# 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
Comment 9 Swamp Workflow Management 2021-09-16 13:23:51 UTC
# 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
Comment 11 Swamp Workflow Management 2021-10-12 16:46:59 UTC
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.