How I hacked worldwide Tiktok users
The family pairing feature allowed a parent account to change settings for any child account by modifying the child_user_id parameter, without verifying that the child belonged to the parent. An attacker could change any user's account from public to private and disable comments, direct messages, and other features.
In this write up I am sharing a TikTok vulnerability reported via TikTok’s bug bounty program
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 missing authorization check that the child_user_id belongs to the parent's linked child account.
Impact
An attacker could potentially change any user's account from public to private and disable comments, direct messages, and other features, affecting all TikTok users.
What the attacker needed
A TikTok account; a linked child account; ability to intercept requests
The fix
The issue was resolved by TikTok, likely by adding an authorization check that the child_user_id belongs to the parent's linked child.
How it was found
- Create two accounts, one as parent and one as child, and link them.
- Turn on Burp Suite to intercept requests.
- In the parent account, change the child account from public to private and capture the request.
- Modify the child_user_id parameter to another user's ID.
- Observe that the settings change for the other user's account.
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.
Family pairing lets a parent control a child's TikTok account. The app trusted the parent's request to change settings for any child ID without checking if that child was actually linked to the parent. So anyone could change other people's privacy settings.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.