Four Digit Bounty, Max Impact — How I Stopped a Mass Data B
A POST request to a chatbot cache-key endpoint returned a response containing an Authorization header with a Salesforce access token that the attacker did not send. The token granted full access to the production Salesforce org, exposing customer PII, employee data, Apex source code, and other internal resources.
Published on medium.com
I was doing recon on the target’s frontend. Standard stuff — pull js files, look for API calls, endpoints, anything interesting.
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 backend integration service behind a proxy reflected the full request context, including an injected service-to-service Authorization header, back to the client on POST requests.
Impact
The token gave full access to the production Salesforce org, exposing customer PII, employee directory data, Apex source code, org metadata, analytics, payment surfaces, and full object enumeration.
What the attacker needed
Knowledge of the endpoint from JS; ability to send POST requests
How it was found
- Find the chatbot cache-key endpoint in the JavaScript bundle.
- Send a GET request to the endpoint and observe a normal application response with security headers.
- Send the same request as POST with an empty body and observe different response headers including X-Forwarded-* and an Authorization header not sent by the attacker.
- Identify the token as a Salesforce access token from its 00D prefix.
- Locate the public Salesforce site for the company and test the token against the API root.
- Use the token to query Account, folders, tooling, and other Salesforce endpoints, confirming access to customer and employee data.
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 had a hidden backend service that, when asked with a POST request, accidentally included its own secret password (a Salesforce access token) in the response headers. That token let the researcher read all customer and employee data from the company's Salesforce system. The mistake was that the backend echoed back request context including a credential it should never have exposed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.