Cross-Site Scripting (XSS) remains a critical web security vulnerability, allowing attackers to inject malicious scripts into trusted websites. XBOW’s latest discovery demonstrates how unconventional testing methods can uncover XSS flaws even in hardened platforms like Salesforce Aura Components. By defying conventional assumptions, they bypassed traditional defenses, proving the importance of persistent and creative security testing.
Learning Objectives
Understand how parameter manipulation can bypass content-type restrictions in XSS attacks.
Learn the role of `aura.tag` and `aura.format` in Salesforce Aura Components and how they can be exploited.
Discover how SVG `onload` handlers can evade script tag filters.
You Should Know
1. Content-Type Manipulation for XSS
Command/Code Snippet:
GET /aura?aura.tag=malicious_payload&aura.format=JSON HTTP/1.1
Host: vulnerable.salesforce.com
Step-by-Step Guide:
Identify a reflected parameter (e.g., aura.tag) in Salesforce Aura endpoints.
Observe that the server responds with text/plain, preventing script execution.
Append `aura.format=JSON` to force the server to return `text/html` instead.
The payload is now interpreted as HTML, enabling XSS.
2. Bypassing Script Filters with SVG `onload`
Code Snippet:
<
svg onload=alert(document.domain)>
Step-by-Step Guide:
Traditional `
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent may adversely affect certain features and functions.
We do not sell your personal data. If you wish to exercise your rights under applicable privacy laws, please visit our Do Not Sell My Personal Information page.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.