Skip to content
Access control Write-up Intermediate

Alternative link

A Salesforce community misconfiguration allowed unauthenticated access to internal documents via an Aura endpoint. An attacker could enumerate and download over 900 internal files, including images.

motaha22.github.io

Published on motaha22.github.io

Hi, today I will share how I was able to access internal data of https://weathercommunity.ibm.com using salesforce misconfiguration.

Mohamed Taha, on motaha22.github.io

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 Salesforce community's Aura endpoint allowed unauthenticated access to a data provider that listed ContentDocument records, and the document download endpoint did not enforce access controls.

Impact

An unauthenticated attacker could list and download over 900 internal documents, including images, from the community.

What the attacker needed

None

How it was found

  1. Find a subdomain pointing to a Salesforce community CNAME.
  2. Send a POST request to the Aura endpoint with a crafted message.
  3. Replace the MARKER in the message with ContentDocument to list document IDs.
  4. Extract IDs starting with 069 and download each via the shepherd document download endpoint.

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 communities are public-facing sites built on Salesforce. A misconfiguration let anyone send a special request to list internal documents and then download them without logging in.

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.