# Write-up

### <mark style="color:purple;">Objectives</mark>

You have found yourself in a strange corridor. Can you find your way back to where you came?\
In this challenge, you will explore potential IDOR vulnerabilities. Examine the URL endpoints you access as you navigate the website and note the hexadecimal values you find (they look an awful lot like *hash*, don't they?). This could help you uncover website locations you were not expected to access.

***

### <mark style="color:purple;">Resolution</mark>

The trick with this machine lies in the objective. It mentions *“potential IDOR vulnerabilities”* and *“examine the URL endpoints”*, so we start by navigating to the URL.

We are presented with a corridor containing 13 empty doors.

Clicking on any door redirects us to a new URL that includes a **hash**.\
We take that hash and use **CrackStation** to try to decipher it.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXedCOXM3ReYH8tqsY7sUuDjcjx3ARLaeV_Ij8yLwzK2z4fqxbKH8u2132F5hCjzRNVhqHSaGqiAfkwXlYDsEQElRnVF50DNG6s02orLqz4f4jh36M4SI_ds8LYWAYdKYMYLrqE53w?key=ckFWgFh4JwHl2sW3UhlpXahn" alt=""><figcaption></figcaption></figure>

It turns out to be a number — apparently, the corresponding door number. To confirm this, we repeat the process with the sixth and thirteenth doors.

With this confirmed, we use **CyberChef** to generate the MD5 hashes for `0` and `14`, and then manually replace the URL hash to observe the outcome.

* **0:**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeyfpB0um64dq02zZwoHKMmSE3_2XDrXK6K5Iy1_QkyK2a235gJSZCnwApAAg6-rbKhdPbjDLAe_5cHhYaCmaLpo2xUQyAcE4QxMT0N-CkFjy9dl3DRaA7k8MLdtHrB8NuSeS5QpA?key=ckFWgFh4JwHl2sW3UhlpXahn" alt=""><figcaption></figcaption></figure>

When we insert it into the URL, we obtain the flag.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXep9vSkNcd5bXZA6cFhNBMQlqqFhIYzWvfcyeETfRki2X0Fv7y7_Le0Aad2oc4NPZpAXrHAWL-iXqbQqNgP1XXVN9gqb1pvhhMALORBjrO7ULB7p1bfJN8TrwbNoudNM4su-l0xiA?key=ckFWgFh4JwHl2sW3UhlpXahn" alt=""><figcaption></figcaption></figure>
