Skip to content
YouTube man. Image courtesy of Michal Ludwiczak/Shutterstock.
Naked Security Naked Security

How one man could have deleted every video on YouTube

Kamil Hismatullin fought his desperate urge to delete all things Justin Bieber, he said.

YouTube man. Image courtesy of Michal Ludwiczak/Shutterstock.Recently, security researcher Kamil Hismatullin, as is his wont, spent a few hours poking at Google services.

In particular, he was poring over YouTube to see if he could spot any cross-site request forgery (CSRF) or cross-site scripting (XSS) issues.

But he stumbled on a far more severe bug: one that could have let him delete any video on YouTube.

He exploited the flaw by sending the identity number of a video in a post request along with any token – a very simple request that looked something like this:

POST /live_events_edit_status_ajax?action_delete_live_event=1 HTTP/1.1
Host :
event_id=<video id>&session_token=<any token>

The bug is very similar to a Facebook flaw that was uncovered in February. The Facebook vulnerability, found by researcher Laxman Muthiyah, allowed an attacker to delete any photo they could see on Facebook.

Both vulnerabilities were problems with access control and both turned up in Application Programming Interfaces (APIs) provided by the sites.

In both cases the researchers uncovered flaws that could have allowed them to create absolute havoc.

So, was it time to wave goodbye to channel “PewDiePie”? To bid hasta luego to “Smosh”?!? To say sayonara to all things Justin Bieber!??!

Unbeliebably, Hismatullin refrained from cleaning up Justin’s channel:

In general I spent 6-7 hours to research, considering that couple of hours I've fought the urge to clean up Bieber's channel haha.

…and instead reported the bug to Google, which jumped on the bug lickety-split, he said:

Although it was an early Saturday's morning in SF when I reported issue, Google sec team replied very fast, since this vuln could create utter havoc in a matter of minutes in the bad hands who can used this vulnerability to extort people or simply disrupt YouTube by deleting massive amounts of videos in a very short period of time.

He posted a proof of concept video to YouTube.

Hismatullin is actually one of the security researchers whom Google decided to invite to its new, experimental program, called Vulnerability Research Grants.

Google announced the grants, which are actually up-front awards paid to hand-picked researchers before they ever submit a bug, in January.

Hismatullin got the maximum payout, $5,000, allowable under the program rules.

Happy researcher, relieved Googlopolis, Bieber off the hook:

It was fixed in several hours, Google rewarded me $5k and luckily no Bieber videos were harmed :D

Image of YouTube courtesy of Michal Ludwiczak /


Wow that was one heck of a vulnerability, to think that something like that is even possible is scary as hell.


You have to really hate money to stay white/grey-hat….

He could have had 50K worth of fun just deleting gangnam style..


Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to get the latest updates in your inbox.
Which categories are you interested in?
You’re now subscribed!