How I was able to see likes and dislikes count even though is hidden by victim | YouTube #4
The like and dislike counts on YouTube Shorts were meant to be hidden when the uploader chose that option, but the counts could still be seen. An attacker could view the hidden counts by opening the victim's Shorts video.
The original lives on bloggerrando.blogspot.com
We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
What the report shows
The report concerns a video's setting that controls whether the like and dislike counts are shown to viewers. The researcher reports that a Short whose counts had been hidden by its owner could still be read by another user.
The reproduction is short and consists of two halves: a setup phase performed as the video owner, and a viewing phase performed as the attacker.
Setup, as the owner:
- Upload a video as a Short.
- Edit the video.
- Change the setting from "Show how many viewers like and dislike this video" to "Don't show how many viewers like and dislike this video".
- Save.
Viewing, as the attacker:
- Open the victim's video through one of the two Shorts URLs given in the report:
https://www.youtube.com/shorts/victim_video_id
https://m.youtube.com/shorts/victim_video_id
The report states the outcome plainly: the like and dislike counts of the victim's Short can be leaked even though the owner chose to hide them. No request, response, header, parameter or version is included, and the report gives no bounty amount, severity rating or fix information. The only artefact is the pair of URLs above, with victim_video_id standing in for the real identifier.
Root cause
The report does not analyse the cause, so anything here is inference. The likely mistake is that the visibility preference is enforced only in the presentation layer of one client, while the underlying data that feeds the counts is still returned to anyone who asks for the video. When the owner hides the counts, the interface stops rendering them, but the server-side response for the Shorts page or its data call still carries the numbers, and a client that reads the response rather than the rendered page sees them. The report does not say which of these applies.
Impact
The impact is that the like and dislike counts of the victim's Short can be leaked even though the owner chose to hide them. The like and dislike counts of the victim's Short can be obtained even though the owner chose to hide them. The report does not claim anything beyond disclosure of the counts: there is no suggestion of access to voter identities, no suggestion of modification, and no suggestion that the counts of private or unlisted content are affected. The severity therefore rests on how much the platform's users rely on that setting, which the report does not discuss.
How this kind of bug works
This resembles a broken access control problem, and more specifically a privacy preference enforced only on the client side, though the report does not analyse the cause. Features such as hidden like counts, hidden subscriber counts, private playlists and disabled comments all share a shape: a per-object flag stored with the object, a rendering path that respects the flag, and one or more data paths that serve the object's fields. The bug appears when the flag is checked at render time but not at serialisation time, or when it is checked in one endpoint and forgotten in a sibling endpoint that returns the same object.
The reason it happens is architectural. Modern front ends fetch structured data and draw the interface from it, so the server has to decide what to include in that data. If the decision is made in the template or in the client, the data has already left the server. Mobile apps, alternate hostnames, embedded players, RSS and oEmbed style endpoints, and internal APIs used by the first-party clients are all separate serialisation paths, and each one has to apply the same rule.
Defences are straightforward in principle: enforce the preference on the server, at the point where the object is serialised, and apply it to every field that reveals the hidden quantity, including derived fields such as ratios or totals. Where a count is hidden, omit it rather than sending it with a display flag. Keep a single authorisation function for the object and call it from every endpoint that returns it, and add regression tests that request the object through each surface as a non-owner.
How to test for it
- Identify a feature with a per-object privacy toggle. Create two accounts, one as owner and one as viewer, and set the toggle to the private state on the owner's object.
- Load the object as the viewer in the normal interface and confirm the value is not displayed. This is the baseline.
- Capture the traffic that produced that page: the document request, any data or GraphQL style calls it makes, and any player configuration embedded in the page.
- Search the captured responses for the hidden value. A positive result is the exact number appearing in a response body, a JSON field, an embedded configuration blob or a header, when the interface showed nothing.
- Repeat the same object through every other surface you can reach: the mobile host, the app-specific API host, the embed URL, the player endpoint, any oEmbed or metadata endpoint, and any endpoint that returns a list containing the object. Compare what each returns.
- If the value is absent everywhere, try the same object as an unauthenticated client and as a logged-in non-owner, since some paths only apply the rule to one of the two.
A positive result is unambiguous: the hidden quantity is present in a response the viewer is entitled to receive. Common false positives are a cached page from before the toggle was set, a value that is a placeholder or a rounded bucket rather than the real count, and a count that belongs to a different object on the same page. Confirm by changing the underlying number, for example by adding a like from a third account, and checking that the leaked value moves.
How it is fixed
Enforce the preference server side at serialisation time, so the field is omitted from every response for viewers who are not allowed to see it. Apply the same rule across all hosts, clients and embedded surfaces, and audit sibling endpoints that return the same object. Do not rely on a display flag in the payload. Add tests that fetch the object through each surface as a non-owner and assert the field is absent, and check derived values as well as the raw counts.
Hunting notes
Privacy toggles are common on social and media platforms: hidden counts, private lists, disabled comments, hidden membership, restricted profiles. The productive habit is to treat every toggle as a question about which endpoint forgot it. Alternate hostnames and mobile APIs are the usual suspects, because they are often built and maintained separately from the main web client. Recon signals worth watching are a mobile subdomain that serves the same objects, first-party app API hosts, embed and player endpoints, and any endpoint whose response contains fields the interface never shows.
To make a report land, show the toggle state, show the interface hiding the value, and show the raw response containing it, with the request that produced it. Demonstrate that the value is live by changing it and observing the change, and state clearly who can see it and under what conditions. Keep the demonstration to your own accounts and your own content.
What happened, in plain words
YouTube Shorts are short vertical videos. A video has a like count and a dislike count, and its owner can choose whether those numbers are shown to viewers or hidden. This report is about a setting that is supposed to hide them, and about the fact that the numbers could still be read anyway.
The researcher describes two phases. First, the owner of a video hides the counts. Then, a different person opens that video and can still get the like and dislike counts out of it. The second person is simply another user who opens the video.
Phase one: the owner hides the counts
- Upload a video as a Short.
- Edit the video.
- Change the setting from "Show how many viewers like and dislike this video" to "Don't show how many viewers like and dislike this video".
- Save.
Step 3 is the important one. It is a privacy toggle: a switch attached to one specific video that says who may see a particular piece of information. The owner is choosing not to show how many viewers liked and disliked the video. Step 4 saves that choice.
Phase two: another user opens the video
- Open the victim's video through one of the two Shorts addresses given in the report:
https://www.youtube.com/shorts/victim_video_id
https://m.youtube.com/shorts/victim_video_id
Both lines are ordinary web addresses. https:// is the secure version of the protocol a browser uses to fetch pages. www.youtube.com is the main YouTube site, and m.youtube.com is the mobile version of the same site, the one a phone browser is usually sent to. /shorts/ is the part of the address that says "this is a Short", and victim_video_id is a placeholder standing in for the real identifier of the video, the short code that uniquely points at one upload. The report uses the word victim for the owner whose video is being looked at.
The report states the result plainly: the like and dislike counts of the victim's Short can be leaked even though the owner chose to hide them. Leaked here means the numbers reach someone who was not meant to receive them.
That is the whole of the demonstration. The report contains no captured request, no response, no header, no parameter and no version number, and it gives no bounty amount, no severity rating and no information about a fix. The two addresses above are the only technical artefact in it.
Why this matters
When someone switches off the display of like and dislike counts, they are making a privacy choice. A bug that ignores that choice means the choice was not really honoured. The report claims only that the like and dislike counts can be leaked; it says nothing about anything else. How serious the issue is depends on how much users rely on that setting, which the report does not discuss.
In general, how this kind of bug works
This resembles a broken access control problem, and more specifically a privacy preference enforced only on the client side, though the report does not analyse the cause. Access control means deciding who is allowed to see or do what. Client-side means the decision is made in the browser, in the page the user is looking at, rather than on the server, the computer that stores the video and its numbers.
Features like hidden like counts, hidden subscriber counts, private playlists and disabled comments all share the same shape. There is a flag stored with the object, a display path that respects the flag, and one or more data paths that hand out the object's fields. The bug appears when the flag is checked while drawing the page but not while preparing the data, or when one address checks it and a sibling address returning the same object forgets to.
Modern websites make this easy to get wrong. The page you see is usually built by the browser from structured data fetched separately, so the server has to decide what to put into that data. If the decision is made later, in the page itself, the data has already left the server. Mobile sites, apps, embedded players and internal interfaces used by the site's own clients are all separate paths, and each one has to apply the same rule.
The defence is straightforward in principle: enforce the preference on the server, at the moment the object is prepared for sending, and apply it to every field that reveals the hidden quantity. Where a count is hidden, leave it out rather than sending it with a note saying not to display it. Keep one permission check for the object and call it from every address that returns it, and add tests that request the object through each surface as a non-owner.
In general, how to test for it
- Find a feature with a per-object privacy toggle. Create two accounts, one as owner and one as viewer, and set the toggle to the private state on the owner's object.
- Load the object as the viewer in the normal interface and confirm the value is not displayed. This is your baseline, the state you compare everything else against.
- Capture the traffic that produced that page: the page request itself, any data calls it makes, and any player configuration embedded in the page. Browser developer tools, opened with F12, show this traffic.
- Search the captured responses for the hidden value. A positive result is the exact number appearing in a response body, a data field, an embedded configuration block or a header, when the interface showed nothing.
- Repeat the same object through every other surface you can reach: the mobile site, the app-specific interface, the embed address, the player address, and any address that returns a list containing the object. Compare what each returns.
- If the value is absent everywhere, try again as a logged-out visitor and as a logged-in non-owner, since some paths only apply the rule to one of the two.
A positive result is unambiguous: the hidden quantity is present in a response the viewer is allowed to receive. Common false positives are a cached page from before the toggle was set, a placeholder or rounded bucket rather than the real count, and a count belonging to a different object on the same page. Confirm by changing the underlying number, for example by adding a like from a third account, and checking that the leaked value moves.
In general, how it is fixed
Enforce the preference on the server when the data is prepared, so the field is left out of every response for viewers who are not allowed to see it. Apply the same rule across all hosts, clients and embedded surfaces, and audit sibling addresses that return the same object. Do not rely on a display flag in the payload. Add tests that fetch the object through each surface as a non-owner and assert the field is absent, and check derived values such as totals as well as the raw counts.
In general, where to look
Privacy toggles are common on social and media platforms: hidden counts, private lists, disabled comments, hidden membership, restricted profiles. The productive habit is to treat every toggle as a question about which address forgot it. Alternate hostnames and mobile interfaces are the usual suspects, because they are often built and maintained separately from the main website. Signals worth watching are a mobile subdomain serving the same objects, app-specific interfaces, embed and player addresses, and any response containing fields the interface never shows.
To make a report land, show the toggle state, show the interface hiding the value, and show the raw response containing it, together with the request that produced it. Demonstrate that the value is live by changing it and observing the change, and state clearly who can see it and under what conditions. Keep the demonstration to your own accounts and your own content.
Glossary
- YouTube Shorts: YouTube's format for short vertical videos.
- Like and dislike counts: the numbers of viewers who gave a video a positive or negative reaction.
- Privacy toggle: a switch attached to one object that controls who may see a particular piece of information.
- Owner: the user who uploaded the video and controls its settings.
- Attacker: in this report, another user of the site who views the owner's video.
- Victim: the owner whose hidden numbers are exposed.
- Leak: a situation where information reaches someone who was not meant to receive it.
- URL: a web address, such as the two Shorts addresses in the report.
- HTTPS: the secure version of the protocol a browser uses to fetch pages.
- Hostname: the part of an address naming the site, such as
www.youtube.comorm.youtube.com. - Mobile site: the version of a website served to phone browsers, here
m.youtube.com. - Video ID: the short code in an address that uniquely identifies one video;
victim_video_idis a placeholder for it. - Request: the message a browser sends to a server asking for a page or data.
- Response: the message the server sends back, containing the page or the data.
- Header: a labelled line of extra information attached to a request or response.
- Parameter: a named value passed along with a request.
- Server: the computer that stores the video and its numbers and answers requests.
- Client: the browser or app that asks the server for things and displays them.
- Client-side: happening in the browser rather than on the server.
- Server-side: happening on the server, before anything is sent to the browser.
- Broken access control: a class of bug where the rules about who may see or do what are missing or can be bypassed.
- Privacy preference: a user's stored choice about who may see something.
- Flag: a stored on/off value attached to an object, such as "counts hidden".
- Serialisation: the step where the server turns an object into data to send, deciding which fields to include.
- Endpoint: one address on a server that answers a particular kind of request.
- Sibling endpoint: a different address that returns the same kind of object.
- Payload: the data carried inside a request or response.
- Developer tools: the panel built into browsers, opened with F12, that shows requests and responses.
- Baseline: the known normal state you compare later observations against.
- False positive: a result that looks like a bug but is not one.
- Cache: a stored copy of a page or response, which can be out of date.
- Regression test: an automated test that checks a fixed bug stays fixed.
- Severity: a rating of how serious a bug is.
- Bounty: a payment some programmes make for a valid security report.