Turning a Closed Bug Report into $650: The Art of Demonstrating Impact!
Exposed Salesforce credentials were found in a directory named 'test', initially dismissed as test-only. The reporter later showed the credentials still worked against the live Salesforce API, granting access to environment data, and received a bounty.
Published on hasanka-amarasinghe.medium.com
I submitted a report where I found exposed Salesforce credentials in a directory that contained the word “test.” Unfortunately, the initial response from the bugbounty platform was that the folder structure suggested these were test credentials, and the report was closed with the following feedback:
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, real API credentials were hardcoded and exposed in a publicly accessible directory whose name suggested test use, leading to them being overlooked.
Impact
An attacker with the exposed credentials could authenticate to the Salesforce environment and access some API data, though some requests failed due to expired credentials or lack of permissions.
What the attacker needed
Exposed credentials in a public directory; credentials remain valid
The fix
The credentials should be revoked and removed from public repositories, and secrets should not be stored in code.
How it was found
- Find exposed credentials in a directory path containing 'test'.
- Submit a report; it is closed because the path suggests test credentials.
- After 5 months, re-test the credentials against the live Salesforce OAuth token endpoint.
- Receive a successful authentication response, confirming the credentials are valid.
- Use the access token to query Salesforce API endpoints and retrieve environment details.
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.
Credentials are like a username and password that let a program log in to a service. Here, they were left in a public folder that looked like it was only for testing, so the bug bounty team first ignored it. Later, the finder proved the same credentials still worked on the real service, which made the risk clear.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.