CVE-2021-32786 Open Redirect in oidc_validate_redirect_url()
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
8 packages: 4 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/libapache2-mod-auth-openidc(Ubuntu 18.04) | = 2.1.6-1; = 2.3.1-2; = 2.3.2-1; = 2.3.2-1build1 +2 more | No fix listed | No fix yet |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu 20.04) | = 2.3.10.2-1; = 2.4.0.4-1; = 2.4.1-1; All versions | No fix listed | No fix yet |
| debian/libapache2-mod-auth-openidc(Debian 12) | < 2.4.9-1 | 2.4.9-1 | Fixed |
| debian/libapache2-mod-auth-openidc(Debian 13) | < 2.4.9-1 | 2.4.9-1 | Fixed |
| debian/libapache2-mod-auth-openidc(Debian 14) | < 2.4.9-1 | 2.4.9-1 | Fixed |
| OpenIDC mod_auth_openidc | < 2.4.9 | 2.4.9 | Fixed |
| fedoraproject fedora | = 33; = 34 | No fix listed | Versions listed |
| zmartzone mod_auth_openidc | = < 2.4.9 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libapache2-mod-auth-openidc(Debian:12) | < 2.4.9-1 | 2.4.9-1 |
| debian/libapache2-mod-auth-openidc(Debian:13) | < 2.4.9-1 | 2.4.9-1 |
| debian/libapache2-mod-auth-openidc(Debian:14) | < 2.4.9-1 | 2.4.9-1 |
| OpenIDC mod_auth_openidc | < 2.4.9 | 2.4.9 |
| fedoraproject fedora | = 33 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| zmartzone mod_auth_openidc | = < 2.4.9 | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) | = 2.1.6-1 | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) | = 2.3.1-2 | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) | = 2.3.2-1 | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) | = 2.3.2-1build1 | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) | = 2.3.3-1build1 | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:20.04) | = 2.3.10.2-1 | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:20.04) | = 2.4.0.4-1 | No fix listed |
| ubuntu/libapache2-mod-auth-openidc(Ubuntu:20.04) | = 2.4.1-1 | No fix listed |
References
- Debian Security Tracker CVE-2021-32786 vendor-advisory
- daniel.haxx.se exploit issue-tracking third-party-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- github.com issue-tracking third-party-advisory
- [debian-lts-announce] 20230430 [SECURITY] [DLA 3409-1] libapache2-mod-auth-openidc security update mailing-list
- FEDORA-2021-e3017c538a vendor-advisory
- FEDORA-2021-17f5cedf66 vendor-advisory
- security.netapp.com third-party-advisory
- www.oracle.com patch third-party-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- www.cve.org issue-tracking