> 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-security-controls.md).

# ضوابط أمنية غير متسقة

### ضوابط أمان غير متسقة

**هدف المختبر**

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

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

عند محاولة الوصول إلى واجهة الإدارة مباشرةً، ستظهر الرسالة التالية:

> *واجهة الإدارة متاحة فقط إذا تم تسجيل الدخول كمستخدم DontWannaCry*

الوصول إلى `/admin` لذا فهي مقصورة على المستخدمين المنتمين إلى **DontWannaCry** النطاق.

<figure><img src="/files/a2c72a27e98c0ab7eaea37734a34f60f39586f80" alt=""><figcaption></figcaption></figure>

**محاولة التسجيل**

يتم تسجيل مستخدم جديد باستخدام:

* **اسم المستخدم**: `DontWannaCry` (موجود بالفعل)
* **عنوان البريد الإلكتروني**: عنوان يتحكم به المهاجم/ `attacker@exploit-0a2500bc04ce231c81841ade012e0049.exploit-server.net`

<figure><img src="/files/61f84842e53ce9c7cdf294c372a5158dc4f77cfb" alt=""><figcaption></figcaption></figure>

بعد إرسال النموذج، يشير التطبيق إلى:

> *يرجى التحقق من رسائل البريد الإلكتروني للحصول على رابط تسجيل حسابك*

<figure><img src="/files/73e4483ca3db70eb8c3d0b1938c7552cffd386c9" alt=""><figcaption></figcaption></figure>

**التحقق من الحساب**

يتم استلام رسالة تأكيد بالبريد الإلكتروني تحتوي على رابط يضم رمزًا مميزًا.

<figure><img src="/files/3431756e25c38fba73a0ab05d82a0b4287631d06" alt=""><figcaption></figcaption></figure>

بيانات الاعتماد المستخدمة هي:

* **المستخدم**: `DontWannaCry`
* **كلمة المرور**: `jordan`

الاتصال يعمل بشكل صحيح.

<figure><img src="/files/9e4baa3324cab84629ef785ba99a4fb718116d68" alt=""><figcaption></figcaption></figure>

**تعديل عنوان البريد الإلكتروني**

بمجرد تسجيل الدخول، يمكنك تغيير عنوان البريد الإلكتروني للحساب دون أي تحقق إضافي، باستخدام:

```bash
jordan@dontwannacry.com
```

لا توجد أي رقابة على مشروعية هذا التغيير.

<figure><img src="/files/9faccb2e6591d3aecfec64582048575c873c69c3" alt=""><figcaption></figcaption></figure>

**الوصول إلى واجهة الإدارة**

بعد تغيير البريد الإلكتروني، يُعتبر المستخدم الآن تابعًا للنطاق **DontWannaCry**. / يُسمح بالوصول إلى `/admin` الواجهة عندئذٍ.

<figure><img src="/files/0b0187e655e18708fed6325c2dbe96133bc77f7d" 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-security-controls.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.
