> 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/business-logic/inconsistent-handling-of-exceptional-input.md).

# التعامل غير المتسق مع المدخلات الاستثنائية

### معالجة غير متسقة للمدخلات الاستثنائية

**وصف المختبر**

يعرض هذا المختبر تحققًا ضعيفًا من مدخلات المستخدم في عملية التسجيل. يسمح هذا الخلل المنطقي بالوصول إلى ميزات إدارية مخصصة عادةً للموظفين. / الهدف: الوصول إلى لوحة الإدارة وحذف المستخدم **carlos**.

<figure><img src="/files/9410523571048c3b6eb659d7b63b7a7277a9169a" alt=""><figcaption></figcaption></figure>

**الملاحظة الأولية**

عند التسجيل، يتم إرسال رسالة تحقق إلى العنوان المقدم. / يستقبل الخادم المستضيف \*\* جميع الرسائل الإلكترونية\*\* المرتبطة بالنطاق ونطاقاته الفرعية:

```bash
@exploit-0a8c00a504628ac58246f51601c6009c.exploit-server.net
```

<figure><img src="/files/5c30b7e01fe1b4bd34e02ce7efd41bc5197dc1ce" alt=""><figcaption></figcaption></figure>

وبالتالي، فإن أي عنوان يتم إنشاؤه بهذا النطاق أو نطاقاته الفرعية مقبول.

<figure><img src="/files/287f50fc06344ff50bf574c59fdf08aff1fc3355" alt=""><figcaption></figcaption></figure>

**تم تحديد سلوك غير طبيعي**

من خلال إنشاء عنوان بريد إلكتروني يحتوي على عدد كبير جدًا من الأحرف قبل `@` الرمز، نجد أن الحقل \*\*

{% code overflow="wrap" %}

```bash
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@exploit-0a8c00a504628ac58246f51601c6009c.exploit-server.net
```

{% endcode %}

يتسبب هذا الحد في عدم اتساق بين القيمة المخزنة فعليًا وتلك المعروضة أو المستخدمة في عمليات التحقق الأمنية.

<figure><img src="/files/56a633640a5d969db8694f681ed0ce5c4717c4e0" alt=""><figcaption></figcaption></figure>

**آلية عمل الخلل**

الهدف هو فرض الاقتطاع بحيث ينتهي البريد الإلكتروني المسجل تمامًا بـ `dontwannacry.com` منطقة الثقة.

التحقق من الطول:

{% code overflow="wrap" %}

```bash
eecho -n "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@dontwannacry.com" | wc -c
```

{% endcode %}

<figure><img src="/files/0e25cd8d8655020483dda6b64525714d1a383ad3" alt=""><figcaption></figcaption></figure>

بمجرد الوصول إلى 255 حرفًا، يُنشأ العنوان النهائي على هذا النحو:

{% code overflow="wrap" %}

```bash
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@dontwannacry.com.exploit-0a8c00a504628ac58246f51601c6009c.exploit-server.net
```

{% endcode %}

يستقبل الخادم المستضيف البريد الإلكتروني بشكل جيد، لأنه يقبل جميع النطاقات الفرعية.

<figure><img src="/files/1f8f9cd23e372b8afd129fffd1a8db927a79888a" alt=""><figcaption></figcaption></figure>

يفسّر التطبيق، بعد الاقتطاع، العنوان على أنه تابع لـ `dontwannacry.com` النطاق.

<figure><img src="/files/63143844363aa86c404f45b4ac0a7bdca60ff16a" alt=""><figcaption></figcaption></figure>

يُعتبر الحساب داخليًا أو جديرًا بالثقة. / بمجرد الاتصال، يُسمح بالوصول إلى **لوحة الإدارة** دون أي تحكم إضافي.

<figure><img src="/files/a0a59b54a7e595ac5a54cf8e9a4dbd338db0ed3e" alt=""><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/business-logic/inconsistent-handling-of-exceptional-input.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.
