My First $100 Bounty: Exploiting IDOR Vulnerability in Account Section
Uploaded account photos could be viewed by anyone who had the image link, because the application did not check whether the requester was logged in or authorised. An attacker who obtained such a link could view another user's private photo without authentication.
bugbountywizard.app
Published on bugbountywizard.app
Cybersecurity
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
The target described here is a website with an account section that lets a registered user upload a photo to their own account. The report does not name the site, the program or the technology behind it. The feature under scrutiny is the storage and delivery of user-uploaded images: after an upload, the application exposes the image at a URL, and that URL is what the researcher tested.
The bug class is IDOR (Insecure Direct Object Reference), which the author defines as a situation where an application does not correctly verify whether a user is authorised to access a resource. Here the resource is a user's uploaded photo, and the manipulation happens in the URL that points to it. The author says the same issue was reported across multiple programs and is often classified as medium severity because of the privacy risk.
Setup
The setup is deliberately minimal. The only preconditions stated are:
- A registered account on the target website, logged in.
- The ability to upload a photo in the account section.
- A second browser, used to test access without a session.
No tools, intercepting proxies, versions or special roles are mentioned. The test relies on the browser alone: one browser holding the authenticated session, another with no session at all.
Finding it
The researcher uploaded a photo to their own account and then looked at how the image was served. Copying the image link gave a URL that pointed directly at the uploaded file. The question that turned this into a finding was whether that URL was tied to the session of the person who uploaded it, or whether it would resolve for anyone who had the link. Opening it in a separate browser, with no login, answered that question: the image was still served.
That is the whole signal. There was no parameter fuzzing and no request tampering; the observation was that an object reference in a URL was honoured without any check that the requester was entitled to it.
Exploitation
Step 1: Create an account
Register on the target website and log in. This gives the authenticated context in which the upload and the subsequent link copy happen.
Step 2: Upload a photo
Navigate to the account section and upload a photo to the account. The application stores the file and makes it reachable through a URL.
Step 3: Copy the image URL
After the upload, right-click the photo and copy the link to the image. This is the direct object reference that will be tested.
Step 4: Test unauthorised access
Open another browser and paste the copied link into the address bar, then press enter. The second browser has no session for the site, so any successful load is access without authentication.
Step 5: Observe the result
The image is still accessible even though the requester is not logged in. That confirms the application does not check for proper authentication when serving the resource.
The report does not include the actual URL, the HTTP request or the response, so the exact form of the reference and the status code returned are not shown. What matters for reproduction is the shape of the test: an authenticated upload, a copied direct link, and a request for that link from a context with no credentials.
Root cause
The application serves uploaded photos through a URL that identifies the object directly, and it does not verify that the caller is allowed to see that object. The application does not check for proper authentication when the resource is accessed, so the link works without a session.
The report does not say where the check is missing or whether the upload flow itself is restricted. The failure appears one step later, when the stored object is fetched.
Impact
An attacker who obtains the URL of another user's uploaded photo can view that photo without being logged in. The author frames this as a privacy issue: uploaded photos become readable by anyone holding the link. The severity is described as medium, and the report notes that this classification has been applied across multiple programs where the same issue was submitted.
It also does not state whether the same behaviour applied to other account resources beyond photos.
Fix
The fix implied by the finding is to enforce an authorisation check when an uploaded photo is requested: the server should confirm that the requesting user is entitled to the object before returning it, rather than serving any request that carries the link. Where photos are meant to be private, that means requiring an authenticated session and verifying ownership, or serving the file through a handler that performs that check.
Variants to test
- Sequential or guessable references. If the image URL contains a numeric or otherwise predictable identifier, request neighbouring values from a second, unauthenticated browser. A positive result is another user's image loading without a session.
- Same test on other account objects. Apply the copy-the-link, open-in-another-browser method to documents, avatars, exports or attachments in the account section. A positive result is any private object resolving without credentials.
- Authenticated cross-account access. Log in as a second user and request the first user's object URL. A positive result is the object loading for an account that does not own it, which shows the check is missing for logged-in users too, not only for anonymous ones.
- Reference substitution in API calls. Where the account section loads images through an API rather than a static path, replace the object identifier in the request with another user's value. A positive result is a successful response containing the other user's file.
- Cached or shared delivery paths. Check whether the image is reachable through a CDN or cache URL that bypasses the application's checks. A positive result is the file being served from the alternate path with no authorisation.
What happened, in plain words
A security researcher found that an uploaded photo stayed accessible without being logged in. The website had an account section where you could upload a picture to your own profile. Once the picture was uploaded, the site gave it a web address (a link). The researcher copied that link, opened it in a different browser where nobody was logged in, and the picture still appeared. That means the photo could be seen through its link without signing in.
The researcher calls this an IDOR, which stands for Insecure Direct Object Reference. It is a fancy name for a simple mistake: the website hands out a link that points straight at a file, and it never asks "are you allowed to see this?" before showing it. The researcher says this kind of bug is usually treated as medium severity, because it leaks private information. The researcher also says they have reported the same kind of issue to several different bug bounty programs.
A bug bounty program is a scheme run by a company that pays people for finding and reporting security problems in its products. The researcher earned $100 for this one, their first bounty.
The target and the feature
The target is a website with an account section. You can register, log in, and upload a photo to your own account. The report does not name the site, the company, or the technology it runs on.
The part being tested is how the site stores and delivers uploaded images. After you upload a photo, the site makes it available at a web address (a URL). A URL is the text you type into your browser's address bar, like the address of a house: it tells the browser exactly where to go to fetch something. The researcher's whole test was about that address.
What an IDOR is
An IDOR happens when an application does not correctly check whether a user is allowed to access a resource. A "resource" here just means a thing the site stores, such as a photo, a document or a profile. "Direct object reference" means the link points straight at that thing, often by an identifier, rather than through a gatekeeper that checks who is asking.
An everyday comparison: imagine a hotel where every room's key is just the room number written on a card. If the front desk never checks that you are the guest for room 12, anyone holding a card that says 12 can walk in. The room number is the direct reference, and the missing check at the door is the vulnerability.
Setting up
The setup is deliberately minimal. The only things you need are:
- A registered account on the target website, logged in.
- The ability to upload a photo in the account section.
- A second browser, used to test access without being logged in.
No special tools, no software to intercept network traffic, no particular version numbers and no special user roles are mentioned. The test relies on the browser alone: one browser holding the logged-in session, another with no session at all.
A session is the site's memory of you being logged in. When you sign in, the site gives your browser a small piece of data, often called a cookie, which the browser sends back with every request so the site knows it is still you. A second browser that has never signed in has no such cookie, so the site treats it as a stranger. That is exactly why the second browser is used: it proves whether the site cares who is asking.
Finding it
The researcher uploaded a photo to their own account and then looked at how the image was delivered. Copying the image link gave a URL that pointed directly at the uploaded file. The question that turned this into a finding was whether that URL was tied to the session of the person who uploaded it, or whether it would work for anyone who had the link. Opening it in a separate browser, with no login, answered that question: the image was still served.
That is the whole signal. There was no guessing of parameters and no tampering with requests. The observation was simply that a link pointing at an object was honoured without any check that the person asking was entitled to it.
Step by step
Step 1: Create an account
Register on the target website and log in. This gives you the logged-in context in which the upload and the later link copy happen. You need to be a normal, legitimate user first, because the point is to see what a normal user's link does when someone else uses it.
Step 2: Upload a photo
Go to the account section and upload a photo to your account. The application stores the file and makes it reachable through a URL. At this stage everything looks normal: you can only add photos to your own account.
Step 3: Copy the image URL
After the upload, right-click the photo and copy the link to the image. In most browsers, right-clicking an image offers an option such as "Copy image link" or "Copy image address". This copied link is the direct object reference that will be tested. It is the equivalent of the hotel room card: it names the object, and the question is whether the door checks anything else.
Step 4: Test unauthorised access
Open another browser and paste the copied link into the address bar, then press enter. The second browser has no session for the site, so any successful load is access without authentication. Authentication means proving who you are, usually by logging in. Authorisation is the next question: now that we know who you are, are you allowed to see this particular thing? This test checks the second question by removing the first entirely.
Step 5: Observe the result
The image is still accessible even though the requester is not logged in. That confirms the application does not check for proper authentication when serving the resource.
The report does not include the actual URL, the underlying network request or the response, so the exact form of the reference and the status code returned are not shown. What matters for reproducing the test is its shape: an authenticated upload, a copied direct link, and a request for that link from a context with no credentials.
Why it happens
The application serves uploaded photos through a URL that identifies the object directly, and it does not verify that the caller is allowed to see that object. The application does not check for proper authentication when the resource is accessed, so the link works without a session.
The report does not say where the check is missing or whether the upload flow itself is restricted. The failure appears one step later, when the stored object is retrieved.
Impact
An attacker who obtains the URL of another user's uploaded photo can view that photo without being logged in. The author frames this as a privacy issue: uploaded photos become readable by anyone holding the link. The severity is described as medium, and the report notes that this classification has been applied across multiple programs where the same issue was submitted.
It also does not state whether the same behaviour applied to other account resources beyond photos.
Fix
The fix implied by the finding is to enforce an authorisation check when an uploaded photo is requested: the server should confirm that the requesting user is entitled to the object before returning it, rather than serving any request that carries the link. Where photos are meant to be private, that means requiring a logged-in session and verifying ownership, or serving the file through a handler that performs that check.
Variants to test
These are other versions of the same idea you can try, once you understand the basic test.
- Sequential or guessable references. If the image URL contains a number or another predictable identifier, request the neighbouring values from a second, logged-out browser. A positive result is another user's image loading without a session.
- Same test on other account objects. Apply the copy-the-link, open-in-another-browser method to documents, avatars, exports or attachments in the account section. A positive result is any private object loading without credentials.
- Logged-in cross-account access. Log in as a second user and request the first user's object URL. A positive result is the object loading for an account that does not own it, which shows the check is missing for logged-in users too, not only for anonymous ones.
- Reference substitution in API calls. Where the account section loads images through an API rather than a static path, replace the object identifier in the request with another user's value. A positive result is a successful response containing the other user's file. An API (Application Programming Interface) is the way one piece of software asks another for data; in a website it is often the channel the page uses behind the scenes to fetch things like images or profile details.
- Cached or shared delivery paths. Check whether the image is reachable through a CDN or cache URL that bypasses the application's checks. A positive result is the file being served from the alternate path with no authorisation. A CDN (Content Delivery Network) is a network of servers that keep copies of files close to users to make loading faster; a cache is a stored copy of something, kept so it can be served again quickly.
Glossary
- Account section: the part of a website where a logged-in user manages their own profile and files.
- API (Application Programming Interface): the way one piece of software asks another for data or actions; on a website, often the channel the page uses behind the scenes.
- Authentication: proving who you are, usually by logging in.
- Authorisation: deciding whether an identified user is allowed to do or see a particular thing.
- Bug bounty program: a scheme where a company pays people for finding and reporting security problems in its products.
- Cache: a stored copy of something, kept so it can be served again quickly.
- CDN (Content Delivery Network): a network of servers that keep copies of files close to users to make loading faster.
- Cookie: a small piece of data a site stores in your browser, often used to remember that you are logged in.
- Credentials: the proof of identity a request carries, such as a session cookie.
- Direct object reference: a link or identifier that points straight at a stored thing, such as a file, rather than through a check.
- IDOR (Insecure Direct Object Reference): a bug where an application does not correctly check whether a user is allowed to access a resource, so a direct link to it works for the wrong person.
- Medium severity: a middle rating on the scale used to describe how serious a security bug is; here it reflects the privacy risk.
- Parameter: a named value in a request, such as an identifier, that the server uses to decide what to return.
- Resource: a thing the site stores and serves, such as a photo, document or profile.
- Session: the site's memory of you being logged in, usually carried by a cookie.
- Status code: the number a server returns with a response to say how the request went, such as success or not found.
- URL (Uniform Resource Locator): the address you type into a browser to fetch something.