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

# معرّف المستخدم المتحكم به عبر معامل GUID غير متوقع

#### معرّف المستخدم يتم التحكّم به بواسطة معلمة

يعرض هذا المختبر **تصعيد الامتيازات الأفقي** مشكلة في صفحة حساب المستخدم. / والميزة الخاصة هي أن **يتم تعريف المستخدمين بواسطة معرّفات GUID**، أي بيانات اعتماد طويلة وعشوائية، على سبيل المثال:

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

بعد الاتصال بالحساب **wiener:peter**، يمكنك رؤية معرّف GUID الخاص بك في قسم حسابي.

<figure><img src="/files/c3aec85f371a14031743148eac9b5b7f42bac684" alt=""><figcaption></figcaption></figure>

#### **استرجاع معرّفات GUID عبر المنشورات**

من خلال تصفح الموقع، نجد في **المنشورات الظاهرة** معرّفات GUID للمستخدمين الآخرين:

* يظهر معرّف GUID الخاص بالمسؤول في أحد منشوراته.

<figure><img src="/files/4ddd1b3d5718fb32d88d23424e2ddfe99f3da898" alt=""><figcaption></figcaption></figure>

وبالمثل، يمكننا استرجاع معرّف GUID من **carlos**.

<figure><img src="/files/a684b20bbf8adf489a9f447702c41ee6f77f4cab" 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/22f1c9bbdb54395841754a5d7fc88671214fbc6c" 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/ar/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.
