Summary
Corridor — A Simple Web CTF That Made Me Look Twice
I started the Corridor room with a basic Nmap scan. Here’s how I worked through it and what I tried along the way.
Starting With Nmap
I began with an Nmap scan against the target:
nmap -A
there were several
tags below it.
Each one had an href
, and the values looked like hashes.
I took one of the hashes and checked it with CrackStation. It was identified as MD5 and returned 1
.
I then checked the other values to see whether they followed the same pattern.
They did.
Get Athulya Biju’s stories in your inbox
Join Medium for free to get updates from this writer.
The hashes corresponded to the numbers 1 through 13.
Another Thing I Tried
While looking through the source, I also noticed a SHA-384 value in the Bootstrap stylesheet’s integrity
attribute.
I copied that value into CyberChef and tried the Magic operation.
CyberChef returned:
“Nothing of interest could be detected about the input data. Have you tried modifying the operation arguments?”
I noticed the part about modifying the operation arguments, so I tried changing the settings instead of leaving it there.
Testing the Idea
Since the hashes matched the numbers 1 through 13, and the room was about IDOR, I tried another value that wasn’t one of the doors shown on the page. I tried 0
and generated its MD5 hash:
echo -n “0” | md5sum
This gave me MD5 hash for 0
.
I put the generated hash into the URL and opened it in the browser.
http://<TARGET_IP>/