Security Misconfiguration — Leading to Sensitive Informatio
A startup's website exposed valid but unprivileged AWS access and secret keys in its page source. Because the keys had no permissions, the finder could not access or dump any data.
A security misconfiguration was identified on a startup’s website, revealing valid but non-privileged AWS credentials in the source code. The issue was detected using OSINT techniques and the TruffleHog browser extension.
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 AWS credentials were hard-coded into client-side source code and shipped to production instead of being kept in a secrets manager.
Impact
The keys were valid but had no privileges, so no data could be accessed; if they had carried permissions, the impact could have been High or Critical.
What the attacker needed
None
The fix
Sensitive credentials should be removed from source code and stored in a secrets manager, with automated scanning in the build pipeline.
How it was found
- Visit the startup's website and gather information about it.
- Notice a login page served on a different port.
- Use a browser extension that scans page source for secrets.
- See the alert showing AWS access and secret keys in the source.
- Verify the keys with the AWS command-line tool.
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.
Web pages are built from source code that anyone can view in their browser. Here the developers left cloud login details (keys that identify an account to Amazon Web Services) inside that code. Anyone who looked could have used them, but in this case the keys were not allowed to do anything.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.