Something Was Hidden in YouTube… Until I Checked the Page Sourc
The view count of Members-Only YouTube videos was exposed in the page source even though it was not shown in the UI, and even paid members could not see it. An attacker could read this hidden analytics metadata for gated content.
I’m Vasanth from Madurai, Tamil Nadu, a part-time bug bounty hunter who enjoys poking at web applications (responsibly 😄). I’ve been acknowledged by Google, Apple, Microsoft, GitHub, Pornhub, and 10+ organizations for responsibly reported issues.
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 server included the view count in the page data for Members-Only videos without checking whether the viewer was allowed to see it.
Impact
The impact is low: only view count information was exposed, revealing analytics metadata intended to be hidden for gated content.
What the attacker needed
Access to a Members-Only video page
The fix
The issue was fixed and rewarded.
How it was found
- Open a Members-Only video and notice the view count is not shown in the UI.
- Open the page source and search for viewCount.
- Find the view count in the page source.
- Check other Members-Only videos and see the same behaviour.
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.
Some videos on YouTube are for paying members only. The number of views for these videos was hidden on the page, but it was still written in the page's code, which anyone can view. This meant the hidden number could be read by anyone who looked at the code.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.