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

# Übermäßiges Vertrauen in Client-seitige Kontrollen

### Übermäßiges Vertrauen in clientseitige Kontrollen

**Beschreibung des Labs**

Diese Anwendung validiert die vom Client gesendeten Daten nicht ordnungsgemäß. / Es ist möglich, eine logische Schwachstelle im Kaufprozess auszunutzen, um den Preis eines Produkts zu ändern. / Das Ziel ist, ein \*\* zu kaufen

Bereitgestellter Bezeichner:

* **Benutzer**: wiener
* **Passwort**: peter

**Verhaltensanalyse**

Ein Warenkorb ist auf der Website verfügbar

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

Beim Hinzufügen eines Produkts zum Warenkorb wird ein **POST** Eine Anfrage wird mit mehreren Parametern gesendet, darunter Preis.

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

Beispiel für eine Anfrage, die bei einem normalen Hinzufügen zum Warenkorb beobachtet wurde:

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

Das **Preis** Parameter wird vollständig vom Client gesteuert und serverseitig nicht ordnungsgemäß geprüft.

**Ausnutzung**

Durch manuelles Ändern des Werts des **Preis** Parameters in der Anfrage, zum Beispiel:

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

<figure><img src="/files/8378a2b6c31fa818b6f703107b7788d2cf1ba935" alt=""><figcaption></figcaption></figure>

akzeptiert der Server die Anfrage, ohne eine strenge Validierung durchzuführen.

<figure><img src="/files/7e5d6e30b95290599749ea407c0059cde70436fb" alt=""><figcaption></figcaption></figure>

**Ergebnis**

Das Produkt wird dem Warenkorb hinzugefügt und der Kauf kann validiert werden, trotz eines manipulierten Preises auf Kundenseite. / Dies zeigt ein übermäßiges Vertrauen in browserseitige Kontrollen und ermöglicht es, die erwartete Geschäftslogik zu umgehen.

<figure><img src="/files/3b616249af7254ac65529f5c155e54b4ece69ba7" 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/de/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.
