Skip to content
XSS Write-up Intermediate

I Made $11K on a TikTok Bug Bounty

A reflected XSS vulnerability was found in a TikTok endpoint's region parameter, but a WAF blocked simple payloads. The author crafted an obfuscated payload that bypassed the WAF and demonstrated a redirect, earning a bounty.

codii Follow

Published on medium.com

It was a completely normal Tuesday night. A notification popped up on my screen — friends were getting online to play games—the usual invitation.

Codi, on 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

Root cause

Likely the application failed to sanitise user input before reflecting it in the response, and the WAF's pattern matching could be evaded with obfuscation.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially redirecting them to a malicious site, though the WAF initially blocked simple payloads.

What the attacker needed

Victim clicks a crafted link; WAF bypass required

How it was found

  1. Search urlscan.io for *.tiktok.com to gather endpoints.
  2. Identify an endpoint with a region parameter that reflects input.
  3. Test with a simple payload to confirm reflected XSS.
  4. Observe that a WAF blocks script execution.
  5. Craft an obfuscated payload that bypasses the WAF.
  6. Use a redirect payload to prove impact and report.

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.

The website took text from a URL parameter and put it directly into the page without cleaning it. This let an attacker insert code that runs in a victim's browser, but a security filter (WAF) blocked obvious attacks. The author found a way to write the attack so the filter didn't recognise it.

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 codii

View all

6 more disclosed reports, 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.