VDB
Sign up
MEDIUM6.5

GHSA-r3j6-gpjw-qfjr

Filament: Multi-factor authentication (app) codes can still be used after a newer code has been used

Quick fix

GHSA-r3j6-gpjw-qfjr — filament/filament: upgrade to the fixed version with the command below.

composer require filament/filament:^4.12.6

Details

A flaw in the handling of one-time codes for app-based multi-factor authentication allows a previously issued code to be used after a newer code has already been accepted. This issue does not affect email-based MFA. Submitting the exact same code twice was already prevented, but any other code within the accepted time window was not.

If an attacker gains access to both the user's password and a single one-time code, that code stays usable for the remainder of its time window, which is around four minutes on the default settings, including after the legitimate user has already logged in with a newer code.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/filament/filament
Introduced in: 4.0.0Fixed in: 4.12.6
Fixcomposer require filament/filament:^4.12.6
Packagist/filament/filament
Introduced in: 5.0.0Fixed in: 5.7.6
Fixcomposer require filament/filament:^5.7.6

References