Vulnerability in TikTok Android app could lead to one-click account hijacking
A deeplink verification bypass in TikTok's Android app allowed an attacker to load an arbitrary URL into the app's WebView, which then had access to a JavaScript bridge exposing over 70 methods. An attacker could steal authentication tokens and modify the victim's profile with a single click.
Microsoft 365 Defender Research Team Follow
Published on microsoft.com
Microsoft discovered a high-severity vulnerability in the TikTok Android application, which could have allowed attackers to compromise users’ accounts with a single click. The vulnerability, which would have required several issues to be chained together to exploit, has been fixed and we did not locate any evidence of…
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 app's server-side URL allowlist check for a deeplink could be bypassed by adding extra parameters, and the resulting WebView exposed a powerful JavaScript bridge to any loaded page.
Impact
An attacker could steal authentication tokens and modify the victim's TikTok profile, including changing their biography and potentially accessing private videos, though the exploit required the victim to click a crafted link and no in-the-wild exploitation was found.
What the attacker needed
Victim clicks a crafted link; TikTok Android app installed
The fix
The vulnerability was fixed in an updated version of the app released less than a month after disclosure.
How it was found
- Craft a URL that uses the exported redirect deeplink to trigger an internal deeplink.
- Add two extra parameters to bypass the server-side host filter.
- The app loads the attacker's URL in its WebView, giving the page access to the JavaScript bridge.
- The page uses the bridge to send authenticated requests and exfiltrate tokens or modify the profile.
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.
A deeplink is a special link that opens a specific screen inside a mobile app. TikTok's app failed to properly check which links were safe, so an attacker could make the app open a malicious website inside its own built-in browser. That website could then use hidden features meant for TikTok's own code to steal the user's login tokens and change their profile.
What is Mobile?
Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.