Logic error in 2FA verification condition allows bypass of two-factor authentication
There is no way for Verify2Fa to return an error AND true as ok at the same time, any codes are considered as valid.
Use any 6 digits as 2FA code
Bypass 2FA Authentication
{
"cwe_ids": [
"CWE-287"
],
"github_reviewed": true,
"github_reviewed_at": "2025-08-12T00:13:36Z",
"nvd_published_at": null,
"severity": "HIGH"
}