GHSA-2frx-j9hj-6c65 User enumeration in authentication mechanisms

Not scored Published

Attackers can enumerate valid usernames via distinct error messages, enabling targeted attacks against the LexikJWTAuthenticationBundle.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-2frx-j9hj-6c65?

GHSA-2frx-j9hj-6c65 is a vulnerability in lexik/jwt-authentication-bundle, published on 17 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Description

The ability to enumerate users was possible without relevant permissions due to different exception messages depending on whether the user existed or not.

Resolution

We now ensure that a generic message is returned whether the user exists or not if the password is invalid or if the user does not exist.

The patch for this issue is available here for branch 2.10.x and 2.x.

Credits

I would like to thank James Isaac and Mathias Brodala for reporting the issue and Robin Chalas for fixing the issue.

Which versions are affected by GHSA-2frx-j9hj-6c65?

4 open source packages ship an affected version, including lexik/jwt-authentication-bundle.

PackageAffectedFixed in
lexik/jwt-authentication-bundle PackagistAll versions2.10.7
lexik/jwt-authentication-bundle PackagistAll versions2.10.7
lexik/jwt-authentication-bundle PackagistFrom 2.11.02.11.3
lexik/jwt-authentication-bundle PackagistFrom 2.11.02.11.3

How do I fix GHSA-2frx-j9hj-6c65?

Upgrade lexik/jwt-authentication-bundle to a fixed version for your release line: 2.10.7 or 2.11.3.

Is GHSA-2frx-j9hj-6c65 being exploited?

There is no known exploitation of GHSA-2frx-j9hj-6c65 in the wild and no public exploit code.

Sources

Is GHSA-2frx-j9hj-6c65 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free