Hacking the Department of Homeland Security (Legally). This is my
A Salesforce Experience Cloud site exposed its Aura API to unauthenticated guest users, allowing the Contact object to be queried. An attacker could extract personal data such as names, dates of birth, passport numbers and Trusted Traveler IDs.
Published on medium.com
Spoiler: No, I didn’t “hack the government.” I responsibly disclosed a critical misconfiguration and helped protect real people’s 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 Salesforce Community site granted its guest user profile read access to the Contact object and left the public Aura API reachable.
Impact
Any unauthenticated attacker could extract passport numbers and Trusted Traveler IDs of U.S. travelers; the report does not say how many records were exposed.
What the attacker needed
No account needed; target uses Salesforce Experience Cloud; guest user has object read access
The fix
DHS revoked guest user access to all objects, audited Community site permission sets and locked down public Aura API access, and the issue was fixed by 19 September 2024.
How it was found
- Run passive subdomain enumeration and technology fingerprinting against the in-scope domain.
- Notice a subdomain that fingerprints as Salesforce Experience Cloud and redirects to the /s/ path.
- Use a public Aura proof-of-concept script to query the Contact object without authentication.
- Open the returned JSON and confirm it contains personal data fields.
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 Experience Cloud sites can have a public 'guest user' that is allowed to read data objects. If that guest user has too much permission, anyone on the internet can ask the site for records without logging in. Here the guest user could read the Contact object, which held personal details of travellers.
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.