This Simple Trick Will Exploit Image Uploads 2500 Tiktok Bug Bounty
A TikTok Ads endpoint allowed uploading SVG files containing JavaScript, so an attacker could upload a malicious SVG that would execute script when viewed. This could let the attacker steal cookies or other account credentials.
Cross-site Scripting (XSS) is a security headache for all web application developers. In this type of vulnerability, attackers will somehow inject malicious JavaScript code, or “scripts,” into a benign web app.
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 upload endpoint accepted SVG files without sanitising or blocking embedded script content, so the file was served and rendered as active content.
Impact
An attacker could run script in the context of the TikTok Ads site, potentially stealing a user's cookies or account credentials, though the report gives no further detail on real-world exploitation.
What the attacker needed
Ability to upload an SVG file; victim views the uploaded file
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.
Cross-site scripting (XSS) is when a website lets an attacker sneak JavaScript code into a page that other people view. That code runs in the victim's browser as if the website itself had written it, so it can read things like login cookies. Here, the site accepted image files in SVG format, which can contain JavaScript, and did not stop the script from running.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.