VNX-912 – Hidden Functionality (Backdoor)
Overview
Hidden functionality includes hardcoded special usernames, secret passwords, debug endpoints, or magic command sequences that were introduced during development and not removed before production deployment. These constitute backdoors that any attacker with knowledge of the secret can exploit.
Severity: Critical | CWE: CWE-912 – Hidden Functionality
Why This Matters
Backdoors provide permanent privileged access that cannot be discovered through normal security monitoring. Supply-chain attacks often introduce hidden functionality. Even developer-intended backdoors have been exploited by attackers who reverse-engineered the binary.
What Gets Flagged
# FLAGGED: Hardcoded backdoor username
if username == "admin_backdoor":
return admin_access()
# FLAGGED: Debug endpoint
@app.route('/debug/')
def debug_panel(): ...
// FLAGGED: Magic bypass flag
if (req.query.bypass_auth === "GOD_KEY") { ... }
Remediation
Remove all backdoors, debug endpoints, and special-case authentication bypasses before production deployment. Use feature flags controlled by environment variables to disable debug functionality.