Skip to content
Access control Write-up Intermediate

In Simple Words Pen Testing Salesforce Saas Application Part 2 Fuzz Exploit

The article describes how to test Salesforce applications for improper authorisation and SOQL injection. An attacker could use exposed Aura endpoints to enumerate objects and controllers, then retrieve or delete records belonging to other users if permissions are misconfigured.

Praveen Kanniah Follow

Published on infosecwriteups.com

This is a two-part blog on pen-testing Salesforce SAAS applications. Part-1 focusses on understanding the Salesforce basics and Part-2 focusses on the actual Pen-Test steps.

Praveen Kanniah, on infosecwriteups.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

What the attacker needed

Salesforce application using Aura; Access to the application (guest or authenticated); Misconfigured sharing settings or custom controllers

How it was found

  1. Check if the application uses Aura by browsing with Burp and looking for Aura paths in HTTP history.
  2. If not found, send a POST request to common Aura paths and look for response patterns like "actions":[ or aura:invalidSession.
  3. Recon: gather standard objects, custom objects, and controllers from JavaScript files and HTTP requests.
  4. Fuzz Aura endpoints with object names using Intruder to see which objects are accessible.
  5. Use controller actions like getItems or getRecord to retrieve records, watching for misconfigured sharing settings.
  6. For custom controllers, test actions like deleteSalesDataById with another user's record ID to see if deletion is possible.

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 applications often use a technology called Aura to handle interactions. If the server does not check permissions properly, someone can send requests to Aura endpoints to list data objects and then read or change records that belong to other users. This article explains how to find those endpoints and test whether they are protected.

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.