Skip to content
IDOR Disclosed report Beginner

Unauthenticated Users Can Access Other Users’ Bug Report Attachments via Broken Access Control

The attachment endpoint for bug reports lacks authorization checks, so anyone can retrieve attachments belonging to other users by changing the numeric ID in the URL. This works even without authentication, exposing private bug report attachments.

azraeldeathangel Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 10 days
  • Disclosed after 6 months

The /BugReport/Admin/Attachment/{id} endpoint exposes attachments linked to private bug reports. By manipulating the numeric ID in the URL, it’s possible to access attachments belonging to other users, including sensitive bug reports, without proper authorization checks.

This vulnerability works even when unauthenticated, meaning anyone who knows or guesses valid IDs can retrieve attachments. This is a classic Insecure Direct Object Reference (IDOR), where the application fails to enforce access control on a direct object reference (the ID).

References

Impact

This vulnerability allows an attacker to access attachments from private bug reports submitted by other users by simply manipulating the ID parameter in the request. Since the endpoint lacks proper authorization checks and even responds when unauthenticated, sensitive internal information, such as unpatched security issues, confidential business data, or personally identifiable information, could be fully exposed. This significantly increases the risk of targeted attacks, information leaks, and reputational damage to the organization.

System Host(s)

███████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  1. Log in with any valid user account.
  2. Capture the request when viewing a bug report attachment:
GET /BugReport/Admin/Attachment/1568600 HTTP/1.1

Host: █████████

Cookie: ████
  1. Remove the entire Cookie header from the above request, so it looks like:
GET /BugReport/Admin/Attachment/1568600 HTTP/1.1

Host: █████████
  1. Send the modified request without any authentication cookies.
  2. Observe that the server responds with the file contents of the bug report attachment.

Result: Any unauthenticated user can view attachments of any bug report by enumerating or guessing valid IDs.

Suggested Mitigation/Remediation Actions

  • Implement strict authorization checks on the /BugReport/Admin/Attachment/{id} endpoint to verify that the requesting user has permission to access the specified attachment.
  • Ensure that unauthenticated requests cannot retrieve any sensitive resources by enforcing authentication at this endpoint.
  • Use indirect references (e.g., random UUIDs or tokens) instead of sequential numeric IDs to reduce the risk of enumeration.
  • Apply the principle of least privilege: users should only be able to access resources they are explicitly authorized to view.
  • Add proper logging and monitoring for unauthorized access attempts to detect potential exploitation early.
  • Consider rate limiting to prevent mass enumeration of IDs.

The original report as published on HackerOne, by azraeldeathangel. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target is a U.S. Department of Defence web application that hosts a bug report feature. Bug reports are private objects: each one belongs to the user who submitted it, and each report can carry file attachments. The application serves those attachments through a dedicated endpoint:

Text
/BugReport/Admin/Attachment/{id}

The {id} segment is a sequential numeric identifier that points directly at a stored attachment. The intended behaviour is that a user viewing an attachment on a bug report they are allowed to see gets the file contents back from this endpoint, and nobody else does.

Setup

The only precondition the researcher describes is a valid user account, used to reach the attachment-viewing flow and capture a legitimate request. No specific tooling, product version or configuration is named in the report. The affected product and version fields are empty, and no CVE number was assigned.

The host is redacted in the published report, as is the session cookie used in the captured request.

Finding it

The endpoint takes the object reference straight from the URL path. The identifier is a plain number, and the report notes that valid IDs can be enumerated or guessed. That combination raised the question of whether the server actually checks, per request, that the caller is entitled to the attachment being requested.

The test was therefore simple: take a request that works while authenticated, strip the authentication, and see whether the server still returns the file.

Exploitation

Step 1: log in and capture a legitimate request

With any valid user account, the researcher opened a bug report attachment and captured the resulting request:

HTTP
GET /BugReport/Admin/Attachment/1568600 HTTP/1.1

Host: █████████

Cookie: ████

The path carries the attachment identifier 1568600. The Cookie header carries the authenticated session that the application would normally use to decide whether this user may see this attachment.

Step 2: remove the authentication

The entire Cookie header was deleted, leaving the same request with no credentials at all:

HTTP
GET /BugReport/Admin/Attachment/1568600 HTTP/1.1

Host: █████████

Step 3: send the unauthenticated request

The modified request was sent with no authentication cookies.

Step 4: observe the response

The server responded with the file contents of the bug report attachment. No login, no session and no ownership check stood between an anonymous caller and the file.

Result: any unauthenticated user can view the attachments of any bug report by enumerating or guessing valid IDs. Because the identifiers are numeric, enumerating or guessing valid IDs is enough to reach attachments across reports; no knowledge of the owning user is required.

Root cause

The endpoint lacks proper authorization checks on the requested object. The identifier in the path is trusted as sufficient proof of entitlement, so the server returns whatever attachment matches the ID regardless of who is asking. This is a classic Insecure Direct Object Reference: the application exposes an internal object reference (the numeric attachment ID) and fails to enforce access control on it.

The failure is twofold. There is no check that the requesting user is permitted to see the attachment, and there is no authentication requirement on the endpoint at all, so even a request with no session is served. Whether the handler was meant to be restricted to administrative users, given the Admin segment in its path, is not stated in the report.

Impact

An attacker can read attachments belonging to private bug reports submitted by other users, simply by manipulating the ID parameter. Since the endpoint answers unauthenticated requests, no account is needed. The report notes that exposed material could include sensitive internal information such as unpatched security issues, confidential business data or personally identifiable information. That raises the risk of targeted attacks, information leaks and reputational damage to the organization. The severity assigned to the report is high.

Fix

The report proposes the following remediation actions:

  1. Implement strict authorization checks on the /BugReport/Admin/Attachment/{id} endpoint, verifying that the requesting user has permission to access the specified attachment.
  2. Ensure unauthenticated requests cannot retrieve any sensitive resources by enforcing authentication at this endpoint.
  3. Use indirect references, such as random UUIDs or tokens, instead of sequential numeric IDs, to reduce the risk of enumeration.
  4. Apply the principle of least privilege so users can only access resources they are explicitly authorized to view.
  5. Add logging and monitoring for unauthorized access attempts to detect exploitation early.
  6. Consider rate limiting to prevent mass enumeration of IDs.

The report does not describe any fix that was actually applied.

Variants to test

  • Other attachment and file endpoints. Look for sibling routes that take a numeric or otherwise guessable object ID in the path or query string, such as download, export or preview handlers. A positive result is the same file contents coming back after the Cookie header is removed.
  • Nested object references. Try IDs belonging to objects you do not own, for example an attachment ID from another user's report, or a report ID combined with an attachment ID. A positive result is a 200 with content you should not see rather than a 403 or 404.
  • Method variations. Repeat the request with HEAD and with range headers to see whether metadata or partial content leaks even where the full body is blocked. A positive result is a content length, type or byte range returned for an object you cannot legitimately access.
  • Identifier formats. Where IDs are UUIDs, test whether the application accepts a numeric ID, a different case, or a truncated form that maps to the same record. A positive result is any accepted alternative that resolves to another user's object.
  • Enumeration rate. Send a sequence of IDs and watch for rate limiting or lockout. A positive result for the defender is throttling; a positive result for the tester is a steady stream of distinct attachments with no slowdown.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

A bug report website run by the U.S. Department of Defence lets people submit reports and attach files to them. Each report belongs to the person who wrote it, and the files attached to it are meant to be private. The researcher found that the part of the website that hands out those files lacks proper authorization checks. Anyone, even someone who has never logged in, can ask for a file by its number and get it back. The numbers are numeric, so valid IDs can be guessed or enumerated one by one. This kind of mistake is called an Insecure Direct Object Reference, or IDOR. The report was rated high severity.

Background: the pieces involved

Before the steps make sense, here is what each part of the story is.

  • A web application is a program you use through your browser. You type an address, the browser sends a request to a server, and the server sends back a page or a file. Every click in a browser is really a request going out and a response coming back.
  • An endpoint is one specific address on that server that does one specific job. Think of a large office building: the building is the website, and each endpoint is a particular counter you walk up to. One counter takes your report, another hands you a file. The endpoint in this report is the counter that hands out attachments.
  • A bug report feature is the part of the site where users describe problems they have found. Each report is a private object: it belongs to the user who submitted it, and it can carry file attachments, such as screenshots or documents.
  • An attachment is a file stored alongside a report. The site keeps each one under a number so it can find it again later.
  • A cookie is a small piece of text your browser stores for a website and sends back with every request to that site. It is how the site remembers who you are between clicks. When you log in, the server gives your browser a cookie containing a session identifier, and on every later request the browser presents that cookie like a membership card at a club door. If you remove the card, the door staff no longer know you.
  • A session is the server's memory of your logged-in visit. The cookie is the ticket; the session is the record on the server that the ticket points to.
  • Authentication means proving who you are, usually by logging in. Authorization means deciding what a proven user is allowed to do. They are different questions: authentication asks "who are you?", authorization asks "may you see this?". The bug here is a failure of both, but the authorization failure is the heart of it.
  • An ID (identifier) is a label the site uses internally to point at a stored thing. In this application the attachment ID is a plain number, like 1568600.
  • Enumeration means trying a series of IDs in order to discover which ones exist. If IDs are sequential, enumeration is trivial: you just count.
  • An IDOR (Insecure Direct Object Reference) is when a website lets you name an internal object directly, by its ID, and does not check that you are allowed to have that object. The everyday comparison: a hotel where room keys are just the room number written on a card, and the front desk never checks that the card matches the guest. Anyone who writes "214" on a scrap of paper can walk into room 214. The fix is for the desk to check the guest list every time, not to hope nobody tries other numbers.

The endpoint in question is:

Text
/BugReport/Admin/Attachment/{id}

Read it piece by piece. /BugReport/ is the section of the site for bug reports. /Admin/ is a path segment that suggests an administrative area. /Attachment/ says this counter deals with attachments. {id} is a placeholder for the number of the specific attachment you want. So the full address for attachment number 1568600 is /BugReport/Admin/Attachment/1568600.

The intended behaviour is simple: a user viewing an attachment on a report they are allowed to see gets the file back, and nobody else does. The {id} is a sequential numeric identifier that points straight at a stored attachment.

Setting up

The only precondition the researcher describes is a valid user account. That account was used to reach the normal attachment-viewing flow and capture a legitimate request, so there would be a working example to modify. No specific tooling, product version or configuration is named in the report. The affected product and version fields are empty, and no CVE number was assigned. The host is redacted in the published report, as is the session cookie used in the captured request.

Finding it

The endpoint takes the object reference straight from the URL path. The identifier is a plain number, and the report notes that valid IDs can be enumerated or guessed. That combination raised the question of whether the server actually checks, per request, that the caller is entitled to the attachment being requested.

The test was therefore simple: take a request that works while authenticated, strip the authentication, and see whether the server still returns the file.

Exploitation

Step 1: log in and capture a legitimate request

With any valid user account, the researcher opened a bug report attachment and captured the resulting request:

HTTP
GET /BugReport/Admin/Attachment/1568600 HTTP/1.1

Host: █████████

Cookie: ████

Line by line:

  • GET is the type of request. It means "give me this thing". Browsers use it every time you open a page or download a file.
  • /BugReport/Admin/Attachment/1568600 is the path, the address of the endpoint plus the attachment number 1568600. This is the object reference: the number names the file directly.
  • HTTP/1.1 is the version of the language the browser and server use to talk.
  • Host: █████████ names the server being asked. The actual hostname is redacted in the published report.
  • Cookie: ████ is the membership card. It carries the authenticated session that the application would normally use to decide whether this user may see this attachment. The value is redacted.

Why this step: you need a request you know works, so that when you change one thing you can tell whether the change mattered. This is the control in the experiment.

Step 2: remove the authentication

The entire Cookie header was deleted, leaving the same request with no credentials at all:

HTTP
GET /BugReport/Admin/Attachment/1568600 HTTP/1.1

Host: █████████

Line by line:

  • GET /BugReport/Admin/Attachment/1568600 HTTP/1.1 is unchanged. The same file is being asked for.
  • Host: █████████ is unchanged. The same server is being asked.
  • The Cookie line is gone. There is now nothing identifying the caller. To the server, this request looks like a stranger off the street.

Why this step: the question is whether the server checks the caller's identity and permissions, or whether it just trusts the number in the URL. Removing the cookie isolates that question. If the file still comes back, the number alone was enough.

Step 3: send the unauthenticated request

The modified request was sent with no authentication cookies.

Why this step: this is the actual test. Everything before it was preparation.

Step 4: observe the response

The server responded with the file contents of the bug report attachment. No login, no session and no ownership check stood between an anonymous caller and the file.

Result: any unauthenticated user can view the attachments of any bug report by enumerating or guessing valid IDs. Because the identifiers are numeric, enumerating or guessing valid IDs is enough to reach attachments across reports; no knowledge of the owning user is required.

Why it works

The endpoint lacks proper authorization checks on the requested object. The identifier in the path is trusted as sufficient proof of entitlement, so the server returns whatever attachment matches the ID regardless of who is asking. This is a classic Insecure Direct Object Reference: the application exposes an internal object reference (the numeric attachment ID) and fails to enforce access control on it.

The failure is twofold. There is no check that the requesting user is permitted to see the attachment, and there is no authentication requirement on the endpoint at all, so even a request with no session is served. Whether the handler was meant to be restricted to administrative users, given the Admin segment in its path, is not stated in the report.

Impact

An attacker can read attachments belonging to private bug reports submitted by other users, simply by manipulating the ID parameter. Since the endpoint answers unauthenticated requests, no account is needed. The report notes that exposed material could include sensitive internal information such as unpatched security issues, confidential business data or personally identifiable information. That raises the risk of targeted attacks, information leaks and reputational damage to the organization. The severity assigned to the report is high.

Fix

The report proposes the following remediation actions:

  1. Implement strict authorization checks on the /BugReport/Admin/Attachment/{id} endpoint, verifying that the requesting user has permission to access the specified attachment.
  2. Ensure unauthenticated requests cannot retrieve any sensitive resources by enforcing authentication at this endpoint.
  3. Use indirect references, such as random UUIDs or tokens, instead of sequential numeric IDs, to reduce the risk of enumeration.
  4. Apply the principle of least privilege so users can only access resources they are explicitly authorized to view.
  5. Add logging and monitoring for unauthorized access attempts to detect exploitation early.
  6. Consider rate limiting to prevent mass enumeration of IDs.

The report does not describe any fix that was actually applied.

Variants to test

  • Other attachment and file endpoints. Look for sibling routes that take a numeric or otherwise guessable object ID in the path or query string, such as download, export or preview handlers. A positive result is the same file contents coming back after the Cookie header is removed.
  • Nested object references. Try IDs belonging to objects you do not own, for example an attachment ID from another user's report, or a report ID combined with an attachment ID. A positive result is a 200 with content you should not see rather than a 403 or 404.
  • Method variations. Repeat the request with HEAD and with range headers to see whether metadata or partial content leaks even where the full body is blocked. A positive result is a content length, type or byte range returned for an object you cannot legitimately access.
  • Identifier formats. Where IDs are UUIDs, test whether the application accepts a numeric ID, a different case, or a truncated form that maps to the same record. A positive result is any accepted alternative that resolves to another user's object.
  • Enumeration rate. Send a sequence of IDs and watch for rate limiting or lockout. A positive result for the defender is throttling; a positive result for the tester is a steady stream of distinct attachments with no slowdown.

Glossary

  • API: a defined set of addresses and rules that one program uses to ask another program for data or actions. Here, the endpoint is the part of the site's API that serves attachments.
  • Attachment: a file stored alongside a bug report.
  • Authentication: proving who you are, usually by logging in.
  • Authorization: deciding what a proven user is allowed to see or do.
  • Bug report: a private record a user submits describing a problem, which can carry attachments.
  • Cookie: a small piece of text a browser stores for a site and sends back with each request, used to remember who you are.
  • CVE: a public catalogue number for a known security vulnerability. None was assigned here.
  • Endpoint: one specific address on a server that performs one specific job.
  • Enumeration: trying a series of IDs in order to discover which ones exist.
  • GET: the request type that means "give me this thing".
  • HEAD: a request type like GET but asking only for the headers, not the body of the response.
  • Host: the name of the server being asked.
  • HTTP: the language browsers and servers use to exchange requests and responses.
  • ID: an identifier, a label the site uses internally to point at a stored thing.
  • IDOR (Insecure Direct Object Reference): a flaw where a site lets you name an internal object by its ID and does not check that you are allowed to have it.
  • Least privilege: the principle that users should only have the access they explicitly need.
  • Rate limiting: restricting how many requests can be made in a period of time, to slow down automated abuse.
  • Redacted: removed or blacked out in a published report to protect sensitive details.
  • Request: the message a browser sends to a server asking for something.
  • Response: the message a server sends back.
  • Session: the server's memory of your logged-in visit, identified by a cookie.
  • Severity: a rating of how serious a vulnerability is. This report was rated high.
  • Token: a value used in place of a predictable ID to make objects hard to guess.
  • UUID: a long random-looking identifier, used instead of a counting number to make guessing impractical.
  • Vulnerability: a weakness in a system that can be used to cause harm.

More by azraeldeathangel

View all

1 more disclosed report, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.