> 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/user-id-controlled-by-unpredictable-guid-parameter.md).

# ID пользователя, управляемый непредсказуемым GUID-параметром

#### Идентификатор пользователя, управляемый параметром

В этом задании рассматривается **горизонтальная эскалация привилегий** уязвимость на странице учетной записи пользователя. / Особенность в том, что **пользователи идентифицируются по GUID**, то есть длинные и случайные идентификаторы, например:

```bash
9e2f3fc0-7035-48ed-ad6d-f643690c7b9d
```

После входа в учетную запись **wiener:peter**, вы можете увидеть свой GUID в разделе «Моя учетная запись».

<figure><img src="/files/45cf1c9b078893237a7a50a0566f6ad384ffd8d8" alt=""><figcaption></figcaption></figure>

#### **Получение GUID через публикации**

Просматривая сайт, мы находим в **видимых публикациях** GUID других пользователей:

* GUID администратора указан в одной из его публикаций.

<figure><img src="/files/3604bd1e540b77f4abda0015a49bad211e4b8ce9" alt=""><figcaption></figcaption></figure>

Аналогично, мы можем получить GUID из **carlos**.

<figure><img src="/files/122a2bf650bace9bde84f28295f61e922ad4d2bc" alt=""><figcaption></figcaption></figure>

```bash
?userId=5abc76d3-7763-4be9-83d1-c6181bcdf0b5
```

#### **Операция: доступ к аккаунту Карлоса**

Страница учетной записи доступна через управляемый параметр:

```bash
my-account?id=5abc76d3-7763-4be9-83d1-c6181bcdf0b5
```

Просто заменив наш GUID на **carlos**, мы получаем доступ к его аккаунту:

<figure><img src="/files/639cb40eb7a5009f42a5533a6c51fe096ede72e3" alt=""><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/ru/web/access-control/user-id-controlled-by-unpredictable-guid-parameter.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.
