> For the complete documentation index, see [llms.txt](https://notes.dollarboysushil.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.dollarboysushil.com/web-application-pentest/bugforge/broken-access-control/vaultly-vaultly-002.md). Agents can also search and read this documentation through its [MCP server](https://notes.dollarboysushil.com/~gitbook/mcp).

# Vaultly - vaultly-002

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

There exist a feature to reset your password. This feature gives a password reset link

<figure><img src="https://559802299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8C3FiojCIEtxH7nox2Do%2Fuploads%2FYEiLNdow5Og0SyAR1SJN%2Fimage.png?alt=media&amp;token=d11c698e-0ab3-40e7-89d3-6c9cb4909f22" alt=""><figcaption></figcaption></figure>

The respective password reset request looks like

<figure><img src="https://559802299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8C3FiojCIEtxH7nox2Do%2Fuploads%2FEdO1cX78yVmaWWDxc1wO%2Fimage.png?alt=media&amp;token=e608e5fd-fd11-480c-89a6-234443956028" alt=""><figcaption></figcaption></figure>

Key thing to look here is presence of `email` parameter in the request. Looking at the request first thing that comes in my mind is to replace this email parameter with target email.\
\
To test this, I created new account `target@gmail.com` and replaced the earlier email parameter with `target@gmail.com`. \
There was no protection at all, hence I was able to reset target's password.

<figure><img src="https://559802299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8C3FiojCIEtxH7nox2Do%2Fuploads%2FAxlj8xthiwImiX2VkJYK%2Fimage.png?alt=media&amp;token=43f39996-668e-4bd9-95e2-4e6582e6fdb8" alt=""><figcaption></figcaption></figure>

After loggin in with target's creds we are shown the flag for this lab.

<figure><img src="https://559802299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8C3FiojCIEtxH7nox2Do%2Fuploads%2FO8rqpt0Qf7IGiQxXhhWQ%2Fimage.png?alt=media&amp;token=8528cab1-1f16-4bf6-aca6-7d7fe0fbe319" alt=""><figcaption></figcaption></figure>
