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.
Originally disclosed on HackerOne
- 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
- Visit████/Default.aspx and proceed to send a file to yourself.
- Click through the verification email and verify the file.
- Log in to the Package Status page at███/StatusLogIn.aspx?PackageID=x using the provided password.
- Intercept the request to add a new recipient via the recipients list, entering your email address as the email to add. This is a
POSTrequest toPOST /████████/Status.aspx?ID=x. - Modify the
IDparameter to any other number, e.g. decrement the number by 1. - Observe that the package will be sent to your email, which can then be downloaded using the provided password.
- 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.
- Visit█████/███?id=15745307 (the initial file ID here does not matter).
- Enter the password emailed for the file that requires CAC authentication.
- Intercept the request to submit the form. Replace the
idparameter in the url with the id of the file with CAC authentication. - 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
.
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
- Send a file to yourself and verify it via the email link.
- Log in to the Package Status page using the provided password.
- Intercept the request to add a recipient and enter your email address.
- Change the ID parameter to another number.
- Observe the package is sent to your email and can be downloaded with the password.
- 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.