CVE-2024-52289CWE-185

authentik has an insecure default configuration for OAuth2 Redirect URIs

High · published November 21, 2024

CVSS v4.0
7.9
EPSS
1%
Percentile
65.1
In the wild
Unconfirmed
What it is

⚡ An attacker can slip past the OAuth2 validation like a tricky delivery in a poorly signed package. Authentik’s Regex checks for Redirect URIs are not as tight as they should be! 🔥 Think of Redirect URIs like specific delivery addresses. If someone is allowed to send a package to 'foo.example.com' but the company doesn’t properly check for look-alike addresses, an attacker could get a package delivered to 'fooaexample.com' without raising any alarms! This means an attacker could potentially hijack authentication flows, redirecting users unwittingly to malicious sites. Such a breach could lead to devastating consequences like unauthorized access to sensitive information or identity theft. Yikes!

Put simply

Think of Redirect URIs like specific delivery addresses. If someone is allowed to send a package to 'foo.example.com' but the company doesn’t properly check for look-alike addresses, an attacker could get a package delivered to 'fooaexample.com' without raising any alarms! In authentik, the absence of configured Redirect URIs allows the first received URI to be accepted by default without proper escaping of special characters in Regex. This could allow for unsafe domains to pass validation, leading to potential phishing attacks.

What to do

This means an attacker could potentially hijack authentication flows, redirecting users unwittingly to malicious sites. Such a breach could lead to devastating consequences like unauthorized access to sensitive information or identity theft. Yikes! To secure your setup, immediately upgrade authentik to versions 2024.8.5 or 2024.10.3, which address this vulnerability. In the meantime, rigorously escape any wildcard characters in your OAuth2 provider settings to prevent unauthorized access. 🛡️ You've got this! With these steps, you'll shield your setup and keep the bad guys at bay! 🚀

The record
Technical detail
CVSS v4.0
7.9 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
EPSS
0.01091 · 65.1th percentile
Weakness
CWE-185 · Incorrect Regular Expression
Published
2024-11-21T17:18Z
EPSS history
Timeline
  • 21 NOV 17:18Z
    authentik has an insecure default configuration for OAuth2 Redirect URIs
    cvelistv5