bypassing-two-factor-and-otp

Tests two-factor authentication and OTP verification flows for bypass vulnerabilities during authorized penetration tests.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill bypassing-two-factor-and-otp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bypassing-two-factor-and-otp
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/web-application-security/bypassing-two-factor-and-otp
Command: npx skills add https://github.com/xalgord/xalgorix --skill bypassing-two-factor-and-otp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Two-factor authentication and OTP mechanisms often fail through logic flaws rather than weak cryptography, and manual testers frequently miss response manipulation, code leakage, and race condition weaknesses. This Skill provides a systematic methodology to identify and exploit these MFA bypass vectors during authorized security assessments.

Core Features & Use Cases

  • Response Manipulation Testing: Intercept and rewrite verify responses (status codes, JSON booleans) to detect client-side-only enforcement of 2FA.
  • Brute Force and Race Condition Analysis: Exhaust the 6-digit code space with ffuf and Turbo Intruder, test rate-limit bypasses via header spoofing, and outrun lockout counters with single-packet attacks.
  • Delivery and Recovery Path Testing: Validate OTP delivery-target tampering, remember-device token forgery, backup-code abuse, and code reuse or expiry flaws.
  • Use Case: During a bug bounty engagement, you capture a login flow protected by SMS OTP. Use this Skill to flip the verify response from {"verified":false} to true, confirm the dashboard loads, and document a critical authentication bypass with reproduction steps.

Quick Start

Test the 2FA verification flow on my authorized target for response manipulation, brute force, and OTP leakage weaknesses.

Frequently Asked Questions about bypassing-two-factor-and-otp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test 2FA bypass during a penetration test?

Start by capturing the send-code and verify-code requests, then submit a wrong code and intercept the response to flip status codes or JSON booleans like verified:false to true. If the application advances to the authenticated state, verification is enforced client-side only.

How to brute force a 6-digit OTP code with ffuf?

Use ffuf with a wordlist from 000000 to 999999 against the verify endpoint, filtering on failure responses. If rate limiting blocks you, test bypasses such as rotating X-Forwarded-For headers, changing User-Agent, or using fresh sessions per batch.

What tools are needed for OTP bypass testing?

The workflow uses Burp Suite Professional for response interception, Turbo Intruder for single-packet race conditions, ffuf for high-rate brute forcing, and curl or httpie for manual parameter tampering. OWASP ZAP works as a free proxy alternative.

Can OTP codes leak in API responses?

Yes, some applications return the actual code, a hash of it, or a debug field in the send-code response body, headers, or cookies. Inspecting the send OTP response for leaked codes provides a complete bypass with zero guessing.

What is a race condition attack on OTP verification?

A race condition fires many verify requests simultaneously using a single-packet attack so guesses land before the attempt counter or lockout is committed. Turbo Intruder in Burp Suite can queue multiple candidate codes and release them in one synchronized burst.

When is 2FA bypass testing authorized?

Only during authorized penetration tests with a written testing agreement or within bug bounty program scope. You need test accounts with controllable phone or email to receive legitimate codes for comparison against failure responses.