Просмотр аватара и название частной группы
- Triaged in under an hour
- Fixed in 4 days
- Paid in 18 days
- Disclosed after 8 months
Summary by the program
Просмотр аватара и названия частной группы.
Summary by the researcher
Уязвимость в мобильной версии ! В ПОЛНОЙ версии ОНА НЕ РАБОТАЕТ !
Мы все yмpём
███████████████████████████ ███████▀▀▀░░░░░░░▀▀▀███████ ████▀░░░░░░░░░░░░░░░░░▀████ ███│░░░░░░░░░░░░░░░░░░░│███ ██▌│░░░░░░░░░░░░░░░░░░░│▐██ ██░└┐░░░░░░░░░░░░░░░░░┌┘░██ ██░░└┐░░░░░░░░░░░░░░░┌┘░░██ ██░░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██ ██▌░│██████▌░░░▐██████│░▐██ ███░│▐███▀▀░░▄░░▀▀███▌│░███ ██▀─┘░░░░░░░▐█▌░░░░░░░└─▀██ ██▄░░░▄▄▄▓░░▀█▀░░▓▄▄▄░░░▄██ ████▄─┘██▌░░░░░░░▐██└─▄████ █████░░▐█─┬┬┬┬┬┬┬─█▌░░█████ ████▌░░░▀┬┼┼┼┼┼┼┼┬▀░░░▐████ █████▄░░░└┴┴┴┴┴┴┴┘░░░▄█████ ███████▄░░░░░░░░░░░▄███████ ██████████▄▄▄▄▄▄▄██████████ ███████████████████████████
What the report shows
The target is VK.com, and the feature in question is a private group: its avatar and its name. The program's own summary of the issue is a single line, which translates as "viewing the avatar and the name of a private group".
The researcher's summary is equally short. It states that the vulnerability is in the mobile version of the site and that it does not work in the full version:
That is the whole technical content of the report. No endpoint, parameter, header, version number or HTTP exchange is given, so there is nothing to reproduce here beyond the two statements above. The rest of the submission is a piece of ASCII art with the line "Мы все yмpём" above it, which carries no technical information.
The outcome recorded for the report is a bounty of 100.00 USD, a severity of low, and disclosure on 2018-02-24. The report does not describe a fix, and it does not name the affected mobile client or the request that was used.
Root cause
The report does not analyse the cause. The report does not analyse the cause. The only hint is that the behaviour appears in the mobile version and not in the full version. Whether the gap sits in the mobile web front end, in an API the mobile client calls, or in caching of the group's media is not stated.
Impact
The impact described is limited to disclosure of two pieces of group metadata: the avatar image and the group name. The report does not claim access to posts, members, files or any other content of the private group, and it does not describe how widely the data could be enumerated. The low severity and the modest bounty are consistent with a metadata leak of this size.
How this kind of bug works
Private groups rely on an access check that runs before any group data is returned. The check is usually applied in one place, such as a page controller or a shared API gateway, and then assumed to hold everywhere. Problems appear when the same data is served through a second path that was built separately: a mobile web view, a lightweight API used by a mobile app, an image or media endpoint that serves files by identifier, or a cached copy of a page. If that second path resolves the object by ID and returns it without consulting the viewer's membership, the private object becomes readable.
A second common variant is inconsistent object scoping: the check confirms that the requester is logged in, or that the group exists, but not that the requester belongs to it. A third is caching, where a response generated for a member is stored and later served to a non-member because the cache key omits the viewer's identity or authorisation state.
The defences are the same in each case: a single authorisation function applied to every path that returns group data, checks that run on the object rather than on the route, cache keys that include the viewer's access level, and tests that exercise each client (full site, mobile site, mobile API, media endpoints) against a non-member account.
How to test for it
- Create two accounts: one that is a member of a private group and one that is not. Record the group's numeric identifier and the identifiers of its avatar and other media.
- As the non-member, request the group through every surface you can find: the full site page, the mobile site, the mobile API endpoints the app uses, and any media or image URL that serves the avatar. Capture the requests from the mobile app with an intercepting proxy so you see the real endpoints rather than guessing them.
- Compare responses. A positive result is any response to the non-member that contains the group name, the avatar image, or a media URL that resolves to the avatar, where the full site correctly refuses the same request.
- Try the same object identifiers with the member's session and with no session at all, to see whether the check is on authentication, on membership, or absent.
- Check whether the leaked media URL is stable and guessable, and whether it can be fetched without any session, which would show the data is effectively public.
Common false positives: the group name appearing in a generic error page or in a search suggestion that is intentionally public; an avatar served from a CDN with a signed URL that expires, where the signature is the actual control; a cached response that only appears for your own account because of a shared cookie; and public groups that merely look private because of their settings. Confirm with a second, unrelated non-member account before reporting.
How it is fixed
The standard fix is to route every read of group data, including name and avatar, through one authorisation check that verifies the viewer's membership of the private group, and to apply it to the mobile site, the mobile API and the media endpoints alike. Media for private groups should be served through URLs that require the same check, or through short-lived signed URLs issued only after it passes. Cache keys should include the viewer's access level so a member's response is never served to a non-member. Regression tests should request each private object from a non-member account across every client.
Hunting notes
This class of bug hides where a product has more than one front end: mobile web, native app APIs, legacy endpoints, and media or thumbnail services. Recon signals include an API host used only by the mobile app, endpoints that take a numeric group or object ID, and image URLs whose path contains an identifier rather than an opaque token. Comparing the full site and the mobile site for the same object is a common way to surface this kind of gap.
What happened, in plain words
VK.com is a large social network. One of its features is the private group: a community that only its members are supposed to see. A private group still has a name and an avatar (the small picture shown next to it), but those two things are meant to stay hidden from people who are not members.
The report is about exactly that: someone who is not a member could see the avatar and the name of a private group. The program's own one-line summary says as much, translated as "viewing the avatar and the name of a private group".
The researcher's summary is just as short. It says the problem is in the mobile version of the site and that it does not work in the full version:
In plain words: the bug lives in the mobile version, and in the full version it does not work. That is the entire technical content. There is no address of the page involved, no parameter, no header, no version number and no captured request or response, so there is nothing further to reproduce. The rest of the submission is a piece of ASCII art with the line "Мы все yмpём" above it, which carries no technical information.
The report was paid a bounty of 100.00 USD, rated low severity, and disclosed on 2018-02-24. It does not describe a fix, and it does not name the affected mobile client or the request that was used.
Why does the mobile/full split matter? A website is often built as more than one front end. The full site is the version you see in a desktop browser. The mobile version is a separate, lighter set of pages made for phones, and it may talk to a different part of the server. Each front end has to enforce the same rules. When a rule is applied in one place and forgotten in another, the forgotten path becomes the way in. That is the shape of this report: the behaviour appears in the mobile version and, according to the researcher, does not work in the full version.
In general, how this kind of bug works
A private group depends on an access check: a piece of code that runs before any group data is handed back, and asks "is the person asking a member of this group?". If the answer is no, the data should not be returned. The check is usually written once, in one place, and then everyone assumes it holds everywhere.
Trouble starts when the same data is served through a second path that was built separately: a mobile web page, a small API used by a phone app, an image service that hands out pictures by number, or a stored (cached) copy of a page. If that second path looks up the group by its identifier and returns it without asking about membership, the private group becomes readable.
Three common variants:
- A second path with no check. The mobile front end returns the object without consulting the viewer's membership.
- The wrong question. The check confirms you are logged in, or that the group exists, but never that you belong to it.
- Caching. A response built for a member is stored and later served to a non-member, because the cache key does not include who is asking.
The defences are the same each time: one authorisation function applied to every path that returns group data, checks that run on the object rather than on the page address, cache keys that include the viewer's access level, and tests that try each client (full site, mobile site, mobile API, image endpoints) with a non-member account.
How to test for it
- Create two accounts: one that is a member of a private group and one that is not. Note the group's numeric identifier and the identifiers of its avatar and other media.
- As the non-member, ask for the group through every surface you can find: the full site page, the mobile site, the mobile API the app uses, and any image address that serves the avatar. Capture the requests from the phone app with an intercepting proxy so you see the real addresses instead of guessing them.
- Compare the responses. A positive result is any response to the non-member that contains the group name, the avatar image, or an image address that resolves to the avatar, where the full site correctly refuses the same request.
- Try the same identifiers with the member's session and with no session at all, to see whether the check is on being logged in, on membership, or absent.
- Check whether the leaked image address is stable and guessable, and whether it can be fetched with no session at all, which would show the data is effectively public.
Common false positives: the group name appearing in a generic error page or in a search suggestion that is intentionally public; an avatar served from a CDN with a signed address that expires, where the signature is the real control; a cached response that only appears for your own account because of a shared cookie; and public groups that merely look private because of their settings. Confirm with a second, unrelated non-member account before reporting.
How it is fixed
The standard fix is to send every read of group data, including name and avatar, through one authorisation check that verifies the viewer's membership, and to apply it to the mobile site, the mobile API and the image endpoints alike. Media for private groups should be served through addresses that require the same check, or through short-lived signed addresses issued only after it passes. Cache keys should include the viewer's access level so a member's response is never served to a non-member. Regression tests should request each private object from a non-member account across every client.
Hunting notes
This class of bug hides where a product has more than one front end: mobile web, native app APIs, legacy endpoints, and image or thumbnail services. Signals worth watching for include an API host used only by the mobile app, endpoints that take a numeric group or object identifier, and image addresses whose path contains an identifier rather than an opaque token. Comparing the full site and the mobile site for the same object is a common way to surface this kind of gap.
Glossary
- Private group: a community on a social network whose content and details are meant to be visible only to its members.
- Avatar: the small profile picture shown next to a group or person.
- Mobile version: the separate, lighter set of web pages a site serves to phones, which may talk to different server code than the full site.
- Full version: the version of a site served to desktop browsers.
- Access check (authorisation): code that decides whether the person asking is allowed to see a piece of data before it is returned.
- API: a defined set of addresses a program (such as a phone app) uses to ask a server for data, usually returning structured data rather than a web page.
- Endpoint: one specific address on a server that accepts requests, for example one API call.
- Parameter: a named value sent with a request, such as an identifier or a search term.
- Header: extra information sent alongside a request or response, such as the type of content or a cookie.
- Request / response: the message a browser or app sends to a server, and the message the server sends back.
- Session: the server's record that a series of requests come from the same logged-in person.
- Cookie: a small piece of data a site stores in your browser and sends back with each request, often used to identify your session.
- Token: a value that stands in for something else, such as proof that you are logged in, or an opaque identifier for a file.
- Identifier (ID): a number or string that names a specific object, such as a group or a picture.
- Metadata: descriptive information about something, such as a group's name and picture, as opposed to its content.
- Caching: storing a response so it can be served again quickly, which becomes a problem if it is served to the wrong person.
- Cache key: the label under which a cached response is stored; if it omits who is asking, the wrong person can receive it.
- CDN: a network of servers that delivers files such as images quickly to users around the world.
- Signed URL: an address for a file that carries a signature and usually an expiry time, so the server can refuse it once it is invalid.
- Intercepting proxy: a tool that sits between an app and the server and records or edits the requests passing through.
- Severity: a rating of how serious a bug is, here low.
- Bounty: a payment made to a researcher for reporting a valid bug.
- False positive: a finding that looks like a bug but is not, because the behaviour is intended or the control is elsewhere.