MFA / 2FA Bypass Vulnerabilities
Detects insecure multi-factor authentication implementations that can be bypassed.
от zakirkun★ 40 звёзд на GitHub
Установить MFA / 2FA Bypass Vulnerabilities в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
MFA / 2FA Bypass Vulnerabilities
Overview
Poorly implemented MFA can be bypassed through various techniques:
- Client-side MFA check: MFA validation happens in JavaScript that can be disabled
- Predictable OTP: TOTP/OTP generated with Math.random() instead of cryptographically secure RNG
- Missing MFA enforcement: Endpoints that allow direct access skipping the MFA step
- Long-lived OTP: OTP codes valid for too long (> 5 minutes)
- No attempt limit on OTP: Brute-forceable OTP codes
Detection Strategy
- OTP generation using
Math.random()orrand()instead of CSPRNG - MFA verification that can be bypassed by manipulating the
mfa_verifiedsession variable - Hardcoded backup codes in source
Remediation
- Use TOTP (RFC 6238) with a cryptographically secure library like
speakeasyorpyotp - Validate MFA server-side, never client-side
- Limit OTP attempts (max 3-5 before requiring restart)
- Keep OTP validity window to 30-60 seconds
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' });
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл MFA / 2FA Bypass Vulnerabilities?
Detects insecure multi-factor authentication implementations that can be bypassed.
Как установить скилл MFA / 2FA Bypass Vulnerabilities?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл MFA / 2FA Bypass Vulnerabilities запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…