Skip to content
Access control Disclosed report Beginner

Уязвимость дает возможность смотреть кто лайкал приватным фото или видео

pisarenko Follow

Originally disclosed on HackerOne

Bounty$100 Low View original
  • Triaged in 22 days
  • Fixed in 14 months
  • Paid in 16 months
  • Disclosed after 2.7 years
## Summary by the program

Отсутствие необ�
одимы�
 проверок при получении списка отметок "Мне нравится".

## Summary by the researcher

bounty 100$ similar report received more bounty - https://hackerone.com/reports/64754 - 300$ 

███████████████████████████
███████▀▀▀░░░░░░░▀▀▀███████
████▀░░░░░░░░░░░░░░░░░▀████ 
███│░░░░░░░░░░░░░░░░░░░│███ 
██▌│░░░░░░░░░░░░░░░░░░░│▐██ 
██░└┐░░░░░░░░░░░░░░░░░┌┘░██ 
██░░└┐░░░░░░░░░░░░░░░┌┘░░██ 
██░░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██ 
██▌░│██████▌░░░▐██████│░▐██ 
███░│▐███▀▀░░▄░░▀▀███▌│░███ 
██▀─┘░░░░░░░▐█▌░░░░░░░└─▀██ 
██▄░░░▄▄▄▓░░▀█▀░░▓▄▄▄░░░▄██ 
████▄─┘██▌░░░░░░░▐██└─▄████
█████░░▐█─┬┬┬┬┬┬┬─█▌░░█████
████▌░░░▀┬┼┼┼┼┼┼┼┬▀░░░▐████ 
█████▄░░░└┴┴┴┴┴┴┴┘░░░▄█████
███████▄░░░░░░░░░░░▄███████ 
██████████▄▄▄▄▄▄▄██████████ 
███████████████████████████

The original report as published on HackerOne, by pisarenko. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is VK.com, and the feature involved is the list of marks on "Мне нравится" (the likes on a user's content). The program's own summary states the problem plainly: the necessary checks were missing when the list of likes was retrieved. The weakness is classified as Cross-Site Request Forgery (CSRF), the severity is low, and the researcher, pisarenko, received a bounty of 100 USD. The report was disclosed on 24 June 2018.

The researcher's summary is short and mostly comparative. It records the bounty of 100 USD and notes that a similar report, https://hackerone.com/reports/64754, received a larger bounty of 300 USD. The rest of the submission is an ASCII-art figure, reproduced here exactly as it appears in the report:

The report does not include the request that was used, the endpoint, the parameters, or the response that demonstrated the issue. It also does not describe the fix that was applied. What it gives is the program's classification and the researcher's note on the reward.

Root cause

The program's summary points to missing checks when the list of likes is fetched. The program's summary points to missing checks when the list of likes is fetched, but the report does not show the request, so the exact mechanism cannot be confirmed. That would mean the endpoint relies on the browser sending the user's session automatically, without a token or origin check that ties the request to a page the user actually intended to load.

Because the report does not show the request, the exact mechanism (whether the response is readable cross-origin, whether the action is state-changing, or whether the check is absent on a read path) cannot be confirmed from the text. The classification as CSRF is the program's, and the missing-check description is the program's summary.

Impact

The title of the report frames the impact: the vulnerability makes it possible to see who liked a private photo or video.

How this kind of bug works

CSRF abuses the fact that browsers attach a user's credentials (cookies, and in some setups HTTP authentication) to requests automatically, regardless of which site caused the request. If a server treats the mere presence of a valid session as proof of user intent, any page on the internet can make the victim's browser send a request to that server and have it accepted.

Classic CSRF targets state-changing actions, such as changing an email address or password. A read-oriented variant appears when an endpoint returns sensitive data and the application does not restrict who can cause that response to be produced or read. Two things make such a variant exploitable: the request can be forged from a foreign origin, and the response can be observed by the attacker, for example through a cross-origin read primitive, a JSON hijacking-style technique, or side channels. Where the response cannot be read, the issue may still matter if the request itself changes state.

The defences are well established: synchroniser tokens tied to the session, double-submit cookies, checking the Origin and Referer headers, requiring a custom header that simple cross-origin forms cannot set, and setting SameSite on session cookies. For read endpoints, correct CORS configuration (no wildcard with credentials, explicit allowlists) and returning data only in response to requests the application itself initiated are the relevant controls.

How to test for it

  1. Identify endpoints that return sensitive data or perform actions, especially ones tied to the current session: like lists, follower lists, private settings, message previews.
  2. Capture the request in a proxy and note which parts authenticate it: cookies, headers, tokens in the body or URL.
  3. Replay the request with the token removed or altered. If it still succeeds, the endpoint does not enforce that control.
  4. Build a page on a different origin that causes the victim's browser to issue the same request, using a form, an image tag, or a script tag as appropriate for the method.
  5. Load that page while authenticated as a test account and observe whether the request is accepted and whether the response can be read from the attacking origin.

A positive result is a request that the server processes as the victim without any proof of intent, combined with either a state change or a way to read the response. Common false positives include endpoints that require a header a cross-origin page cannot set, requests that fail only because the test browser blocked third-party cookies, and cases where the response is returned but cannot be read by the attacker, which reduces the finding to a state-change issue or to nothing at all. Always confirm with a clean browser profile and the same cookie settings a real victim would have.

How it is fixed

  • Require an anti-CSRF token on every state-changing and sensitive read request, validated server-side against the session.
  • Verify the Origin and, where available, the Referer header against an allowlist.
  • Require a custom header for API calls so that simple cross-origin requests cannot reach the endpoint.
  • Set session cookies with SameSite=Lax or SameSite=Strict where the application flow allows it.
  • Restrict CORS to explicit trusted origins and never combine a wildcard with credentials.

Hunting notes

CSRF and missing-check bugs tend to hide in older parts of an application, in endpoints added for mobile clients or internal tools, and in read APIs that were assumed to be harmless because they do not change data. Likes, views, follower lists, and similar social signals are good candidates because they expose relationships between users and are often served by simple endpoints with minimal protection.

Useful recon signals include endpoints that accept GET requests for sensitive data, responses that vary with the session cookie, and APIs that return JSON without any token parameter. Comparing how a modern endpoint and an older one authenticate the same kind of request often reveals the gap.

To get a report accepted, show the full request and response, demonstrate the cross-origin trigger, and make the impact concrete: whose data becomes visible, under what conditions, and to whom. Where the response cannot be read, say so and explain what remains exploitable. A clear reproduction with a test account and a short video of the attack page working is usually what separates an accepted report from a disputed one.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

VK.com is a large social network. One of its features is a list of likes: when someone marks a photo or video with "Мне нравится" ("I like it"), the platform keeps a record of who did so.

The report describes a gap in that protection. According to the program's own summary, the necessary checks were missing when the list of likes was retrieved. The weakness was classified as Cross-Site Request Forgery (CSRF), the severity was low, and the researcher, pisarenko, received a bounty of 100 USD. The report was disclosed on 24 June 2018.

The title states the consequence directly: the vulnerability makes it possible to see who liked a private photo or video.

The researcher's own summary is brief. It records the 100 USD bounty and points out that a similar report, https://hackerone.com/reports/64754, received a larger bounty of 300 USD. The rest of the submission is an ASCII-art figure, reproduced here exactly as it appears in the report:

The report does not include the request that was used, the endpoint, the parameters, or the response that demonstrated the issue, and it does not describe the fix that was applied. What it gives is the program's classification and the researcher's note on the reward.

In general, how this kind of bug works

A request is simply a message your browser sends to a website's server, for example "give me the list of likes for this photo". A cookie is a small piece of data the site stored in your browser earlier, usually after you logged in, and the browser attaches it to every request sent to that site. That is how the server recognises you: the cookie is your session, a bit like a wristband you get at an event and show at every door without being asked again.

CSRF abuses exactly that automatic behaviour. Because the browser attaches your cookie no matter which page caused the request, a page on a completely different site can make your browser send a request to VK.com, and the server will see a valid session and treat it as you. If the server only checks that the cookie is present, and never checks that you actually meant to make that request, the forged request is accepted.

Classic CSRF targets actions that change something, such as changing an email address or a password. A read-oriented variant appears when an endpoint returns sensitive data and the application does not restrict who can cause that response to be produced or read. Two things make such a variant exploitable: the request can be forged from a foreign origin, and the response can be observed by the attacker, for example through a cross-origin read primitive, a JSON hijacking-style technique, or side channels. Where the response cannot be read, the issue may still matter if the request itself changes state.

The defences are well established: synchroniser tokens tied to the session, double-submit cookies, checking the Origin and Referer headers, requiring a custom header that simple cross-origin forms cannot set, and setting SameSite on session cookies. For read endpoints, correct CORS configuration (no wildcard with credentials, explicit allowlists) and returning data only in response to requests the application itself initiated are the relevant controls.

In general, how to test for it

  1. Identify endpoints that return sensitive data or perform actions, especially ones tied to the current session: like lists, follower lists, private settings, message previews.
  2. Capture the request in a proxy and note which parts authenticate it: cookies, headers, tokens in the body or URL.
  3. Replay the request with the token removed or altered. If it still succeeds, the endpoint does not enforce that control.
  4. Build a page on a different origin that causes the victim's browser to issue the same request, using a form, an image tag, or a script tag as appropriate for the method.
  5. Load that page while authenticated as a test account and observe whether the request is accepted and whether the response can be read from the attacking origin.

A positive result is a request that the server processes as the victim without any proof of intent, combined with either a state change or a way to read the response. Common false positives include endpoints that require a header a cross-origin page cannot set, requests that fail only because the test browser blocked third-party cookies, and cases where the response is returned but cannot be read by the attacker, which reduces the finding to a state-change issue or to nothing at all. Always confirm with a clean browser profile and the same cookie settings a real victim would have.

In general, how it is fixed

  • Require an anti-CSRF token on every state-changing and sensitive read request, validated server-side against the session.
  • Verify the Origin and, where available, the Referer header against an allowlist.
  • Require a custom header for API calls so that simple cross-origin requests cannot reach the endpoint.
  • Set session cookies with SameSite=Lax or SameSite=Strict where the application flow allows it.
  • Restrict CORS to explicit trusted origins and never combine a wildcard with credentials.

In general, where to look

CSRF and missing-check bugs tend to hide in older parts of an application, in endpoints added for mobile clients or internal tools, and in read APIs that were assumed to be harmless because they do not change data. Likes, views, follower lists, and similar social signals are good candidates because they expose relationships between users and are often served by simple endpoints with minimal protection.

Useful recon signals include endpoints that accept GET requests for sensitive data, responses that vary with the session cookie, and APIs that return JSON without any token parameter. Comparing how a modern endpoint and an older one authenticate the same kind of request often reveals the gap.

To get a report accepted, show the full request and response, demonstrate the cross-origin trigger, and make the impact concrete: whose data becomes visible, under what conditions, and to whom. Where the response cannot be read, say so and explain what remains exploitable. A clear reproduction with a test account and a short video of the attack page working is usually what separates an accepted report from a disputed one.

Glossary

  • CSRF (Cross-Site Request Forgery): a trick where a page on one site makes your browser send a request to another site, which accepts it because your login cookie is attached automatically.
  • Request: a message your browser sends to a server, such as asking for a page or a list of data.
  • Response: the message the server sends back, containing the data or the result of the action.
  • Cookie: a small piece of data a site stores in your browser, often used to remember that you are logged in.
  • Session: the period during which a site recognises you as a logged-in user, usually carried by a cookie.
  • Endpoint: a specific address on a server that handles one kind of request, such as the one that returns a like list.
  • Token (anti-CSRF token): a secret value the site puts into its own pages and expects back with a request, proving the request came from the site itself.
  • Origin: the combination of scheme, host and port that identifies where a page or request comes from; pages from different origins are kept apart by the browser.
  • Referer header: a field in a request that tells the server which page the request was made from.
  • SameSite: a cookie setting that controls whether the cookie is sent along with requests caused by other sites.
  • CORS: the browser rule set that decides whether a page from one origin may read a response from another origin.
  • JSON hijacking: a technique for reading data returned as JSON from another origin in ways the browser rules were meant to prevent.
  • Side channel: an indirect signal, such as timing or size, that leaks information even when the response itself cannot be read.
  • Proxy: a tool that sits between your browser and the server so you can see and modify every request and response.
  • Replay: sending a captured request again, possibly with parts removed or changed, to see how the server reacts.
  • False positive: a finding that looks like a vulnerability but is not exploitable in practice.
  • Bounty: a reward a company pays a researcher for reporting a valid security issue.
  • Severity: a rating of how serious a vulnerability is, here low.
  • Disclosure: the point at which a report is made public.

More by pisarenko

View all

29 more disclosed reports, best first.

More from VK.com

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.