How I was able to see likes and dislikes count which is hidden by victim | YouTube #2
A hidden like/dislike count on a YouTube video could be viewed by an attacker by requesting the video's Shorts URL with the victim's video ID. The attacker could see the count that the uploader had chosen to hide.
This one is another way by which I was able to see like/dislike count of any video even if it sets hidden by the uploader.
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.
What the report shows
This is a follow-up to an earlier write-up about reading hidden like and dislike counts on YouTube. The feature in scope is the like/dislike counter on a video, and the control that lets an uploader hide it. The researcher found a second route to the same hidden data, this time through the Shorts player.
The setup is split between a victim and an attacker.
Victim steps:
- Upload a video.
- Edit the video.
- Disable the like count on the video.
- Save.
Attacker steps:
- Send the following request, which is the ordinary page load for a Shorts video:
GET /shorts/<short_id> HTTP/1.1Host: www.youtube.comAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8Accept-Language: en-US,en;q=0.5Accept-Encoding: gzip, deflateDNT: 1Connection: closeCookie: <cookies>
- Replace the Shorts video id with the victim's video id.
- The attacker can then see the like and dislike count.
The report links a proof-of-concept video:
That is the whole of the technical content. The report does not give a bounty amount, a severity rating, a CVSS score, a weakness classification or a disclosure date, and it does not describe a fix.
Root cause
The report does not analyse the cause. The report does not analyse the cause. All it shows is that loading the video through the Shorts path returns the hidden like and dislike figures. In other words, the setting is enforced on one presentation path but not on another.
Impact
The impact is a privacy control bypass. An uploader who has deliberately hidden the like and dislike count expects those numbers not to be visible to viewers. Through the Shorts path, any viewer can read them. The report frames this as seeing a count that the victim hid; it does not claim access to anything beyond the counts, and it does not describe any wider data exposure.
How this kind of bug works
Many platforms let a content owner suppress a piece of derived data: view counts, like counts, subscriber numbers, reaction totals. The suppression is a policy decision, and the bug class appears when that policy is enforced in the wrong place.
Two patterns are common:
- Enforcement in the view layer. The template or client component that normally shows the counter checks the owner's setting and hides the number. Any other page, API endpoint, embed, widget or alternate client that renders the same data without that check will show it.
- Enforcement in one endpoint only. A primary API endpoint filters the field, but a secondary endpoint (a batch endpoint, a mobile API, a GraphQL resolver, an internal endpoint used by another surface) returns the raw object.
The underlying data is usually still present in the backend; only its presentation is conditional. That is why the fix belongs in the data-serving layer: the response should omit or null the field whenever the owner has hidden it, regardless of which surface asked.
How to test for it
- Identify the setting. Create a test object you own and turn on the privacy control (hide like count, hide reactions, private statistics).
- Map every surface that displays that object. This includes the main watch page, the Shorts or reels player, embedded players, mobile web, the mobile app API, oEmbed-style endpoints, search results, channel listings and any GraphQL or REST endpoint the page calls.
- Capture the baseline. Load the object on the primary surface and confirm the hidden field is absent or masked.
- Replay the same object on each alternate surface. For each one, inspect both the rendered page and the network responses, since the number may be present in a JSON payload even when the UI hides it.
- Compare. A positive result is any alternate surface that returns the real count, or a payload containing the field, while the primary surface correctly withholds it.
- Confirm the value is genuine by comparing against a control object whose count is public, so you can tell a real number from a placeholder such as zero or a cached default.
Common false positives:
- The number is stale from a cache populated before the setting was enabled. Re-test after the cache expires.
- The field is present but always null or zero for hidden objects, which is correct behaviour.
- The count you see belongs to a different object because of an id mix-up between surfaces.
- The value is an estimate the platform shows publicly anyway, not the hidden figure.
How it is fixed
The standard fix is to enforce the visibility rule where the data is produced, not where it is displayed. Concretely: the service that assembles the response should check the owner's setting and omit the like and dislike fields entirely, for every consumer. Alternate surfaces should share that same serialisation path rather than each implementing their own check. Where caching is involved, cache keys should include the visibility state so a hidden object never inherits a cached public response. A regression test that requests the object through each known surface and asserts the field is absent helps keep the gap closed.
Hunting notes
This bug class tends to hide wherever a product has more than one front door to the same data: a new short-form player bolted onto an older video backend, mobile APIs that predate a privacy setting, embed and oEmbed endpoints, and internal endpoints called by clients but not by the web page. New surfaces are the best signal, because a recently shipped player often reuses an existing data endpoint without the newer policy checks.
Recon-wise, watch release notes and new UI surfaces, then diff the network traffic of the new surface against the old one for the same object. If the new surface calls a different endpoint for the same resource, that endpoint is worth testing against a hidden object.
To make the report land, show the setting enabled on an object you control, show the primary surface correctly hiding the value, and show the alternate surface returning it, ideally with a short video walking through both. Keep the claim to exactly what leaked: a count, not the underlying user data.
What happened, in plain words
YouTube lets the person who uploads a video decide whether the like and dislike numbers are shown to other people. This is a privacy setting: the uploader can switch the counter off, and viewers should then not see how many people liked or disliked the video.
The researcher found a second way to read those hidden numbers. Instead of loading the normal video page, you load the video through YouTube's Shorts player, which is the short, vertical, swipeable format. Through the Shorts page, the attacker can see the like and dislike figures for the same video even though the uploader has hidden them. So the setting works on one page and not on another.
This is a follow-up to an earlier write-up by the same researcher about reading hidden like and dislike counts on YouTube. The report does not give a bounty amount, a severity rating, a CVSS score, a weakness classification or a disclosure date, and it does not describe a fix.
The setup
The report splits the work between a victim, the uploader who owns the video, and an attacker, the person who wants to see the hidden numbers.
Victim steps:
- Upload a video.
- Edit the video.
- Disable the like count on the video.
- Save.
These steps matter because they create the condition being tested: a video whose like and dislike numbers the owner has deliberately hidden. Without a video in that state there is nothing to leak.
Attacker steps:
- Send the request below, which is the ordinary page load for a Shorts video.
- Replace the Shorts video id with the victim's video id.
- The attacker can then see the like and dislike count.
Here is the request exactly as the report gives it:
GET /shorts/<short_id> HTTP/1.1Host: www.youtube.comAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8Accept-Language: en-US,en;q=0.5Accept-Encoding: gzip, deflateDNT: 1Connection: closeCookie: <cookies>
Line by line:
GET /shorts/<short_id> HTTP/1.1is the request line.GETmeans "give me this page"./shorts/<short_id>is the address of a Shorts video, where<short_id>is the video's identifier.HTTP/1.1is the version of the language the browser and server use to talk.Host: www.youtube.comtells the server which site the request is for. One server can host many sites, so it needs to know which one you mean.Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8lists the kinds of content the browser is willing to receive, with rough preferences. It is the browser saying "a web page is best, images are fine too".Accept-Language: en-US,en;q=0.5says the browser would prefer English (United States) content.Accept-Encoding: gzip, deflatesays the browser can accept the response compressed to save bandwidth.DNT: 1is the "Do Not Track" header, a request not to be tracked. It is a preference, not a guarantee.Connection: closeasks the server to close the connection after the response instead of keeping it open.Cookie: <cookies>carries the browser's cookies. A cookie is a small piece of data the site stored in your browser earlier, usually to remember who you are. The report replaces the real value with<cookies>.
The key move is step 2: swapping the video id in the address for the victim's video id. The request itself is nothing unusual, it is the same page load any visitor makes. The bug is that this page lets the attacker see numbers the uploader asked to hide.
The report links a proof-of-concept video:
Why it matters
The impact is a privacy control bypass. An uploader who has hidden the like and dislike count expects those numbers not to be visible. Through the Shorts path, any viewer can read them. The report frames this as seeing a count the victim hid. It does not claim access to anything beyond the counts, and it does not describe any wider data exposure.
In general, how this kind of bug works
Many platforms let a content owner suppress a piece of derived data: view counts, like counts, subscriber numbers, reaction totals. The suppression is a policy decision, and the bug appears when that policy is enforced in the wrong place.
Two patterns are common:
- Enforcement in the view layer. The template or client component that normally shows the counter checks the owner's setting and hides the number. Any other page, API endpoint, embed, widget or alternate client that renders the same data without that check will show it.
- Enforcement in one endpoint only. A primary API endpoint filters the field, but a secondary endpoint (a batch endpoint, a mobile API, a GraphQL resolver, an internal endpoint used by another surface) returns the raw object.
The underlying data is usually still present in the backend; only its presentation is conditional. That is why the fix belongs in the data-serving layer: the response should omit or null the field whenever the owner has hidden it, regardless of which surface asked.
In general, how to test for it
- Identify the setting. Create a test object you own and turn on the privacy control (hide like count, hide reactions, private statistics).
- Map every surface that displays that object. This includes the main watch page, the Shorts or reels player, embedded players, mobile web, the mobile app API, oEmbed-style endpoints, search results, channel listings and any GraphQL or REST endpoint the page calls.
- Capture the baseline. Load the object on the primary surface and confirm the hidden field is absent or masked.
- Replay the same object on each alternate surface. For each one, inspect both the rendered page and the network responses, since the number may be present in a JSON payload even when the UI hides it.
- Compare. A positive result is any alternate surface that returns the real count, or a payload containing the field, while the primary surface correctly withholds it.
- Confirm the value is genuine by comparing against a control object whose count is public, so you can tell a real number from a placeholder such as zero or a cached default.
Common false positives:
- The number is stale from a cache populated before the setting was enabled. Re-test after the cache expires.
- The field is present but always null or zero for hidden objects, which is correct behaviour.
- The count you see belongs to a different object because of an id mix-up between surfaces.
- The value is an estimate the platform shows publicly anyway, not the hidden figure.
In general, how it is fixed
The standard fix is to enforce the visibility rule where the data is produced, not where it is displayed. Concretely: the service that assembles the response should check the owner's setting and omit the like and dislike fields entirely, for every consumer. Alternate surfaces should share that same serialisation path rather than each implementing their own check. Where caching is involved, cache keys should include the visibility state so a hidden object never inherits a cached public response. A regression test that requests the object through each known surface and asserts the field is absent helps keep the gap closed.
In general, where to look
This bug class tends to hide wherever a product has more than one front door to the same data: a new short-form player bolted onto an older video backend, mobile APIs that predate a privacy setting, embed and oEmbed endpoints, and internal endpoints called by clients but not by the web page. New surfaces are the best signal, because a recently shipped player often reuses an existing data endpoint without the newer policy checks.
Watch release notes and new UI surfaces, then compare the network traffic of the new surface against the old one for the same object. If the new surface calls a different endpoint for the same resource, that endpoint is worth testing against a hidden object.
To make the report land, show the setting enabled on an object you control, show the primary surface correctly hiding the value, and show the alternate surface returning it, ideally with a short video walking through both. Keep the claim to exactly what leaked: a count, not the underlying user data.
Glossary
- Like and dislike count: the number of people who pressed the like or dislike button on a video.
- Uploader: the person who posted the video and controls its settings.
- Shorts: YouTube's short, vertical video format with its own player page.
- Privacy control: a setting that limits who can see something, here the like and dislike numbers.
- Bypass: getting around a restriction that is supposed to apply to you.
- Request: a message a browser sends to a server asking for a page or data.
- GET: the request method used to ask for a page or resource without changing anything.
- HTTP: the language browsers and servers use to exchange requests and responses.
- Header: a labelled line in a request or response carrying extra information, such as the host or accepted formats.
- Host: the header naming which site the request is addressed to.
- Cookie: a small piece of data a site stores in your browser, often to remember who you are.
- Video id: the unique identifier of a video, used in its address.
- Endpoint: a specific address on a server that returns a particular piece of data or page.
- API: a way for software to request data from a service, usually returning structured data rather than a web page.
- GraphQL: a query language some APIs use to ask for exactly the fields a client wants.
- REST: a common style of API built around addresses and standard request methods.
- JSON: a text format for structured data, common in API responses.
- Payload: the body of data in a request or response.
- View layer: the part of an application that decides what is displayed to the user.
- Serialisation: turning data into the format sent over the network, such as JSON.
- Cache: a store of previously produced responses kept to answer faster next time.
- Cache key: the label used to look up a cached response; if it does not include the visibility state, a hidden object can receive a public cached answer.
- False positive: a result that looks like a bug but is not.
- Regression test: an automated test that checks a fixed bug stays fixed.
- oEmbed: a standard way for one site to ask another for embed details about a URL.
- CVSS: a scoring system for rating the severity of a vulnerability.
- PoC: proof of concept, a demonstration that the bug is real.