Tik or Tok? Is TikTok secure enough?
Multiple vulnerabilities in TikTok, including SMS link spoofing, an open redirect with a flawed domain regex, and XSS in the ads help centre, allowed attackers to execute JavaScript in a victim's session. Combined with missing CSRF protections and a JSONP endpoint that bypassed CORS, an attacker could delete or upload videos, make private videos public, force follow approvals, and steal sensitive data such as email addresses and payment information.
research.checkpoint.com
Published on research.checkpoint.com
Researchers: Alon Boxiner, Eran Vaknin, Alexey Volodin, Dikla Barda, Roman Zaikin
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 a combination of insufficient validation of user-supplied URLs and parameters, missing CSRF protections, and an overly permissive JSONP endpoint that bypassed browser security restrictions.
Impact
An attacker could take over accounts, delete or upload videos, make private videos public, force follow approvals, and steal sensitive information such as email addresses and payment details; the report notes that CORS and SOP restrictions initially blocked direct API access but were bypassed via JSONP.
What the attacker needed
Victim clicks a link; victim is logged in; attacker can send SMS; Android app installed
The fix
The vulnerabilities were responsibly disclosed and a solution was deployed by TikTok.
How it was found
- Capture the SMS download request and change the download_url parameter to a link of the attacker's choice.
- Send a deep link containing the url parameter so the app opens a webview to the attacker's server with the user's cookies.
- Use the open redirect with a domain ending in tiktok.com to send the victim to a malicious site.
- Inject JavaScript into the q parameter of the ads help centre search to execute code.
- Use the JavaScript execution to send requests on behalf of the victim, such as deleting a video or approving a follow request.
- Trigger an AJAX request to the JSONP callback to retrieve sensitive user data.
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.
This report describes several weaknesses in TikTok's website and Android app. One flaw let attackers send text messages that appeared to come from TikTok but contained a link of their choosing. Another let a malicious link redirect users to an attacker's site, and a third let attackers run their own code on a TikTok page. Together these allowed an attacker to act as the victim, for example deleting videos or reading private information.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.