# Excessive trust in client-side controls

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

We can click on the `My account` button and login using the following credentials:

| Username | Password |
| -------- | -------- |
| wiener   | peter    |

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

We can now go back to the web store and click on the "Lightweight l33t leather jacket".

<figure><img src="/files/4tUNZ5Z5ULcMT7wz8e2u" alt=""><figcaption></figcaption></figure>

Let's add the product to the cart.

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

We can place the order but it won't go through because we don't have enough credits.

Since we are proxying the traffic Burp Suite, we can view this request through the `Proxy > HTTP History` tab.

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

Let's forward the request to the `Repeater` for further modifications. Once in the `Repeater`, we can set the `price` parameter to the following:

```
9
```

Let's send the request.

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

If we check our cart through the browser, we can see that the price of the product has been set to the modified `price` parameter's value. The quantity has also been updated.

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

Since the total price is less than our credits, we can now place the order.

<figure><img src="/files/70xryTdu9shnKdG2VfZ6" alt=""><figcaption></figcaption></figure>

We have solved the lab.

<figure><img src="/files/gSajwyCr1VDG3nNbECKC" 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:

```
GET https://kunalwalavalkar.gitbook.io/write-ups/portswigger-labs/server-side-topics/business-logic-vulnerabilities/excessive-trust-in-client-side-controls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
