> 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/user-id-controlled-by-unpredictable-guid-parameter.md).

# Benutzer-ID durch unvorhersehbaren GUID-Parameter gesteuert

#### Benutzer-ID durch Parameter gesteuert

Dieses Lab präsentiert eine **horizontale Rechteausweitung** Schwachstelle auf der Benutzerkontoseite. / Das Besondere ist, dass **Benutzer werden durch GUIDs identifiziert**, d. h. lange und zufällige Anmeldeinformationen, zum Beispiel:

```bash
9e2f3fc0-7035-48ed-ad6d-f643690c7b9d
```

Nach dem Anmelden am Konto **wiener:peter**sehen Sie Ihre eigene GUID im Abschnitt „Mein Konto“.

<figure><img src="/files/81ff8a3f3f010f7e32c50c0a630492a2f1b49534" alt=""><figcaption></figcaption></figure>

#### **Wiederherstellung von GUIDs über Veröffentlichungen**

Beim Durchsuchen der Website finden wir in den **sichtbaren Veröffentlichungen** die GUIDs anderer Benutzer:

* Die GUID des Administrators erscheint in einem seiner Beiträge.

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

Ebenso können wir die GUID aus **carlos**.

<figure><img src="/files/1bc0c097319a126dc38040b17ae621888e260c69" alt=""><figcaption></figcaption></figure>

```bash
?userId=5abc76d3-7763-4be9-83d1-c6181bcdf0b5
```

#### **Vorgehen: Zugriff auf Carlos' Konto**

Die Kontoseite ist über einen kontrollierbaren Parameter erreichbar:

```bash
my-account?id=5abc76d3-7763-4be9-83d1-c6181bcdf0b5
```

Indem wir einfach unsere GUID durch **carlos**, erhalten wir sein Konto:

<figure><img src="/files/10d3b656e585413aed848a358914f3d2548dba3b" 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/access-control/user-id-controlled-by-unpredictable-guid-parameter.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.
