Skip to content

Latest commit

 

History

History
57 lines (32 loc) · 1.59 KB

README.md

File metadata and controls

57 lines (32 loc) · 1.59 KB

Corridor

Writeup for Corridor room at Tryhackme. Corridor room can be found here: https://tryhackme.com/room/corridor

Table of Contents

Webpage

The website shows white corridor with multiple doors.

Main page

Clicking on a door opens a picture of a white room and the URL of this picture contains a hash.

Open door

Hash Identification

Downloading websites' source code with curl shows multiple hashes of same length.

Found hashes

Now I'll save all these hashes to a file and check their type with hash-identifier.

Saved hashes

Hash types

All hashes were identified as MD5.

Hash Cracking

To crack hashes, John the Ripper tool will be used.

Cracked hashes

Turns out, all hashed URL endpoints are numbers from 1 to 13.

IDOR Vulnerability

To exploit an IDOR vulnerability, let's choose a number that is different from what's already found. I'll start with 14.

I've created MD5 hash for number 14 with command echo -n 14 | md5sum.

14 endpoint

Such page is not found. Let's create a hash for number 0.

Ading this hash to the URL gives the flag for this room!

0 endpoint