The Secret Was Just One Folder Away
The secret value used in a string comparison was stored in a file that was directly accessible over HTTP. An attacker could request the file and read the secret, then submit it to gain access.
medium.com
Published on medium.com
Logged in using the natas6 password. Unlike other levels, this page had a single input box labelled “Input secret”, a Submit button, and helpfully (or so I was guessing) a View sourcecode link.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the secret file was placed in a web-accessible directory and served without access controls.
What the attacker needed
Access to the challenge level; knowledge of the file path
How it was found
- View the page source code to find the include path.
- Request the secret file directly using the full path including the includes folder.
- Copy the secret value from the file.
- Submit the secret in the input form to gain access.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A website kept a password in a file that was supposed to be private, but the file could be downloaded by anyone who knew its address. The attacker simply visited that address, read the password, and typed it into the form to get in.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.