Intel

AIKIDO-2024-10389

@kinde-oss/kinde-auth-nextjs is vulnerable to Improper Certificate Validation

Improper Certificate Validation Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 29, 2024

65

Medium Risk

This Affects:

js@kinde-oss/kinde-auth-nextjs
1.8.1 - 2.3.11
Fixed in 2.3.12
Are you affected? Scan for Free

TL;DR

Affected versions of this package fail to properly validate security certificates. If the security tokens exist in the cookie storage, the isAuthenticatedFactory() function incorrectly returns true without verifying the expiration or issuer of the token. This flaw allows unauthorized access, as it bypasses essential security checks that should validate the integrity and validity of the token.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@kinde-oss/kinde-auth-nextjs is vulnerable to Improper Certificate Validation in versions 1.8.1 - 2.3.11.

How to fix this

Upgrade the @kinde-oss/kinde-auth-nextjs library to the patch version.