Stored-XSS-ads.tiktok.com
A stored cross-site scripting flaw existed in the video upload function on a TikTok Ads endpoint. Because of missing checks, an attacker could upload MP4 video files and XML files containing HTML and JavaScript code, which would then execute in a victim's browser.
ahmed_xyz Follow with hamzadzworm and ibrahimatix0x01
Originally disclosed on HackerOne
- Triaged in 24 days
- Fixed in 8 months
- Paid in 55 days
- Disclosed after 9 months
Summary by the program
A stored cross-site scripting (XSS) vulnerability was found on a TikTok Ads endpoint, making it possible for MP4 video files, or files with HTML or JS code to be executed in a user's browser. We thank @ahmed_xyz for reporting this to our team and confirming its remediation.
Summary by the researcher
A Stored Cross-Site Scripting (XSS) vulnerability was found through the video upload function. Due to the lack of necessary checks, it was possible to upload MP4 video files and XML files containing HTML and JavaScript code, leading to their execution within the victim's browser.
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
An attacker could execute arbitrary JavaScript in a victim's browser through uploaded files, though the text does not describe specific consequences such as session theft.
What the attacker needed
Access to the video upload function
The fix
The report states the issue was remediated, but does not describe the fix.
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.
Cross-site scripting, or XSS, is when a website lets someone put code into a page that other people view, so that code runs in their browser. Here the upload feature did not properly check what kind of file was being uploaded, so a file that looked like a video or XML document could actually contain code. When another user opened it, that code ran as if it came from the trusted site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.