> 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/excessive-trust-in-client-side-controls.md).

# ثقة مفرطة في ضوابط جانب العميل

### الثقة المفرطة في عناصر التحكم على جانب العميل

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

لا يتحقق هذا التطبيق بشكل صحيح من صحة البيانات المرسلة من العميل. / من الممكن استغلال خلل منطقي في عملية الشراء من أجل تغيير سعر منتج. / الهدف هو شراء \*\*

المعرّف المزوَّد:

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

**التحليل السلوكي**

سلة تسوق متاحة على الموقع الإلكتروني

<figure><img src="/files/682ec8d09abee0d9a5d8a5e5ce2586b10ea10d85" alt=""><figcaption></figcaption></figure>

عند إضافة منتج إلى السلة، **طلب POST** يتم إرسال استعلام مع عدة معلمات، بما في ذلك السعر.

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

مثال على استعلام تم رصده أثناء إضافة عادية إلى السلة:

```bash
productId=1&redir=PRODUCT&quantity=1&price=133700
```

الـ **price** تكون المعلمة خاضعة بالكامل لسيطرة العميل ولا يتم التحقق منها بشكل صحيح على جانب الخادم.

**الاستغلال**

من خلال تغيير قيمة **price** المعلمة في الاستعلام يدويًا، على سبيل المثال:

```bash
productId=1&redir=PRODUCT&quantity=1&price=0
```

<figure><img src="/files/946aa2a357ba49f7b75005f78c605d4f0f222f65" alt=""><figcaption></figcaption></figure>

يقبل الخادم الطلب دون إجراء تحقق صارم.

<figure><img src="/files/08441b85b62ee4d3bbf2be601d69bbff66e1a569" alt=""><figcaption></figcaption></figure>

**النتيجة**

يتم إضافة المنتج إلى السلة ويمكن تأكيد الشراء، رغم وجود سعر مُعالَج من جانب العميل. / يوضح هذا اعتمادًا مفرطًا على عناصر التحكم في جانب المتصفح، مما يسمح بتجاوز منطق العمل المتوقع.

<figure><img src="/files/8830d15a4d772ce05fbc412f4e014fb705642805" 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/excessive-trust-in-client-side-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.
