Skip to content
CSRF Disclosed report Intermediate

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.

zerody Follow

Originally disclosed on HackerOne

Bounty$2,500 Medium 5.4 View original
  • 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.

The original report as published on HackerOne, by zerody. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More from TikTok

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.