How We Prevented a Mass Breach On One OF The Biggest CryptoCurrency Gateways On A Web3 Platform.
The web3 platform exposed a Braze API authorization token to the client, allowing the researchers to call Braze endpoints and export all users' data to an S3 bucket. They then downloaded the resulting ZIP file containing personal data by using curl with an output option, despite the S3 URL returning Access-Forbidden in a browser.
Published on medium.com
Me And My Friend Abdelrahman Shazly Where Hunting on www.examplex.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
Impact
An attacker could access and download all customers' personal data, including names, emails, phone numbers, dates of birth, and addresses.
What the attacker needed
Ability to submit an email to the service; knowledge of Braze API
How it was found
- Submit an email to the third-party service and capture the request containing the authorization token.
- Use the token to call Braze API endpoints, such as exporting user data by ID.
- Find an endpoint that extracts segment IDs and another that exports all users' data to an S3 bucket.
- Receive a ZIP file URL in the response, but note that visiting it in a browser returns Access-Forbidden.
- Use curl with an output option to download the ZIP file successfully.
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.
The website gave users a secret key (an authorization token) that let them talk to a third-party marketing service called Braze. The researchers used that key to ask Braze for all customer data, which was saved to a cloud storage bucket. Even though the bucket link seemed blocked in a browser, a command-line tool could still download the file.
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.