Skip to content
IDOR Disclosed report Beginner

Access to all █████████ files, including CAC authentication bypass

An IDOR in adding recipients let an unauthenticated attacker change a package ID to access and download files, including FOUO and CAC-protected ones; separate IDORs allowed email spoofing.

cablej_dds Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 5 days
  • Fixed in 4 months
  • Disclosed after 5 months

Summary:

Due to an Insecure Direct Object Reference (IDOR) in adding recipients to a shared package on ██████████, an unauthenticated attacker can access all files uploaded to ████. As described on ██████████ website, this includes documents with classifications up to FOUO, including PII / PHI Privacy Act data, and documents classified FOUO//CLOSE HOLD, FOUO//SENSITIVE, and FOUO//LIMITED DISTRIBUTION DOCUMENT.

Additionally, █████ enforces CAC pickup requirements to require users to first authorize via CAC. This too, can be bypassed, allowing an attacker to download any file sent over ████.

Note that in addition to this vulnerability, other IDORs exist in sensitive areas, such as confirming email addresses, allowing an attacker to pretend to send documents from any email address.

Impact

Based on analysis of file ids, over 2000 documents are uploaded per hour to ███. When combined with a ██████, this exposes over 500,000 recent documents and new documents that are sent every hour. Additionally, as metadata for historical documents is not purged, this also includes details such as sender names/emails, file descriptions, and share dates for over 15 million past documents.

Step-by-step Reproduction Instructions

  1. Visit████/Default.aspx and proceed to send a file to yourself.
  2. Click through the verification email and verify the file.
  3. Log in to the Package Status page at███/StatusLogIn.aspx?PackageID=x using the provided password.
  4. Intercept the request to add a new recipient via the recipients list, entering your email address as the email to add. This is a POST request to POST /████████/Status.aspx?ID=x.
  5. Modify the ID parameter to any other number, e.g. decrement the number by 1.
  6. Observe that the package will be sent to your email, which can then be downloaded using the provided password.
  7. Repeat with any numeric ID to download hundreds of thousands of files.

To bypass CAC authentication:

A user can elect to require CAC authentication when downloading a file. This can be bypassed via the normal file download flow.

  1. Visit█████/███?id=15745307 (the initial file ID here does not matter).
  2. Enter the password emailed for the file that requires CAC authentication.
  3. Intercept the request to submit the form. Replace the id parameter in the url with the id of the file with CAC authentication.
  4. Observe that the file's information will be displayed and can be downloaded.

Suggested Mitigation/Remediation Actions

  • Ensure that a user can only modify their own packages
  • Ensure that a file cannot be downloaded without CAC authentication
  • Ensure that a user can only verify their own packages.

Impact

.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application trusted a user-supplied package ID without checking that the requester owned or was authorised for that package.

Impact

An attacker could access over 500,000 recent documents and metadata for over 15 million past documents, and could bypass CAC authentication to download protected files.

What the attacker needed

No account needed; victim does not need to click anything; knowledge of a valid package ID

The fix

The application should ensure users can only modify their own packages and that files cannot be downloaded without CAC authentication.

How it was found

  1. Send a file to yourself and verify it via the email link.
  2. Log in to the Package Status page using the provided password.
  3. Intercept the request to add a recipient and enter your email address.
  4. Change the ID parameter to another number.
  5. Observe the package is sent to your email and can be downloaded with the password.
  6. Repeat with any numeric ID to download many files.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A file-sharing website used a number in the web address to identify each package. By changing that number, anyone could open someone else's package and download its files without logging in. The site also had a rule that some files needed a special government smart card (CAC) to download, but the same trick skipped that check.

What is IDOR?

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.

More by cablej_dds

View all

8 more disclosed reports, 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.