> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/ar/web/authentication/simple-2fa-bypass.md).

# تجاوز بسيط للمصادقة الثنائية

### تجاوز بسيط للمصادقة الثنائية

يستخدم هذا المختبر المصادقة الثنائية التي يمكن تجاوزها. لدينا بالفعل اسم مستخدم وكلمة مرور صالحان، لكن ليس لدينا إمكانية الوصول إلى رمز 2FA المرسل إلى الضحية. الهدف هو الوصول إلى صفحة حساب كارلوس.

```bash
بيانات اعتمادك: wiener:peter
بيانات اعتماد الضحية carlos:montoya
```

<figure><img src="/files/143b5e7495e01006a684eb48caf9a499cd183e6c" alt=""><figcaption></figcaption></figure>

بعد تسجيل الدخول باستخدام بيانات اعتماد كارلوس، يرسل الخادم رمز 2FA عبر البريد الإلكتروني. عند إدخال هذا الرمز المكوّن من 4 أرقام، يتم إرسال الاستعلام إلى **طلب POST** إلى نقطة النهاية **/login2**.

<figure><img src="/files/90bb92246d40aae6dce2ba04b6f12391eb07d898" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1c1c355cd28751c477b9695cbde7b3f61885e6f8" alt="" width="499"><figcaption></figcaption></figure>

ومع ذلك، من الممكن تجاوز هذه الخطوة بالكامل. بدلاً من إرسال رمز 2FA، ما عليك سوى طلب الوصول مباشرةً إلى **/my-account**. لا يتحقق الخادم من حالة التحقق من 2FA بشكل صحيح ويسمح بالوصول رغم عدم وجود رمز.

<figure><img src="/files/2b84c7409877c8c80c817044ddb7996948a512b8" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/ar/web/authentication/simple-2fa-bypass.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
