Mfa bypass

From zakirkun/ice-tea · View interactive version

Mfa bypass is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects insecure multi-factor authentication implementations that can be bypassed.

How to use this skill

Skill file

MFA / 2FA Bypass Vulnerabilities

Overview

Poorly implemented MFA can be bypassed through various techniques:

  1. Client-side MFA check: MFA validation happens in JavaScript that can be disabled
  2. Predictable OTP: TOTP/OTP generated with Math.random() instead of cryptographically secure RNG
  3. Missing MFA enforcement: Endpoints that allow direct access skipping the MFA step
  4. Long-lived OTP: OTP codes valid for too long (> 5 minutes)
  5. No attempt limit on OTP: Brute-forceable OTP codes

Detection Strategy

Remediation

Vulnerable (Node.js):

const otp = Math.floor(Math.random() * 1000000);

Safe (Node.js):

const speakeasy = require('speakeasy');
const token = speakeasy.totp({ secret: user.mfa_secret, encoding: 'base32' });
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.