search
HomeOperation and MaintenanceSafetyExperiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

The Writeup shared today is a dynamic password OTP (One Time Password) for the target system that the author is participating in vulnerability testing, and is implemented by using a simple brute force enumeration method. Bypassing or cracking the target system's two-factor authentication mechanism 2FA (Two-Factor Authentication). The target system is the website of India's largest travel service company, which uses dynamic password OTP as a means of implementing two-factor authentication 2FA.

Generally speaking, OTP is a 4-digit combination from 0000 to 9999. If OTP has 10,000 possible combinations, in today's powerful computer era, it only takes a few minutes to process 10,000 combinations. time. So, if the OTP's verification mechanism is improper, anyone can bypass it through simple brute force enumeration.

Why can I bypass 2FA?

The target system does not rate limit unsuccessful request attempts.

The target system has no new dynamic password measures for unsuccessful request attempts.

Prerequisite preparation:

Web browser, BurpSuite.

The recurrence process of bypassing 2FA

The recurrence process of bypassing 2FA

1. Open BurpSuite and log in to the target system website using your mobile phone number , here, deliberately enter the wrong dynamic OTP sent by the system to your mobile phone (here we enter 1234 casually), and then use BurpSuite to capture the traffic;

Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

We can see from BurpSuite Relevant information to the OTP API – verifyOTP?otp=:

Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

2. Right-click the OTP sending process and Send to intruder:

Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

3. Select the otp=1234 placeholder and set it to simple violent enumeration variable mode:

Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

4. Select the Payload tag item, Modify it to any combination, and then click attack:

Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

5. The attack begins. From the enumeration response result, we can see an abnormal response with a length of 2250. As expected, this is it:

Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

6. Use this OTP to log in, It can be successful and effective!

Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system

Related tutorial recommendations: web server security

The above is the detailed content of Experiment on simple brute force enumeration method to bypass the 2FA verification mechanism of the target system. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:FreeBuf.COM. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)