Configuration Leaks and Missing Checks: Capturing the Flag in Int
The robots.txt file listed sensitive configuration files, and an accessible backup composer.json~ file exposed admin credentials and a partial flag. After logging in as admin, an IDOR in the notes API allowed access to a private note containing the complete flag.
Published on medium.com
In this writeup, I’ll walk through my solution to Intigriti’s SantaCloud challenge, where I discovered and exploited a vulnerability chain that led to capturing the flag. The journey began with information disclosure via robots.txt, which revealed sensitive configuration files with admin credentials and a partial flag.
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 sensitive files were left accessible and the notes API lacked proper authorization checks, allowing access by changing the ID.
Impact
An attacker could obtain admin credentials and access private notes, including the flag, by exploiting the information disclosure and IDOR.
What the attacker needed
None
The fix
The text recommends removing sensitive paths from robots.txt, storing configuration outside the web root, using environment variables for secrets, and implementing proper authorization checks on API endpoints.
How it was found
- Use Burp Suite Active Scan to find robots.txt.
- Read robots.txt to discover sensitive file paths.
- Access the backup file /composer.json~ to obtain admin credentials and a partial flag.
- Log in with the admin credentials.
- Use Burp Intruder to iterate note IDs from 1 to 50 on /api/notes/[ID].
- Access note ID 3 to retrieve the complete flag.
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.
The website's robots.txt file, meant to guide search engines, listed secret files. One backup file was publicly accessible and contained the admin username and password. After logging in, the notes API used simple numbers as IDs, so changing the number let the attacker read other users' private notes, including one with the flag.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.