CVE-2024-22206CWE-284CWE-287CWE-639

@clerk/nextjs auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR)

Critical · published January 12, 2024

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

🚨 A logic flaw in Clerk's authentication could let anyone waltz right into your user management system — no password required! 🔥 Think of it like a hotel with a front desk that never asks for identification — anyone could walk in and access rooms that should be off-limits. This vulnerability works in a similar way, allowing unauthorized access or privilege escalation through a flaw in the authentication methods. An attacker could exploit this flaw to gain full control over user accounts, potentially leading to data breaches, unauthorized actions, and a complete compromise of your application. Imagine the chaos if sensitive user data is leaked or if malicious actions are taken under the guise of legitimate users!

Put simply

Think of it like a hotel with a front desk that never asks for identification — anyone could walk in and access rooms that should be off-limits. This vulnerability works in a similar way, allowing unauthorized access or privilege escalation through a flaw in the authentication methods. This vulnerability in Clerk arises from a logic flaw in the auth() function of the App Router and getAuth() function of the Pages Router, allowing unauthorized access to user management features without proper credentials.

What to do

An attacker could exploit this flaw to gain full control over user accounts, potentially leading to data breaches, unauthorized actions, and a complete compromise of your application. Imagine the chaos if sensitive user data is leaked or if malicious actions are taken under the guise of legitimate users! Update to Clerk version 4.29.3 or later immediately to patch this vulnerability. Conduct a security audit of your user management setup to ensure no further logic flaws exist that could be exploited. You've got this! With these steps, you'll not only fix the vulnerability but also boost your security hero status! 🛡️

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.00682 · 51.9th percentile
Weaknesses
CWE-284 · Improper Access Control; CWE-287 · Improper Authentication; CWE-639 · Authorization Bypass Through User-Controlled Key
Published
2024-01-12T20:07Z
EPSS history
Timeline
  • 12 JAN 20:07Z
    @clerk/nextjs auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR)
    cvelistv5