# IDOR in Insecure APIs

### Try to read the details of the user with 'uid=5'. What is their 'uuid' value?

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

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

When accessing the web application, click on "Edit Profile" and Intercept the Requests. We can see that this profile points to the user ID 1.

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

If we send the Request to the Repeater and change the ID to 5, we get the `uuid` of the corresponding user, confirming and IDOR vulnerability


---

# Agent Instructions: 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:

```
GET https://www.hackervice.com/ctf-labs/htb-certified-bug-bounty-hunter/web-attacks/idor-in-insecure-apis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
