CVE-2024-47070CWE-287

authentik vulnerable to password authentication bypass via X-Forwarded-For HTTP header

Critical · published September 27, 2024

CVSS v3.1
9.1
EPSS
1%
Percentile
46.1
In the wild
Unconfirmed
What it is

🚨 Just a single misconfigured header can let attackers log in without a password! This critical vulnerability in authentik allows anyone to bypass authentication with a sneaky X-Forwarded-For header. 🔥 Think of it like a restaurant that trusts any delivery driver’s note without checking for authenticity — an invalid order gets through, and suddenly anyone can claim a meal without paying! 🍔 This vulnerability is absolutely devastating! An attacker could potentially log into any account simply by knowing the username or email address, leaving sensitive information exposed and systems compromised. Imagine the chaos if everyone could simply waltz into their favorite accounts without any verification!

Put simply

Think of it like a restaurant that trusts any delivery driver’s note without checking for authenticity — an invalid order gets through, and suddenly anyone can claim a meal without paying! 🍔 The flaw arises because the authentik instance improperly trusts the X-Forwarded-For header, skipping the password check when an unparsable IP address is used. This allows unauthorized access as the policy fails to validate the header correctly before proceeding through authentication stages.

What to do

This vulnerability is absolutely devastating! An attacker could potentially log into any account simply by knowing the username or email address, leaving sensitive information exposed and systems compromised. Imagine the chaos if everyone could simply waltz into their favorite accounts without any verification! To protect against this vulnerability, patch your authentik installation to versions 2024.8.3 or 2024.6.5 immediately. Also, review your configuration to ensure it does not blindly trust forwarded headers. Implement additional checks to validate the X-Forwarded-For header properly. You've got this! By following these steps, you’ll ensure your authentik instance is secure and your users stay protected. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00563 · 46.1th percentile
Weakness
CWE-287 · Improper Authentication
Published
2024-09-27T15:18Z
EPSS history
Timeline
  • 27 SEP 15:18Z
    authentik vulnerable to password authentication bypass via X-Forwarded-For HTTP header
    cvelistv5