News for hackers. Stuff that matters.
Re:“Older unlisted videos will be made private unless you op... by judge2020 on Wednesday June 23, 2021 @06:14PM (#27611209)
So the reasoning makes it sound like there was potentially an exploit that made it easy to find unlisted videos? Were the video IDs deterministic perhaps?
Re:“Older unlisted videos will be made private unless you op... by quantumofalpha on Wednesday June 23, 2021 @06:36PM (#27611436)
Yes, exactly. Video ID is just a base64'ed DES-encrypted primary int64 video key from MySQL. It used to be sequentially incremented until at some point they switched to randomly generated primary keys. Any (ex-) engineer who snapped a copy of the encryption key (it used to sit right in the code for anyone to see) can enumerate all videos from YT until that moment, including unlisted - which are only protected by secrecy of that one key. If the key leaks, then also anyone in the world can. That's what they are afraid of here. Source: worked for YT.
Re:“Older unlisted videos will be made private unless you op... by ktm8 on Wednesday June 23, 2021 @06:42PM (#27611494)
Just for curiosity, how would YT deal with ID collision ?

Edit: Before the scheme change I mean

Re:“Older unlisted videos will be made private unless you op... by Thorrez on Thursday June 24, 2021 @12:30AM (#27614010)
>base64'ed DES-encrypted primary int64

Block ciphers (such as DES) don't collide. If they did there would be no way to decrypt them because a block could be decrypted into multiple valid plaintexts.

Re:“Older unlisted videos will be made private unless you op... by quantumofalpha on Wednesday June 23, 2021 @07:12PM (#27611752)
Not sure about technical details for that but perhaps something like https://vitess.io/docs/reference/features/vitess-sequences/. Vitess itself is a project that grew out of YouTube's needs to scale and shard their MySQL DB.
Re:“Older unlisted videos will be made private unless you op... by remram on Wednesday June 23, 2021 @06:51PM (#27611565)
Probably they just roll again. You can even implement that in a stored procedure.
Re:“Older unlisted videos will be made private unless you op... by root_axis on Wednesday June 23, 2021 @06:47PM (#27611530)
Try again? Just a guess.
Re:“Older unlisted videos will be made private unless you op... by carl_dr on Wednesday June 23, 2021 @06:33PM (#27611403)
Maybe their old scheme, when divided by the number of videos, was getting to the point where it was feasible you could brute force finding unlisted videos.

The old scheme had 7.3 x 10^19 ids (11 chars, base 64, thanks Tom Scott!). Suspiciously close to the max value of a 64-bit int, hmmm …

Assume a billion videos and you’re down to 10^10 - a one in a 10 billion chance isn’t much chance, but it’s far from secure.

(I’m ignoring the fact that only a small %age of videos are unlisted I guess, but I think the point still stands.)