feat: add Secure Portal with TOTP/2FA authentication#1
Closed
Neorichi wants to merge 1 commit intoBugTraceAI:mainfrom
Closed
feat: add Secure Portal with TOTP/2FA authentication#1Neorichi wants to merge 1 commit intoBugTraceAI:mainfrom
Neorichi wants to merge 1 commit intoBugTraceAI:mainfrom
Conversation
Add a secondary admin portal at /secure-portal that requires mandatory TOTP-based two-factor authentication, coexisting with the standard /admin (no 2FA). Features: - TOTP setup with QR code generation - 2FA login flow with 6-digit authenticator codes - Pre-configured test user (admin2fa) for easy testing - Integrates with existing auth system New vulnerabilities planted: - V-030: No rate-limit on TOTP verification (brute force) - V-031: TOTP secret exposed in login response
Acorzo1983
added a commit
that referenced
this pull request
Feb 19, 2026
New admin portal with mandatory two-factor authentication using TOTP. Includes 2 new planted vulnerabilities: no rate-limit on TOTP brute force (V-031) and TOTP secret disclosure in login response (V-032). Based on PR #1 by Neorichi (RSanchez), adapted for MariaDB codebase.
Contributor
|
Hey @Neorichi — thanks for this contribution! Great idea adding a TOTP/2FA portal with planted vulnerabilities. We've integrated the feature into the current codebase (which has changed significantly since the PR was opened — migration from SQLite to MariaDB, restructured models, etc.). The implementation is now live: What was integrated:
Adaptations made:
Closing this PR since we did a manual integration rather than a direct merge due to the codebase changes. Your contribution is credited in the code. Thanks again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a secondary admin portal at /secure-portal that requires mandatory
TOTP-based two-factor authentication, coexisting with the standard
/admin (no 2FA).
Features:
New vulnerabilities planted: