> 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/overconfidence-on-the-client-side.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
```

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

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

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

```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/overconfidence-on-the-client-side.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.
