# Tanuki - 2

Level: Easy\
Points: 10\
Type: Daily Challenge

Lab Interface

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

In /profile we have option to update or profile

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

Request to update profile looks like

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

Key thing to notice here:\
1\. Email address\
2\. username passed on request

With this info, the first thing that comes in mind, is possibility to update password of other users.\
To test this, I created new account.<br>

And then tried to update password of new account by replacinng email and username in update profile request.

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

Which worked perfectly and gave me flag.


---

# 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://notes.dollarboysushil.com/web-app/bugforge/idor-insecure-direct-object-reference/tanuki-2.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.
