> 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).

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

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

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

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

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

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

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-1a4b31aaae17a8498c760d2d34a450ca27da9158%2Fimage%20(268).png?alt=media" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-d3986f80c0b30028730db5f85d5c799ecb875646%2Fimage%20(269).png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-7a67cce120c504b0da7e8cc1a7789bf06cbcbb1b%2Fimage%20(270).png?alt=media" 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="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-6215ffb1c858fefb2e9f8b36c932c2079f2fda1c%2Fimage%20(271).png?alt=media" 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 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/access-control/user-id-controlled-by-unpredictable-guid-parameter.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.
