Open redirect in mod_auth_openidc - CVE-2021-32786

 

Open redirect in mod_auth_openidc - CVE-2021-32786

Published: August 18, 2023


Vulnerability identifier: #VU79693
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-32786
CWE-ID: CWE-601
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to redirect victims to arbitrary URL.

The vulnerability exists due to improper sanitization of user-supplied data in oidc_validate_redirect_url() function. A remote attacker can create a link that leads to a trusted website, however, when clicked, redirects the victim to arbitrary domain.

Successful exploitation of this vulnerability may allow a remote attacker to perform a phishing attack and steal potentially sensitive information.


Affected software

mod_auth_openidc
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Anolis OS
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Server Applications
Fedora
cjose
cjose-devel
mod_auth_openidc
apache2-mod_auth_openidc
apache2-mod_auth_openidc-debuginfo
apache2-mod_auth_openidc-debugsource

How to mitigate CVE-2021-32786

Install updates from vendor's website.

mod_auth_openidc - update to 2.4.9
cjose - update to 0.6.1-2
cjose-devel - update to 0.6.1-2
mod_auth_openidc - update to 2.3.7-11
apache2-mod_auth_openidc - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
apache2-mod_auth_openidc-debuginfo - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
apache2-mod_auth_openidc-debugsource - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
mod_auth_openidc - addressed in versions 2.4.9-1.fc33, 2.4.9-1.fc34, 2.4.9-1.fc35, 2.4.12.3-2.fc39

External References

Related Security Bulletins