CyberRota Analysis
AI-GeneratedThe getgrav/grav-plugin-api Composer package versions up to 1.0.12 are vulnerable due to inadequate enforcement of API key scope restrictions on the disable2fa endpoint, allowing unauthorized users to disable two-factor authentication for any non-super account. This critical flaw can lead to account takeover, as attackers with limited API key permissions can exploit this vulnerability without needing a TOTP code. Organizations using this package, particularly those with sensitive user accounts, should prioritize immediate updates to version 1.0.13 or later to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
The getgrav/grav-plugin-api Composer package before 1.0.13 (affected <= 1.0.12) fails to enforce API key scope caps on the disable2fa endpoint. Unlike the sibling generate2fa endpoint, disable2fa authorizes the admin (non-self) path solely via ACL reads (isSuperAdmin/hasPermission) and never invokes requirePermission(), so the api_key_scopes cap is never applied. As a result, a holder of a narrow-scope API key on a super account, or a non-super account whose ACL includes api.users.write, can force-disable two-factor authentication on any non-super target account via POST /api/v1/users/{user}/2fa/disable without providing a TOTP code, facilitating account takeover.