Получение оригинала скрытого изображения
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 29 hours
- Paid in 29 hours
- Disclosed after 32 hours
Здравствуйте! В вашем сервисе есть фотографии сильно низкого качества, чтобы было невозможно разобрать кто на нем изображен. (например разделе "Кому вы нравитесь?" ) Наше способ получить оригинал. Берем адрес скрытой картинки: https://pcache-pv-eu1.badoocdn.com/p76/hidden?euri=CD7SrePxVBgqQI6NZlSecpEED0VHR8HQsai3k4ChKXuBzuG9amb01yjMHKK12cPtpVOm2LUb0DXtv.wOaGyaHsKRyUMIHzgE1oEKsIAMFVl4315WdppTSP-D2jL1bI3oyRU4o-HvAtBwyJ4H0XgUWVSB7J4LTXmh&size=__size__
Дописываем в конец "?" Получили оригинал: https://pcache-pv-eu1.badoocdn.com/p76/hidden?euri=CD7SrePxVBgqQI6NZlSecpEED0VHR8HQsai3k4ChKXuBzuG9amb01yjMHKK12cPtpVOm2LUb0DXtv.wOaGyaHsKRyUMIHzgE1oEKsIAMFVl4315WdppTSP-D2jL1bI3oyRU4o-HvAtBwyJ4H0XgUWVSB7J4LTXmh&size=__size__?
Хорошего дня!
С Уважением, Сергей Никитченко
What the report shows
The report concerns a dating service whose images are served from the CDN host badoocdn.com. and specifically the low-quality, blurred thumbnails the service shows for photos so that the person in them cannot be recognised. The researcher cites the "Who likes you?" section as an example of where these obscured images appear.
The claim is that the original, unobscured image can be retrieved from the same URL that serves the blurred version. The researcher starts from the address of a hidden picture:
https://pcache-pv-eu1.badoocdn.com/p76/hidden?euri=[redacted].[redacted]-D2jL1bI3oyRU4o-HvAtBwyJ4H0XgUWVSB7J4LTXmh&size=__size__
The size parameter is a placeholder, __size__, in the URL as written. The step the researcher describes is appending a ? to the end of the URL. The result is presented as the original image:
https://pcache-pv-eu1.badoocdn.com/p76/hidden?euri=[redacted].[redacted]-D2jL1bI3oyRU4o-HvAtBwyJ4H0XgUWVSB7J4LTXmh&size=__size__?
That is the whole of the technical content: one URL, one appended character, and the assertion that the response is the original rather than the blurred image. The report does not include the two responses side by side, HTTP headers, status codes, content types or image dimensions, so the difference between the blurred and original responses is not documented in the text.
The platform records the weakness as information disclosure, the bounty as 280.00 USD, and disclosure on 2016-06-09. No severity or CVSS score is given, and the report does not describe a fix.
Root cause
The report does not explain why appending a ? returns the original. The hidden path and the euri token identify the asset; the size parameter selects a rendition. Appending a bare ? changes the URL, and the report states the response is the original image.
Impact
The obscured thumbnails exist so that the person in the photo cannot be recognised. The report states that appending ? returns the original image instead of the hidden one.
How this kind of bug works
Image privacy controls are usually enforced in one of three places: at authorisation time (the server checks whether the requester may see the clear asset before signing or serving a URL), in the image pipeline (the same asset is stored once and renditions are produced on demand), or in the client (a CSS filter or a low-resolution file). Only the first two are real controls. When the blurred and clear versions share a token, the token is a capability, and the only thing separating the two is how the request is parsed. Any parser differential between the CDN edge and the origin, or any cache key that ignores part of the query string, can turn a request for a rendition into a request for the source object. Common triggers are empty query components, duplicate parameters, parameter order, encoding differences, and trailing characters that one layer strips and another does not.
How to test for it
- Find a feature that deliberately degrades an image: blurred likes, locked galleries, premium-only photos, hidden profile pictures. Open developer tools and note the exact image URL, including every query parameter.
- Identify the parameter that looks like a rendition selector (size, quality, blur, w, h, format) and the opaque token that identifies the asset.
- Request the URL unchanged and record the response: status, content type, content length, and the visual result. This is your baseline.
- Mutate the URL one variable at a time: append a bare
?, append&, duplicate the rendition parameter with a different value, remove it entirely, reorder parameters, change its case, and try encoded variants of the separators. Compare each response against the baseline by length and by eye. - Try the same token against other paths on the same host and against the origin host if it is discoverable, since the edge and the origin may disagree.
- A positive result is a response that is visibly sharper or larger than the baseline while still being the same subject, or a content length consistent with a full-size file rather than a thumbnail.
False positives to rule out: the browser upscaling a small image, a cached response from an earlier request, a different asset that happens to share the token prefix, and a placeholder or generic image returned on error. Confirm by fetching with a clean client and checking the bytes, not the rendered page.
How it is fixed
Serve obscured renditions from a distinct, non-guessable token that is not derivable from the clear asset, or require an authorisation check on the clear rendition so that the token alone is not sufficient. Normalise and strictly parse the query string at the edge so that empty components and duplicates cannot change routing, and make the cache key cover every input that affects the response. Where the blur is produced on demand, apply it unconditionally on the rendition path rather than branching on request parameters.
Hunting notes
This class hides wherever a product sells or gates visibility: dating apps, marketplace seller contacts, locked documents, paywalled previews, and any "blur until you pay" UI. Recon signals include CDN hosts with path segments such as hidden, blur, preview or thumb, tokens passed as query parameters, and a size or quality parameter that the client controls. Show impact by putting the blurred and clear responses side by side, with the request that produced each, and state plainly which privacy promise the clear image breaks.
What happened, in plain words
The service in this report is a dating app. Some photos in it are deliberately shown blurred or in very low quality so that you cannot recognise the person in them. The researcher gives the "Who likes you?" section as an example of where these low-quality photos appear.
The researcher found that the clear, original photo can be fetched from the same web address that serves the blurred one. The trick is to add a single question mark ? to the end of the image URL.
He starts with the address of a hidden picture:
https://pcache-pv-eu1.badoocdn.com/p76/hidden?euri=[redacted].[redacted]-D2jL1bI3oyRU4o-HvAtBwyJ4H0XgUWVSB7J4LTXmh&size=__size__
This URL has three parts that matter:
- The host
pcache-pv-eu1.badoocdn.comis a content delivery network (CDN) server that stores and serves images. - The path is
/p76/hidden. - The query string starts after the
?. It contains two parameters:euri, a long token that identifies the image, andsize, which is a placeholder__size__in the text (the real value would be filled in by the app).
Then he appends a ? to the end of the URL:
https://pcache-pv-eu1.badoocdn.com/p76/hidden?euri=[redacted].[redacted]-D2jL1bI3oyRU4o-HvAtBwyJ4H0XgUWVSB7J4LTXmh&size=__size__?
According to the report, the response to this second URL is the original, unobscured image. The report does not show the two responses side by side, nor does it include HTTP status codes, headers, content types or image sizes, so the exact difference between the blurred and clear responses is not documented in the text.
Why does this matter? The blurred thumbnail exists so that the person in the photo cannot be recognised. The report states that appending ? returns the original image instead of the hidden one.
The platform records this as an information disclosure issue, with a bounty of 280.00 USD, disclosed on 2016-06-09. No severity or CVSS score is given, and the report does not describe a fix.
In general, how this kind of bug works
Image privacy controls are usually enforced in one of three places:
- At authorisation time: the server checks whether the requester is allowed to see the clear asset before it signs or serves a URL.
- In the image pipeline: the same asset is stored once, and different renditions (blurred, small, clear) are produced on demand.
- In the client: a CSS filter or a low-resolution file is sent to the browser.
Only the first two are real controls. If the blurred and clear versions share the same token, that token acts like a capability: whoever holds it can ask for the image. The only thing separating the blurred and clear versions is how the request is parsed. Any difference in parsing between the CDN edge and the origin server, or any cache key that ignores part of the query string, can turn a request for a blurred rendition into a request for the source object. Common triggers are empty query components (like the bare ? here), duplicate parameters, parameter order, encoding differences, and trailing characters that one layer strips and another does not.
How to test for it
If you want to check for this kind of issue in a service you are allowed to test, here is a step-by-step approach:
- Find a feature that deliberately degrades an image: blurred likes, locked galleries, premium-only photos, hidden profile pictures. Open the browser's developer tools (press F12) and note the exact image URL, including every query parameter.
- Identify the parameter that looks like a rendition selector (for example
size,quality,blur,w,h,format) and the opaque token that identifies the asset. - Request the URL unchanged and record the response: status, content type, content length, and the visual result. This is your baseline.
- Change the URL one variable at a time: append a bare
?, append&, duplicate the rendition parameter with a different value, remove it entirely, reorder parameters, change its case, and try encoded variants of the separators. Compare each response against the baseline by length and by eye. - Try the same token against other paths on the same host and against the origin host if it is discoverable, since the edge and the origin may disagree.
- A positive result is a response that is visibly sharper or larger than the baseline while still being the same subject, or a content length consistent with a full-size file rather than a thumbnail.
False positives to rule out: the browser upscaling a small image, a cached response from an earlier request, a different asset that happens to share the token prefix, and a placeholder or generic image returned on error. Confirm by fetching with a clean client (for example, a command-line tool) and checking the bytes, not the rendered page.
How it is fixed
To prevent this, serve obscured renditions from a distinct, non-guessable token that is not derivable from the clear asset, or require an authorisation check on the clear rendition so that the token alone is not sufficient. Normalise and strictly parse the query string at the edge so that empty components and duplicates cannot change routing, and make the cache key cover every input that affects the response. Where the blur is produced on demand, apply it unconditionally on the rendition path rather than branching on request parameters.
Hunting notes
This class of bug hides wherever a product sells or gates visibility: dating apps, marketplace seller contacts, locked documents, paywalled previews, and any "blur until you pay" UI. Recon signals include CDN hosts with path segments such as hidden, blur, preview or thumb, tokens passed as query parameters, and a size or quality parameter that the client controls. Show impact by putting the blurred and clear responses side by side, with the request that produced each, and state plainly which privacy promise the clear image breaks.
Glossary
- Bumble: a dating app where users can like or match with each other.
- CDN (content delivery network): a network of servers that store and serve content (like images) close to users to make loading faster.
- Query string: the part of a URL after the
?that contains parameters, often inkey=valuepairs separated by&. - Parameter: a key-value pair in a query string that tells the server what to return or how to process the request.
- Token: a string that identifies a resource or grants access, often opaque and hard to guess.
- Rendition: a version of an image (for example, blurred, small, or clear) produced from the same original.
- Information disclosure: a vulnerability where information that should be protected is exposed to someone who should not see it.
- Bounty: a reward paid by a company to a security researcher who reports a valid vulnerability.
- CVSS: a standard scoring system for the severity of security vulnerabilities.
- Cache: a temporary storage that holds copies of data to serve future requests faster.
- Cache key: the identifier used by a cache to decide which stored response to return for a given request.
- Parser differential: a situation where two systems (for example, a CDN and an origin server) interpret the same request differently.
- Authorisation: the process of checking whether a user is allowed to perform an action or access a resource.
- Capability: a token or piece of data that, if you have it, gives you access to a resource, like a key.
- Origin server: the main server that holds the original data, as opposed to a CDN edge server.
- Edge server: a server in a CDN that is close to the user and may cache or forward requests.
- HTTP status code: a three-digit number in an HTTP response that indicates the result (for example, 200 for OK, 404 for not found).
- Content type: a header that tells the browser what kind of data is being returned (for example,
image/jpeg). - Content length: the size of the response body in bytes.
- False positive: a result that appears to be a vulnerability but is not, often due to a mistake in testing.
- Developer tools: a set of tools built into browsers that let you inspect network requests, among other things.