Breaking
SecurityDeveloping Story

Grav Login Plugin Vulnerability Allows Two-Factor Authentication Bypass

A critical flaw in Grav versions before 2.0.4 permits attackers to bypass two-factor authentication by overwriting existing security secrets.

··1 month ago·1 min read
Matrix movie still
Photo by Markus Spiske on Unsplash

Grav versions prior to 2.0.4 are affected by a critical vulnerability, tracked as CVE-2026-62232, within the login plugin. The issue exists in the regenerate2FASecret task, which fails to verify user authorization during the pending TOTP challenge window, checking only for user existence.

An attacker who possesses a victim's password can exploit this flaw by calling the task without a CSRF nonce to overwrite the 2FA secret with a value of their choosing. This allows the attacker to generate a valid TOTP code and complete the authentication process, effectively reducing the security of the account to password-only protection.

Users of the Grav platform are advised to update to version 2.0.4 or later to address this vulnerability and restore proper two-factor authentication security.

#vulnerability#grav#cve-2026-62232#authentication#security

Sources

Iliyas

Founder & Editor, Xploitwire

This article was compiled from the sources listed above and checked against them for accuracy, under editorial policies set by Iliyas. Read our Editorial Policy →

← Back to all stories