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.6Details
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
4.0.0Fixed in: 4.12.6composer require filament/filament:^4.12.65.0.0Fixed in: 5.7.6composer require filament/filament:^5.7.6References
- https://github.com/filamentphp/filament/security/advisories/GHSA-r3j6-gpjw-qfjr[WEB]
- https://github.com/filamentphp/filament/pull/20335[WEB]
- https://github.com/filamentphp/filament/commit/b6bde8572bcac75d4f5b4ec892ba7b9e91e0ab4d[WEB]
- https://github.com/filamentphp/filament[PACKAGE]
- https://github.com/filamentphp/filament/releases/tag/v4.12.6[WEB]
- https://github.com/filamentphp/filament/releases/tag/v5.7.6[WEB]