Skip to content
Access control Write-up Beginner

Exploiting Salesforce Lightning Permissions Issues

Salesforce Lightning help pages often have misconfigured permissions that let unauthenticated guests access files and other data they should not see. An attacker can query the Aura endpoint with a crafted message to list files and download them, potentially exposing sensitive information.

theodorejackson.us Follow

Published on medium.com

Salesforce Lightning is a CRM product that you will often see as the backbone of an organization's help or support pages. It makes it really easy to set up an application that serves guides and help pages and manage permissions for these.

Ted Jackson, on medium.com

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 the Guest user role in Salesforce Lightning is granted overly broad access to records such as ContentDocument, or no Guest role is configured so unauthenticated users inherit the same permissions as authenticated users.

Impact

An unauthenticated attacker could list and download files that were intended to be private, potentially exposing sensitive information.

What the attacker needed

Target uses Salesforce Lightning; no authentication required

How it was found

  1. Visit a website that uses Salesforce Lightning, indicated by a URL containing /s/ and requests to /s/sfsites/aura.
  2. Capture a request to /s/sfsites/aura and replace the message parameter with a query for ContentDocument.
  3. Send the request and note the Id values returned for each file.
  4. Use each Id in the download URL /sfc/servlet.shepherd/document/download/{DocumentID} to retrieve the file.

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.

Salesforce Lightning is a system for building help and support pages. Sometimes its permission settings are too loose, so anyone visiting the page can ask for files that were meant to be private. This article explains how to spot that mistake and download those files.

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.

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.