IDOR may allow access to non-public photos
A user could add other people's non-public photos to a group they controlled by supplying the photo IDs in a batch upload, and then view those photos through their group membership. This let an attacker access any non-public photo whose ID they knew and add photos to a group without the owner's approval.
- Triaged in 8 days
- Fixed in 3 months
- Paid in 21 days
- Disclosed after 21 months
Summary by the program
By adding elsewhere-discovered photo IDs for non-public photos uploaded by others to a Flickr group via an upload batch run by the attacker the attacker could gain access via their membership is that group to the third party photos.
Summary by the researcher
This vulnerability allows an attacker to access any non-public photo just by knowing its ID. It also lets the attacker add any photo to a group without the owner's approval.
X (Twitter): @user_cyborg
What the report shows
The target is Flickr, scoped to *.flickr.com, and the feature at the centre of the report is Flickr groups and their upload batches. The weakness is classified as an Insecure Direct Object Reference (IDOR), rated medium with a CVSS score of 5.9, and disclosed on 6 July 2024. The report does not record a bounty amount.
The program's own summary describes the mechanism: an attacker adds photo IDs for non-public photos uploaded by other people to a Flickr group, using an upload batch that the attacker runs. Because the attacker is a member of that group, membership then gives them access to those third-party photos.
The researcher's summary states the same finding from the attacker's side: the vulnerability allows an attacker to access any non-public photo just by knowing its ID, and it also lets the attacker add any photo to a group without the owner's approval.
The report gives no request, parameter, endpoint or response, so there is nothing to reproduce verbatim here. The steps it implies are:
- Obtain the ID of a non-public photo uploaded by another user. The program summary describes these IDs as discovered elsewhere.
- Run an upload batch against a Flickr group that the attacker is a member of, supplying the third-party photo IDs.
- The batch accepts the IDs and associates the photos with the group.
- Through group membership, the attacker can now view the non-public photos.
The report does not describe the fix, the disclosure timeline or any back-and-forth with the program.
Root cause
The report does not describe the root cause. The researcher's summary also states that any photo can be added to a group without the owner's approval.
Impact
An attacker who knows a photo ID can reach a non-public photo that they are not entitled to see, and can pull it into a group they belong to without the owner's consent. The researcher's summary frames this as applying to any non-public photo whose ID is known.
How this kind of bug works
An IDOR appears when an application takes an identifier from the client and acts on the object it names without confirming that the caller is allowed to act on that particular object. Authentication answers who you are; authorisation answers what you may touch, and IDOR is the second question going unasked. The identifier itself is not secret and does not need to be: the flaw is the missing check, not the predictability of the number.
Two variants matter in practice. Horizontal IDOR crosses between users of the same privilege level, so one ordinary account reaches another ordinary account's data. Vertical IDOR crosses privilege levels, so a low-privileged user reaches administrative objects.
Indirect references make the bug harder to spot but no less real. If the client sends an opaque token that the server maps to a real object, the mapping step is exactly where the ownership check belongs, and it is easy to forget because the token looks unguessable. Batch and bulk endpoints are a common home for this mistake, because a single authorisation decision is often made for the whole request rather than per item, and because the code path that handles a list of IDs is frequently written separately from the single-item path and reviewed less.
Defences are straightforward in principle: derive the object's owner from the server-side session rather than from the request, check the object's visibility and the caller's relationship to it on every operation, and apply that check per item in bulk requests. Where objects are shared through containers such as groups, teams or projects, the check must consider membership of the container as well as ownership, and must be re-evaluated whenever the object is attached to a new container.
How to test for it
- Map the features that reference objects by identifier: viewing, editing, deleting, sharing, exporting and adding to a container. Bulk and import endpoints deserve particular attention.
- Create two accounts of the same privilege level. With account A, create objects of each relevant type, including ones marked private or restricted, and record their identifiers from the responses and from the URLs the application itself uses.
- With account B, replay the same operations but substitute A's identifiers. Send the identifier in every place the application accepts it: path segment, query string, JSON body field, form field, and any array of identifiers in a bulk request.
- Compare responses carefully. A positive result is B receiving A's object content, or a success response confirming that A's object was modified, attached or deleted. Status codes alone are unreliable; read the body.
- For container features, test the attach operation separately from the read operation. A successful attach that then makes the object readable through the container is a complete finding.
Common false positives: the endpoint returns a generic success message but performs no action; the object is actually public, so no authorisation was required; the identifier belongs to the same account because of a stale session or shared cookie jar; the response is a cached page from the tester's own earlier request; and the application returns the object's metadata but not its protected content, which may still be a finding but of lower impact. Confirm each candidate by repeating it from a clean session and by checking the object's state from the owner's account.
How it is fixed
Enforce object-level authorisation on the server for every operation that accepts an identifier. Resolve the caller from the session, load the object, and compare the caller's rights against the object's owner and visibility before acting. For bulk requests, apply the check to each identifier and reject the whole request or skip the offending items rather than authorising the batch once. When objects can be attached to containers, verify both that the caller may modify the container and that the caller may use the object. Prefer server-side references over client-supplied ones where practical, and add regression tests that exercise cross-account access for each endpoint.
Hunting notes
IDOR tends to hide in features added later than the core authorisation model: exports, sharing links, integrations, notification preferences, attachment handling and anything with a batch or import mode. Recon signals include endpoints that accept arrays of identifiers, parameters named after object types, numeric or UUID-like path segments that change between accounts, and mobile or partner APIs that reuse the same backend with fewer checks. GraphQL is worth attention because a single query can request nested objects whose resolvers may not repeat the parent's authorisation check.
To make a report land, demonstrate the crossing clearly: two accounts, the exact request from the victim's side and the attacker's side, and the protected content returned. Show the object was genuinely non-public before the attack. Where the bug enables a second step, such as attaching the object to a container the attacker controls, demonstrate that step too, because it converts a read into a durable access path. Keep the proof minimal and reproducible, and avoid touching data beyond what is needed to prove the issue.
What happened, in plain words
Flickr is a website for storing and sharing photos. One of its features is groups: a place where several people pool photos around a shared interest. A group has an upload batch, a way of adding several photos to the group in one go.
The report describes a flaw in that batch feature. Every photo on Flickr has an identifier, a short code that names that one photo, much like a house number names one house on a street. The researcher found that if you know the identifier of someone else's photo, you can feed that identifier into a group upload batch and the site will attach the photo to the group. If the photo was not public, meaning the owner had restricted who could see it, the attacker could still reach it afterwards, simply because they are a member of the group it now sits in.
The program's summary puts it this way: by adding elsewhere-discovered photo IDs for non-public photos uploaded by others to a Flickr group via an upload batch run by the attacker, the attacker could gain access via their membership in that group to the third party photos.
The researcher's summary is shorter: the vulnerability allows an attacker to access any non-public photo just by knowing its ID, and it also lets the attacker add any photo to a group without the owner's approval.
The report is classified as an Insecure Direct Object Reference (IDOR), rated medium with a CVSS score of 5.9, and was disclosed on 6 July 2024. No bounty amount is recorded.
The steps the report implies
- Learn the identifier of a non-public photo belonging to someone else. The program calls these IDs "elsewhere-discovered".
- Run an upload batch against a group the attacker belongs to, supplying those third-party photo identifiers.
- The batch accepts the identifiers and links the photos to the group.
- The attacker opens the group and sees the photos, because membership of the group now grants access.
Why each step matters: step 1 shows the identifier is not a secret, so it cannot be the protection. Step 3 is the moment the private photo is pulled into a place the attacker controls. Step 4 is the payoff: the attacker reads content they were never meant to see, and the owner was never asked.
The report contains no request, parameter, endpoint or response, so there is no traffic to reproduce here. It also does not describe the fix or any discussion with the program.
Why it works
The report does not describe the cause. The researcher's summary also states that any photo can be added to a group without the owner's approval.
What it means in practice
Anyone who knows a photo identifier can reach a non-public photo they are not entitled to see, and can pull it into a group they belong to without the owner's consent. The researcher's summary says this applies to any non-public photo whose ID is known. It does not discuss how IDs are generated, how widely they leak, or any consequence beyond access to the photo and its unauthorised addition to a group.
In general, how this kind of bug works
An IDOR appears when a website takes an identifier from the browser and acts on whatever object it names, without confirming that this particular visitor is allowed to act on that object. Two ideas sit behind it. Authentication answers "who are you?". Authorisation answers "what may you touch?". An IDOR is the second question going unasked. The identifier itself does not need to be secret: the flaw is the missing check, not whether the number can be guessed.
Two variants matter. A horizontal IDOR crosses between users of the same level, so one ordinary account reaches another ordinary account's data. A vertical IDOR crosses levels, so a low-privileged user reaches administrative objects.
Indirect references make the bug harder to spot but no less real. If the browser sends an opaque token and the server maps it to a real object, that mapping step is exactly where the ownership check belongs, and it is easy to forget because the token looks unguessable. Batch and bulk features are a common home for this mistake, because one authorisation decision is often made for the whole request rather than for each item, and because the code handling a list of identifiers is often written separately from the single-item path and reviewed less.
How to test for it
- List the features that refer to objects by identifier: viewing, editing, deleting, sharing, exporting and adding to a container. Bulk and import features deserve particular attention.
- Create two accounts of the same level. With account A, create objects of each relevant type, including ones marked private, and note their identifiers from the responses and from the URLs the site itself uses.
- With account B, repeat the same actions but swap in A's identifiers, in every place the site accepts one: path, query string, JSON body, form field, and any list of identifiers in a bulk request.
- Compare the responses carefully. A positive result is B receiving A's content, or a success message confirming that A's object was changed, attached or deleted. Status codes alone are unreliable; read the body.
- For container features, test the attach action separately from the read action. A successful attach that then makes the object readable through the container is a complete finding.
Common false positives: the site returns a generic success message but does nothing; the object is actually public, so no permission was needed; the identifier belongs to the same account because of a stale session or a shared cookie jar; the response is a cached page from the tester's own earlier request; and the site returns the object's metadata but not its protected content, which may still be a finding of lower impact. Confirm each candidate from a clean session and by checking the object's state from the owner's account.
How it is fixed
Enforce object-level authorisation on the server for every action that accepts an identifier. Work out who is calling from the session, load the object, and compare the caller's rights against the object's owner and visibility before acting. For bulk requests, apply the check to each identifier and reject the whole request or skip the offending items rather than authorising the batch once. When objects can be attached to containers, verify both that the caller may modify the container and that the caller may use the object. Prefer server-side references over client-supplied ones where practical, and add regression tests that exercise cross-account access for each endpoint.
Where to look
IDOR tends to hide in features added later than the core permission model: exports, sharing links, integrations, notification settings, attachment handling and anything with a batch or import mode. Signals worth watching include endpoints that accept lists of identifiers, parameters named after object types, numeric or UUID-like path segments that change between accounts, and mobile or partner APIs that reuse the same backend with fewer checks. GraphQL deserves attention because a single query can request nested objects whose resolvers may not repeat the parent's permission check.
To make a report land, show the crossing clearly: two accounts, the exact request from the victim's side and the attacker's side, and the protected content returned. Show the object was genuinely non-public before the attack. Where the bug enables a second step, such as attaching the object to a container the attacker controls, demonstrate that step too, because it turns a read into a lasting way in. Keep the proof minimal and reproducible, and avoid touching data beyond what is needed to prove the issue.
Glossary
- IDOR (Insecure Direct Object Reference): a flaw where a site acts on an object named by an identifier from the browser without checking the visitor is allowed to touch that object.
- Identifier (ID): a short code that names one specific object, such as a photo, so the site can find it again.
- Authentication: proving who you are, usually by logging in.
- Authorisation: deciding what a known user is allowed to see or change.
- Horizontal IDOR: crossing between accounts of the same level, one ordinary user reaching another's data.
- Vertical IDOR: crossing privilege levels, a low-privileged user reaching administrative objects.
- Non-public: visible only to people the owner has allowed, not to everyone.
- Upload batch: a feature that adds several items in one request instead of one at a time.
- Container: a shared place, such as a group, that holds objects and grants access to its members.
- Session: the site's record of who you are while you are logged in, usually tied to a cookie.
- Cookie: a small piece of data the browser stores for a site and sends back with each request.
- Token: an opaque string the site uses in place of a real identifier, which the server maps back to the object.
- Endpoint: a specific address on a site that performs one action when a request is sent to it.
- Request: the message a browser sends to a server asking it to do something.
- Response: the message the server sends back.
- Status code: a number in the response saying broadly what happened, such as success or not found.
- JSON: a text format for structured data, often used in request and response bodies.
- Query string: the part of a URL after the question mark, carrying extra values.
- Path segment: one part of a URL between slashes.
- UUID: a long, random-looking identifier.
- GraphQL: a way for a site to fetch data where one query can ask for several related objects at once.
- Resolver: the piece of server code that fetches one field in a GraphQL query.
- CVSS: a standard scoring system for how severe a vulnerability is.
- False positive: a test result that looks like a bug but is not one.
- Regression test: an automated test that checks a fixed bug stays fixed.