Stealing Your Private YouTube Videos, One Frame at a Time
An IDOR in Google Ads' 'Moments' feature allowed an attacker to retrieve thumbnails from any private YouTube video by supplying its video ID. This enabled frame-by-frame extraction of private video content, though without audio and at low resolution.
Published on bugs.xdavidhu.me
Back in December 2019, a few months after I started hacking on Google VRP, I was looking at YouTube. I wanted to find a way to get access to a Private video which I did not own.
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
The Google Ads 'Moments' feature did not verify that the requesting user had permission to access the specified video, allowing any video ID to be used.
Impact
Any private YouTube video could have been downloaded frame by frame, though without audio and at low resolution, and the attacker needed to know the video ID.
What the attacker needed
A Google Ads account; knowledge of the target video ID; victim has a private video
The fix
The 'Moments' feature was temporarily disabled and later re-enabled with a check that the user has access to the video.
How it was found
- Upload a private video to a test YouTube account.
- Create a Google Ads account and an advertisement using a video.
- Navigate to the 'Videos' page and open the 'Analytics' section for a video.
- Use the 'Moments' feature to mark a moment, which sends a POST request to /GetThumbnails with the video ID.
- Replace the video ID in the request with the target private video's ID.
- Observe that the response contains a base64-encoded thumbnail from the private video.
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 private video on YouTube is meant to be visible only to its owner. The researcher found that a tool in Google Ads, used to mark moments in a video, did not check whether the person asking for a thumbnail actually owned the video. By changing the video ID in a request, they could get pictures from someone else's private video.
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.