> 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/inconsistent-security-controls.md).

# Inkonsistente Sicherheitskontrollen

### Inkonsistente Sicherheitskontrollen

**Lernziel**

Dieses Lab weist einen logischen Fehler im Zusammenhang mit inkonsistenten Sicherheitsprüfungen auf. / Beliebige Benutzer können auf administrative Funktionen zugreifen, die normalerweise Mitarbeitern des Unternehmens vorbehalten sind. / Das Ziel ist es, auf das Administrationspanel zuzugreifen und den Benutzer zu löschen **carlos**.

**Erste Beobachtung**

Wenn versucht wird, direkt auf die Administrationsoberfläche zuzugreifen, erscheint die folgende Meldung:

> *Admin-Oberfläche nur verfügbar, wenn als DontWannaCry-Benutzer angemeldet*

Zugriff auf `/admin` ist daher auf Benutzer beschränkt, die zu der **DontWannaCry** Domäne vorhanden sind.

<figure><img src="/files/48d808ea4bc9446fb9f0a8a439ec2b1652f9f3fd" alt=""><figcaption></figcaption></figure>

**Registrierungsversuch**

Ein neuer Benutzer wird registriert mit:

* **Benutzername**: `DontWannaCry` (bereits vorhanden)
* **E-Mail-Adresse**: eine vom Angreifer kontrollierte Adresse/ `attacker@exploit-0a2500bc04ce231c81841ade012e0049.exploit-server.net`

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

Nach dem Absenden des Formulars gibt die Anwendung an:

> *Bitte überprüfen Sie Ihre E-Mails auf Ihren Kontoregistrierungslink*

<figure><img src="/files/8675fb145b0942a7f1b2deda57acbefa3ddd545a" alt=""><figcaption></figcaption></figure>

**Kontoverifizierung**

Eine Bestätigungs-E-Mail wird mit einem Link empfangen, der ein Token enthält.

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

Die verwendeten Anmeldedaten sind:

* **Benutzer**: `DontWannaCry`
* **Passwort**: `jordan`

Die Verbindung funktioniert einwandfrei.

<figure><img src="/files/48b1e90ff4bcc320945846c04fe7e4fc790d7cf9" alt=""><figcaption></figcaption></figure>

**Änderung der E-Mail-Adresse**

Nach dem Einloggen ändern Sie die E-Mail-Adresse des Kontos ohne zusätzliche Verifizierung mit:

```bash
jordan@dontwannacry.com
```

Es gibt keine Überprüfung der Legitimität dieser Änderung.

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

**Zugriff auf die Administrationsoberfläche**

Nach der Änderung der E-Mail wird der Benutzer nun als zur Domäne gehörig angesehen **DontWannaCry**. / Zugriff auf die `/admin` Oberfläche ist dann erlaubt.

<figure><img src="/files/37859f15d32fdb616bff908a78fc5fc18690e853" 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/inconsistent-security-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.
