PT-2024-35155 · Authentik · Authentik
Pontushanssen
·
Published
2024-11-21
·
Updated
2026-04-16
·
CVE-2024-52289
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
authentik versions prior to 2024.8.5
authentik version 2024.8.5 and 2024.10.3 are not affected, but all versions prior to 2024.8.5 are vulnerable. However, the correct interpretation is that versions prior to 2024.8.5 are affected.
Corrected version:
authentik versions prior to 2024.8.5
Description
The issue concerns authentik, an open-source identity provider. In the OAuth2 provider, Redirect URIs are checked by RegEx comparison. When no Redirect URIs are configured in a provider, authentik automatically uses the first redirect uri value received as an allowed redirect URI without escaping characters that have a special meaning in RegEx. This allows an attacker to bypass redirect URI validation. For example, given a provider with the Redirect URIs set to https://foo.example.com, an attacker can register a domain fooaexample.com, which will pass validation.
Recommendations
For versions prior to 2024.8.5, upgrade to version 2024.8.5 or 2024.10.3 to resolve the issue.
As a temporary workaround, when configuring OAuth2 providers, make sure to escape any wildcard characters that are not intended to function as a wildcard, for example, replace
. with ..Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Authentik