Skip to content
XSS Write-up Intermediate

No Gaming, Just Hacking — How I Made $3K on TikTok Bug Bounty Program

A reflected parameter on a TikTok campaign-sharing endpoint echoed user input without sanitisation, allowing HTML injection. After working around the Akamai WAF and a block on alert-style functions, the author achieved script execution and cookie theft, and found two more endpoints with the same flaw.

rdnzx Follow

Published on rdnzx.medium.com

It was just another random night. A friend of mine asked me to hop on Valorant (Game) typical evening ritual.

Radian ID, on rdnzx.medium.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 run script in a victim's browser on the TikTok domain and steal their cookies, though the WAF blocked straightforward payloads and alert-style functions were blocked at runtime.

What the attacker needed

Victim clicks a crafted link; WAF bypass needed; alert-style functions blocked

How it was found

  1. Scan TikTok-related domains with urlscan.io to collect a large list of URLs.
  2. Find a campaign-sharing endpoint with several parameters and test the region parameter for reflection.
  3. Confirm the input reflects unencoded, then try a script payload and see it blocked by Akamai.
  4. Try obfuscated tag and string variants until the filter is bypassed and script runs.
  5. Report the bug, then build a cookie-stealing proof of concept and update the report.
  6. Search the same path family and find two more endpoints with the same flaw.

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.

Some web pages take a value from the address bar and print it straight back into the page. If they do that without cleaning it, an attacker can put markup or script in the link so the victim's browser runs it as if TikTok wrote it. That lets the attacker read the victim's cookies, which can mean taking over the account.

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 rdnzx

View all

1 more disclosed report, best first.

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.