Upload profile photo and Pets addition - IDOR
The report describes an IDOR vulnerability in two features: profile photo upload and pet addition. By manipulating request parameters, an attacker could modify other users' accounts without authorisation.
- Triaged in 14 days
- Fixed in 56 days
- Disclosed after 9 months
Summary by the program
An Insecure Direct Object Reference (IDOR) vulnerability is discovered on the website ██████████. Through this vulnerability, it is possible for an attacker to manipulate any user account by uploading profile photos and adding pets to victim accounts. The vulnerability exists in two main functionalities: the profile photo upload feature and the pet addition system. By manipulating specific parameters in the requests, unauthorized modifications to other users' accounts can be performed without proper authorization checks
What the report shows
The target is a website on the *.miroyalcanin.com.ar asset, whose hostname is redacted in the published text. The program's summary describes an Insecure Direct Object Reference (IDOR) affecting two features: profile photo upload and pet addition.
According to the summary, an attacker can manipulate any user account by uploading profile photos and adding pets to victim accounts. The mechanism described is parameter manipulation in the requests behind those two features, which lets an attacker make unauthorised modifications to other users' accounts because the application does not perform proper authorisation checks.
The report is a short summary written by the program rather than a full researcher write-up. It names the two affected functionalities and the general technique, but it does not include the individual HTTP requests, the parameter names, the identifiers used, or the responses observed. No reproduction steps, payloads or commands are given, so there is nothing to copy here beyond the description above.
The report was disclosed on 21 November 2024 and is rated high severity. No CVSS score and no bounty amount are stated. The summary does not describe a fix or a retest.
Root cause
The mistake the summary points to is a missing or insufficient authorisation check on the server side. The summary attributes the issue to manipulation of specific parameters in the requests behind the two features, with unauthorised modifications possible because proper authorisation checks are missing. The client is trusted to send the right identifier, and the server does not verify ownership before writing the change. The summary describes missing proper authorisation checks and parameter manipulation, without detailing the exact check or the parameter involved.
Impact
The summary states that an attacker can manipulate any user account, specifically by changing profile photos and adding pets. Both are write operations on data belonging to another user, carried out without that user's consent. The summary states that any user account can be manipulated, and gives no further detail on preconditions. The severity is rated high.
How this kind of bug works
An IDOR appears when an application exposes a reference to an internal object, such as a numeric user ID, a UUID, a pet ID or a filename, and uses that reference directly to look up or modify the object without checking that the current session is allowed to touch it. Authentication answers "who are you"; authorisation answers "may you do this to this object". IDOR is the second question going unanswered.
The bug is common in features that were built around the assumption that the client sends only its own identifiers. Profile editing, file upload, messaging, invoicing and any nested resource (a pet belonging to a user, an address belonging to a customer) are typical locations. Two patterns recur: the identifier is taken from the request body or query string and trusted, or the identifier is taken from the URL path and the handler fetches the object by primary key alone.
Defences are straightforward in principle. Every object access should be scoped to the authenticated principal, for example by querying with both the object identifier and the owner identifier from the session, or by loading the object and then explicitly comparing its owner to the session user before acting. Indirect references, such as per-session opaque tokens mapped server-side to real objects, remove the temptation to trust client-supplied IDs. Centralising this check in a shared authorisation layer, rather than repeating it per handler, reduces the chance that a new endpoint forgets it.
How to test for it
- Map the features that write data tied to a user: profile updates, avatar or document upload, and any nested resources such as pets, addresses or payment methods.
- Create two accounts you control, A and B, and capture every request each one makes while performing these actions.
- Identify the parameters that carry an object reference: user IDs, pet IDs, file names, GUIDs, or hidden form fields.
- Replay A's request with B's session while substituting B's identifiers, and separately replay B's request with A's identifiers. Watch for a success response and confirm the change by reloading the victim account.
- Try removing the identifier entirely, sending an empty value, sending an array, or sending a different type, to see whether the server falls back to a default object.
- Check both the request body and the URL path, and check multipart uploads where the object reference may sit in a form field alongside the file.
A positive result is a state change visible in the victim's account, not merely a 200 response. Common false positives include endpoints that return a generic success message but silently discard the change, responses that echo the submitted identifier without persisting anything, and cases where the two accounts share the same underlying object so no cross-account access actually occurred. Always verify persistence from the victim's own session.
How it is fixed
Scope every read and write to the authenticated user. Load the target object and compare its owner against the session principal before applying changes, or include the owner in the database query so a mismatched identifier returns nothing. Do not rely on client-supplied identifiers for ownership. Apply the same check to nested resources by verifying the parent object's ownership first. Add regression tests that exercise cross-account requests, and log authorisation failures so attempts are visible.
Hunting notes
These bugs cluster in features added later: secondary profile fields, uploads, and child objects created after the main account model was designed. Recon signals include endpoints with sequential numeric IDs, GUIDs in multipart form fields, and API routes where the path contains a user or resource identifier. Comparing the requests of two accounts you own is the fastest way to spot a parameter that should be tied to the session but is not. To make a report land, show the exact request, the victim-side proof that the change persisted, and a clear statement of what an attacker gains. Programs accept reports that demonstrate a real state change on another account far more readily than ones that show only an unexpected response code.
What happened, in plain words
This report is about a website on the *.miroyalcanin.com.ar asset. The exact hostname is hidden in the published text, so we cannot see which page was affected. The summary was written by the bug bounty program rather than by the researcher, and it describes one vulnerability class: an Insecure Direct Object Reference, usually shortened to IDOR.
To understand the bug, start with two everyday ideas. A request is the message your browser sends to a website when you click a button or submit a form, for example "save this photo to my profile". A session is how the website remembers that the request comes from you: after you log in, the server gives your browser a small piece of data (often a cookie) that it checks on every later request. Authentication is the server asking "who are you?". Authorisation is the server asking "are you allowed to do this to this particular thing?".
An IDOR happens when the second question is skipped. The website receives a request that names the object to change, such as an account or a pet, and acts on it without checking that the logged-in user owns that object. The name "direct object reference" refers to the fact that the request contains a direct pointer to something inside the site's database, like a number or an identifier, and the server trusts it.
The program's summary says the vulnerability exists in two features of the site:
- Profile photo upload: the feature that lets a user put a picture on their account.
- Pet addition: the feature that lets a user register a pet on their account.
According to the summary, an attacker can manipulate any user account by uploading profile photos and adding pets to victim accounts. The mechanism described is manipulation of specific parameters in the requests behind those two features. In plain terms, the attacker manipulates specific parameters in the requests behind these features, and the server applies the change to another account because proper authorisation checks are missing.
The report is a short summary, not a full researcher write-up. It names the two affected features and the general technique, but it does not include the individual HTTP requests, the parameter names, the identifiers used, or the responses observed. There are no reproduction steps, payloads or commands, so there is no request to copy and explain line by line here. The report was disclosed on 21 November 2024 and is rated high severity. No CVSS score and no bounty amount are stated, and the summary does not describe a fix or a retest.
Why this matters
Both actions are write operations: they change data that belongs to another person. Both changes are made to the victim's account without the victim's consent. Neither change was made with the victim's consent. The summary states that any user account can be manipulated, and gives no further detail on preconditions.
Root cause
The mistake the summary points to is a missing or insufficient authorisation check on the server side. The summary attributes the issue to manipulation of specific parameters in the requests behind the two features, with unauthorised modifications possible because proper authorisation checks are missing. The browser is trusted to send the right identifier, and the server does not verify ownership before writing the change. The summary describes missing proper authorisation checks and parameter manipulation, without detailing the exact check or the parameter involved.
In general, how this kind of bug works
An IDOR appears when an application exposes a reference to an internal object, such as a numeric user ID, a UUID (a long random-looking identifier), a pet ID or a filename, and uses that reference directly to look up or modify the object without checking that the current session is allowed to touch it. Think of a hotel: authentication is showing your key card at the door, authorisation is the door system checking that the card opens this room and not the one next door. An IDOR is a hotel where any key card opens any door.
The bug is common in features built around the assumption that the browser sends only its own identifiers. Profile editing, file upload, messaging, invoicing and any nested resource (a pet belonging to a user, an address belonging to a customer) are typical locations. Two patterns recur: the identifier is taken from the request body or query string and trusted, or the identifier is taken from the URL path and the handler fetches the object by primary key alone.
Defences are straightforward in principle. Every object access should be scoped to the logged-in user, for example by querying with both the object identifier and the owner identifier from the session, or by loading the object and then explicitly comparing its owner to the session user before acting. Indirect references, such as per-session opaque tokens mapped server-side to real objects, remove the temptation to trust client-supplied IDs. Centralising this check in a shared authorisation layer, rather than repeating it per handler, reduces the chance that a new endpoint forgets it.
How to test for it
- Map the features that write data tied to a user: profile updates, avatar or document upload, and any nested resources such as pets, addresses or payment methods.
- Create two accounts you control, A and B, and capture every request each one makes while performing these actions. Browser developer tools, on the Network tab, show these requests.
- Identify the parameters that carry an object reference: user IDs, pet IDs, file names, GUIDs, or hidden form fields.
- Replay A's request with B's session while substituting B's identifiers, and separately replay B's request with A's identifiers. Watch for a success response and confirm the change by reloading the victim account.
- Try removing the identifier entirely, sending an empty value, sending an array, or sending a different type, to see whether the server falls back to a default object.
- Check both the request body and the URL path, and check multipart uploads, the format used when a form sends a file, where the object reference may sit in a form field alongside the file.
A positive result is a state change visible in the victim's account, not merely a 200 response (the standard "OK" status code). Common false positives include endpoints that return a generic success message but silently discard the change, responses that echo the submitted identifier without persisting anything, and cases where the two accounts share the same underlying object so no cross-account access actually occurred. Always verify persistence from the victim's own session.
How it is fixed
Scope every read and write to the logged-in user. Load the target object and compare its owner against the session user before applying changes, or include the owner in the database query so a mismatched identifier returns nothing. Do not rely on client-supplied identifiers for ownership. Apply the same check to nested resources by verifying the parent object's ownership first. Add regression tests that exercise cross-account requests, and log authorisation failures so attempts are visible.
Hunting notes
These bugs cluster in features added later: secondary profile fields, uploads, and child objects created after the main account model was designed. Recon signals include endpoints with sequential numeric IDs, GUIDs in multipart form fields, and API routes where the path contains a user or resource identifier. Comparing the requests of two accounts you own is the fastest way to spot a parameter that should be tied to the session but is not. To make a report land, show the exact request, the victim-side proof that the change persisted, and a clear statement of what an attacker gains. Programs accept reports that demonstrate a real state change on another account far more readily than ones that show only an unexpected response code.
Glossary
- Request: the message a browser sends to a website asking it to do something, such as save a photo.
- Session: the way a website remembers that a series of requests comes from the same logged-in person.
- Cookie: a small piece of data a website stores in the browser, often used to carry the session.
- Authentication: the server checking who you are.
- Authorisation: the server checking whether you are allowed to do a particular action to a particular object.
- IDOR (Insecure Direct Object Reference): a bug where a request names an internal object directly and the server acts on it without checking ownership.
- Parameter: a named value inside a request, such as an account number or a pet name.
- Identifier (ID): a value that points to a specific object, such as a user ID or a pet ID.
- UUID / GUID: a long, random-looking identifier used instead of a simple number.
- Write operation: an action that changes stored data, as opposed to only reading it.
- Multipart upload: the request format used when a form sends a file together with other fields.
- 200 response: the standard HTTP status code meaning the server accepted and processed the request.
- False positive: a test result that looks like a bug but is not one.
- CVSS: a scoring system for rating the severity of a vulnerability.
- Severity: a label such as high or low describing how serious a bug is.