1 Click to 'Close Account and Refund' via POSTMESSAGE
A TikTok Ads endpoint used postMessage to send POST requests without properly checking the origin of the message. An attacker could use this to perform cross-site request forgery and force another user to send a POST request with arbitrary parameters to any endpoint, potentially closing other parties' Ads accounts.
Originally disclosed on HackerOne
- Triaged in 39 hours
- Fixed in 21 days
- Paid in 5 days
- Disclosed after 10 months
Summary by the program
A TikTok Ads endpoint sending postmessage sends POST requests without proper checks on the origin. This could have resulted in a cross-site request forgery (CSRF) being used to force another user to send a POST request with any parameters to any end point. This could have been used to close other parties' Ads account. We thank @sinayeganeh for reporting this to our team.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the postMessage event handler did not validate the origin of incoming messages before using their data to construct and send POST requests.
Impact
An attacker could force a logged-in user to send a POST request with arbitrary parameters to any endpoint, potentially closing the victim's Ads account.
What the attacker needed
Victim is logged in to TikTok Ads; victim visits attacker-controlled page
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 report has not been written yet. The Original tab links to the source.
When a web page uses postMessage, it can receive messages from other windows. If it does not check who sent the message, any website can send instructions. Here, those instructions could make the victim's browser send a POST request, which is like submitting a form, to close their Ads account.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.