> 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/access-control/multi-step-process-without-access-control.md).

# Mehrstufiger Prozess ohne Zugriffskontrolle

### Mehrstufiger Prozess ohne Zugriffskontrolle in einem Schritt

Das Labor bietet ein Administrationspanel mit einem mehrstufigen Prozess zum Ändern der Rolle eines Benutzers. Dieser Ablauf enthält einen Fehler: Einer der Schritte wendet keine Zugriffskontrolle an. / Zum Üben ist es möglich, zunächst das Admin-Panel mit den **administrator:admin** Anmeldedaten zu untersuchen. / Um das Labor zu lösen, müssen Sie sich mit **wiener:peter** verbinden und den verwundbaren Schritt nutzen, um Ihre eigene Rolle auf Admin-Ebene hochzustufen.

<figure><img src="/files/24994ae23781bac9ad7c391511186f4729f4aa3d" alt=""><figcaption></figcaption></figure>

### Prozessanalyse

Die Rollenänderung erfolgt in zwei separaten Anfragen:

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

#### **Erster Schritt: Anfrage zur Hochstufung**

```bash
username=carlos&action=upgrade
```

Mit der wiener-Session wird diese Anfrage abgelehnt: / Der Server weist darauf hin, dass der Benutzer nicht berechtigt ist.

<figure><img src="/files/674a3715250ad11adfb7b727451d2cf88b372d80" alt=""><figcaption></figcaption></figure>

#### **Schritt 2: Bestätigung der Aktion**

```bash
action=upgrade&confirmed=true&username=carlos
```

Diese zweite Phase enthält keine **keine Zugriffskontrolle**. / Indem Sie diese Anfrage mit dem Session-Cookie von wiener senden:

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

Der Server antwortet **OK**, obwohl wiener nicht die erforderlichen Rechte haben sollte


---

# 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/access-control/multi-step-process-without-access-control.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.
