> 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/access-control/multi-step-process-without-access-control.md).

# Многошаговый процесс без контроля доступа

### Многошаговый процесс без контроля доступа на одном из шагов

В лаборатории есть панель администратора с многошаговым процессом для изменения роли пользователя. В этом потоке есть недостаток: один из шагов не применяет контроль доступа. / Чтобы потренироваться, можно сначала изучить панель администратора с помощью **administrator:admin** учетных данных. / Чтобы решить лабораторную, вам нужно подключиться с помощью **wiener:peter** и использовать уязвимый шаг, чтобы повысить свою роль до уровня администратора.

<figure><img src="/files/431da9da7576838820bda3d3963a482c668f660e" alt=""><figcaption></figcaption></figure>

### Анализ процесса

Повышение роли происходит в двух отдельных запросах:

<figure><img src="/files/2908bcfe55c52ae70936e32b729b6500109cd619" alt=""><figcaption></figcaption></figure>

#### **Первый шаг: запрос на повышение**

```bash
username=carlos&action=upgrade
```

С сессией wiener этот запрос отклоняется: / Сервер сообщает, что пользователю это не разрешено.

<figure><img src="/files/7abc12e9949b55dfbee11996263dc59cfe4d1d09" alt=""><figcaption></figcaption></figure>

#### **Шаг 2: подтверждение действия**

```bash
action=upgrade&confirmed=true&username=carlos
```

На этом втором этапе не включается **контроль доступа**. / Отправив этот запрос с файлом cookie сеанса wiener:

<figure><img src="/files/8bd921f3532093cb2873b50d9bdc40aca59c4b67" alt=""><figcaption></figcaption></figure>

Сервер отвечает **OK**, хотя у wiener не должно быть необходимых прав


---

# 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/ru/web/access-control/multi-step-process-without-access-control.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.
