Skip to content
XSS Disclosed report Intermediate

CRLF to XSS & Open Redirection

A TikTok seller endpoint failed to validate input in a redirect parameter, allowing CRLF injection into HTTP responses. This could enable reflected XSS to access cookies or an open redirect to unauthorised pages under the tiktok.com domain.

szit Follow

Originally disclosed on HackerOne

  • Triaged in 31 days
  • Fixed in 53 days
  • Paid in 36 days
  • Disclosed after 2 months

Summary by the program

Due to inadequate input validation, it could have been possible to inject CRLF (HTTP Response Splitting) into the parameter "hack_redirect_now " on a TikTok seller endpoint. This could have led to Reflective XSS (Cross-Site Scripting) to gain access to a user's cookies, or the ability to send users to unauthorized webpages ending in "tiktok.com" via an open redirect. This vulnerability has been resolved. We thank @ashrafabdelrazik for reporting this to our team.

The original report as published on HackerOne, by szit. 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

Impact

This could have led to reflected XSS to steal a user's cookies or an open redirect to unauthorised pages that still appear to be on tiktok.com.

What the attacker needed

Attacker can supply crafted input to the redirect parameter

The fix

The vulnerability was fixed by the vendor.

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 website puts user input into its response headers without cleaning it, an attacker can sneak in extra line breaks. Those line breaks let the attacker add their own headers or even a script, which the victim's browser then runs. Here the input was a redirect parameter, so the attacker could also send people to a different page.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by szit

View all

4 more disclosed reports, best first.

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 scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.