Bug 2153655 (CVE-2022-23527) - CVE-2022-23527 mod_auth_openidc: Open Redirect in oidc_validate_redirect_url() using tab character
Summary: CVE-2022-23527 mod_auth_openidc: Open Redirect in oidc_validate_redirect_url(...
Keywords:
Status: NEW
Alias: CVE-2022-23527
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2153656 2153657 2153658 2153659
Blocks: 2153592
TreeView+ depends on / blocked
 
Reported: 2022-12-15 03:47 UTC by Sandipan Roy
Modified: 2023-11-14 15:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
An open redirect vulnerability was found in mod_auth_openidc, an OpenID Certified™ authentication and authorization module for the Apache 2.x HTTP server. When providing a logout parameter to the redirect URI, the existing code in oidc_validate_redirect_url() does not properly check for URLs that start with /\t, leading to an open redirect.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:6365 0 None None None 2023-11-07 08:14:28 UTC
Red Hat Product Errata RHSA-2023:6940 0 None None None 2023-11-14 15:17:06 UTC

Description Sandipan Roy 2022-12-15 03:47:34 UTC
mod_auth_openidc is an OpenID Certified™ authentication and authorization module for the Apache 2.x HTTP server. Versions prior to 2.4.12.2 are vulnerable to Open Redirect. When providing a logout parameter to the redirect URI, the existing code in oidc_validate_redirect_url() does not properly check for URLs that start with /\t, leading to an open redirect. This issue has been patched in version 2.4.12.2. Users unable to upgrade can mitigate the issue by configuring mod_auth_openidc to only allow redirection when the destination matches a given regular expression with OIDCRedirectURLsAllowed.

https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-q6f2-285m-gr53
https://github.com/zmartzone/mod_auth_openidc/blob/v2.4.12.1/auth_openidc.conf#L975-L984

Comment 1 Sandipan Roy 2022-12-15 03:51:40 UTC
Created mod_auth_openidc tracking bugs for this issue:

Affects: fedora-36 [bug 2153657]
Affects: fedora-37 [bug 2153658]

Comment 4 errata-xmlrpc 2023-11-07 08:14:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:6365 https://access.redhat.com/errata/RHSA-2023:6365

Comment 5 errata-xmlrpc 2023-11-14 15:17:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:6940 https://access.redhat.com/errata/RHSA-2023:6940


Note You need to log in before you can comment on or make changes to this bug.