CSRF protection bypass on TikTok Webcast Endpoints
The TikTok Webcast API endpoints validated the Origin header to prevent CSRF, but accepted requests when the Origin header was absent, which could have allowed unnoticed requests.
- Triaged in 2 days
- Fixed in 10 months
- Paid in 50 days
- Disclosed after 15 months
Summary by the program
API on TikTok Webcast endpoints prevent CSRF by validating the Origin header which indicates the source of the request. However, if no Origin header is set, the request will be accepted. This could have resulted in unnoticed requests being sent. We thank @zerody 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
The CSRF defence relied solely on validating the Origin header and did not reject requests where that header was absent.
Impact
An attacker could send unnoticed requests to the Webcast endpoints; the report does not specify which actions or any additional defence.
What the attacker needed
Attacker can make a request without an Origin header
The fix
The endpoints should reject requests lacking an Origin header or use an additional CSRF defence such as a token.
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.
Websites often check the 'Origin' header to confirm that a request comes from their own site, which helps stop other sites from making requests on your behalf (a cross-site request forgery, or CSRF). Here, the check was skipped entirely when the header was missing, so an attacker could craft a request that simply left it out and still be accepted.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.