[ccadb.force.com] PII Disclosure due to insecure permissions on default Salesforce `User` object
The Salesforce site had misconfigured permissions on the default User object, allowing any self-registered user to retrieve user records. An attacker could access full names and sometimes company information of other users.
Originally disclosed on Mozilla
- Fixed in 34 days
- Paid in 45 days
- Disclosed after 34 days
Created attachment 9171364
User information leak
##Summary:
The site `ccadb.force.com` is running Salesforce Lightning and is a private site that is owned by Mozilla. Unfortunately, it has misconfigured the `User` default SF object, allowing any attacker who has self-signed up (automatic signup) to retrieve data from it.
## Steps to reproduce:
1. Ensure Burp Suite is sniffing all HTTP(S) requests in the background and navigate to `https://jackds-developer-edition.eu26.force.com/s/`
2. In Burp's proxy history, find a POST request to `/s/sfsites/aura` and send it to the repeater.
3. Change the `Host` header to `ccadb.force.com` and the repeater target to `ccadb.force.com`.
4. Modify ONLY the `message` POST parameter to the following payload, do not touch the `aura.context`, `aura.pageURI`, and `aura.token` values. This will retrieve 100 records for speed, however thousands can be accessed:
{"actions"%3a[{"id"%3a"576%3ba","descriptor"%3a"serviceComponent%3a//ui.force.components.controllers.lists.selectableListDataProvider.SelectableListDataProviderController/ACTION$getItems","callingDescriptor"%3a"UNKNOWN","params"%3a{"entityNameOrId"%3a"User","relatedListId"%3a"","isNotSelectableFieldName"%3a"","layoutType"%3a"FULL","pageSize"%3a100,"currentPage"%3a0,"useTimeout"%3afalse,"sortBy"%3a"","getCount"%3afalse,"enableRowActions"%3afalse},"storable"%3atrue}]}
5. Submit the request, and you can see user full names (and in some cases, company). See screenshot attached.
##Remediation
Ensure that `Guest` users have restricted permissions to the `User` object.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the guest user profile had read access to the User object, which should be restricted.
Impact
An attacker could retrieve personal information such as full names and sometimes company names of users.
What the attacker needed
A self-signed up account; ability to intercept HTTP requests
How it was found
- Set up a proxy to capture HTTP(S) traffic and visit the Salesforce site.
- Find a POST request to the Aura endpoint in the proxy history and send it to the repeater.
- Change the Host header and repeater target to the target site.
- Modify only the message parameter with a payload that requests User records.
- Submit the request and observe the returned user 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 report has not been written yet. The Original tab links to the source.
Salesforce is a cloud platform for managing customer data. The default 'User' object stores information about people with accounts. The site allowed anyone who signed up to read this data, which should have been restricted.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.