Breaking Dailymotion: A Private Video Access Control Bypass (Part
A GraphQL query allowed fetching the encrypted ID of a private video by supplying a public playlist ID, bypassing access controls. An attacker could then use that ID to access the private video via a direct link.
Hi, It’s been a while since my last writeup, I hope to stay in touch more consistently from now on, After all One should always share the knowledge they’ve gained with others.
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 GraphQL query did not properly check whether the requester had permission to view private videos within a public playlist, returning their encrypted IDs.
Impact
An attacker could view private videos that were part of a public playlist, potentially exposing confidential content.
What the attacker needed
A public playlist containing a private video
The fix
The report assumes the issue has been patched, but does not provide details on how it was fixed.
How it was found
- Find a public playlist that contains a private video.
- Send a GraphQL query with the playlist ID to retrieve the video's encrypted ID.
- Access the private video using the URL dai.ly/[Encrypted_ID].
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.
Dailymotion lets users share private videos via special links that contain a long random-looking code. The website's API had a query that, when given a public playlist's ID, would also return the secret code for any private video in that playlist. This meant someone could get the secret code without permission and watch the private video.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.