Severity: CRITICAL
Location: src/Controllers/AuthController.php:108-112
Bug: Pre-login session ID is reused while setting pending_2fa_user_id. The session that exists before credentials are shown is the same session that ends up authenticated.
Fix: session_regenerate_id(true) before writing pending_2fa_user_id.
Status: open. Will reply with remediation details when resolved.