Hidden in Plain Sight: How Sitemap.xml Gave Me Access to Gold
A development subdomain exposed a sitemap.xml that listed sensitive endpoints, including a configuration file containing AWS credentials and database passwords. An attacker could use the leaked AWS keys to access cloud resources, potentially with full production-level permissions.
medium.com
Published on medium.com
Free 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, a development environment was publicly accessible and its sitemap.xml inadvertently listed sensitive files, including a configuration file with hardcoded credentials.
Impact
The leaked AWS credentials were valid and provided full-blown access, allowing the attacker to list S3 buckets and describe EC2 instances, indicating production-level access.
What the attacker needed
Development subdomain is publicly accessible; sitemap.xml lists sensitive endpoints; configuration file with credentials is exposed
How it was found
- Found a development subdomain during recon.
- Accessed the sitemap.xml on that subdomain.
- Extracted URLs from the sitemap and checked their status.
- Opened the exposed configuration file and found AWS keys and database credentials.
- Used the AWS CLI to verify the keys and list S3 buckets and EC2 instances.
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 sitemap is a file that lists a website's pages to help search engines. Here, it also listed private files like a configuration file that held secret passwords and cloud access keys. Anyone who found that file could use those keys to break into the company's cloud account.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.