SOQL Injection refers to a type of security vulnerability in Salesforce where an attacker can manipulate a SOQL (Salesforce Object Query Language) query by injecting malicious code, potentially gaining unauthorized access to data.
The report describes a SOQL injection vulnerability in a Salesforce community where an attacker can manipulate a SOQL query by injecting malicious code, potentially gaining unauthorised access to data. The author demonstrates a request that returns user details, but the text does not clearly show a successful injection beyond normal API access.
SOQL Injection refers to a type of security vulnerability in Salesforce where an attacker can manipulate a SOQL (Salesforce Object Query Language) query by injecting malicious code, potentially gaining unauthorized access to data.
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 application concatenates user-supplied input directly into a SOQL query instead of using bind variables or proper escaping.
Impact
The text claims that SOQL injection can lead to unauthorised access to sensitive data, data corruption, and other malicious activities, but the demonstrated request appears to return data that may be accessible through normal API calls.
What the attacker needed
Access to a Salesforce community; ability to send HTTP requests
The fix
The text recommends using bind variables, sanitising user inputs, and using Salesforce security methods such as String.escapeSingleQuotes.
How it was found
- Send a POST request to the Aura endpoint with a message parameter containing a record ID and fields.
- Observe the response returning user details such as email and ID.
- Modify the descriptor parameter to a different controller action.
- Send the modified request and observe the response.
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.
SOQL is a query language used in Salesforce to retrieve data. Injection happens when user input is inserted directly into a query without proper handling, allowing an attacker to change the query's meaning. This can let them read data they should not see.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.