CVE-2022-23555CWE-287

authentik vulnerable to Improper Authentication via invitation URL token reuse

Critical · published December 28, 2022

CVSS v3.1
9.4
EPSS
1%
Percentile
59.1
In the wild
Unconfirmed
What it is

🚨 Token reuse in invitation URLs is the crux of this vulnerability! An attacker can bypass access controls and sign up for any enrollment flow using a single invitation link. 🔥 Think of it like a restaurant reservation system that allows anyone with a single booking to choose from multiple menus — if they know how to switch, they can order meals they're not allowed to have! This vulnerability is absolutely devastating! An attacker could exploit this flaw to gain unauthorized access to sensitive areas of your application, simply by using a valid invitation token for any flow. Imagine them signing up as an admin, with full privileges to wreak havoc — deleting users, modifying settings, and more!

Put simply

Think of it like a restaurant reservation system that allows anyone with a single booking to choose from multiple menus — if they know how to switch, they can order meals they're not allowed to have! The improper authentication happens because the invitation token remains valid across different enrollment flows, causing access control bypass. It does not change based on the selected flow, making it easy for attackers to misuse a valid token.

What to do

This vulnerability is absolutely devastating! An attacker could exploit this flaw to gain unauthorized access to sensitive areas of your application, simply by using a valid invitation token for any flow. Imagine them signing up as an admin, with full privileges to wreak havoc — deleting users, modifying settings, and more! To fix this critical vulnerability, immediately upgrade to authentik versions 2022.11.4, 2022.10.4, or 2022.12.0. If you have multiple invitation flows, consider adding fixed data to invitations for validation checks, or use high-entropy identifiers like UUIDs to minimize the attack surface. You've got this! With these steps, you'll secure your application in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.4 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00893 · 59.1th percentile
Weakness
CWE-287 · Improper Authentication
Published
2022-12-28T00:12Z
EPSS history
Timeline
  • 28 DEC 00:12Z
    authentik vulnerable to Improper Authentication via invitation URL token reuse
    cvelistv5