Skip to content
Access control Disclosed report Beginner

Unprotected ██████ and Test site API Exposes Documents, Credentials, and Emails in ██████████ Proposal System

The test/integration API for a web services system lacked authentication, allowing anyone to access documents, email templates, and sent emails. The sent emails contained authentication codes that could be used to log into the proposal system.

byteone Follow

Originally disclosed on HackerOne

  • Triaged in 44 hours
  • Fixed in 6 months
  • Disclosed after 2.8 years

Summary: The test/integration API of the █████ web services is publicly exposed: disclosing documents, emails, and credentials to what appears to be the Seaport Bid proposal system. Because I did not attempt any exploitation outside of that necessary to deem this a reportable issue, it is not clear if the data is only test generated or if the system contains production documents, credentials, etc.

███████

Description: While performing manual reconnaissance, I came across Swagger/API documentation for the ███ web services API at https://███████/.

The API endpoint appears to have four main types of functionality:

  1. Document storage/retrieval
  2. Email template storage
  3. Email generation
  4. PDF generation

Due to the lack of authentication on the API, the system can be easily abused by a minimally sophisticated attacker.

Impact & Steps to Reproduce

  1. Documents stored in the system can be uploaded, modified, or deleted via the API. Per the DoD program rules on data exfil, I did not try to access the documents. You can view a listing of the documents here:

https://███/api/1_0/Documents

  1. Email templates can be access and modified. For example, you can view all email templates here:

https://██████████/api/1_0/EmailTemplates

You can also add, modify, or delete templates via the API.

  1. Most importantly, you can view all of the emails that the system has sent via the API. The exact route is:

https://████/api/1_0/EmailMessages

The emails are highly sensitive because they contain the activation codes needed to create a new account and access the █████████ Proposal System at https://███/Bid/.

For example, one of the last emails sent includes the following:


{"resultmetadata":[{"emailId":"3f6f7fb7-167b-432d-b35b-f443709ba832","systemcode":null,"senderEmailAddress":"████ Admin<DoNotReply@█████.com>","acknowledgementRequested":false,"attachments":[],"tags":[],"tokens":null,"emailStatus":"Sent","Subject":"Your ███████ Authentication Code","Body":"Your authentication code is 373A51. This code will expire at 09:23 AM on 11/22/2019.\r\n\r\n-----------------------------------------------------------------\r\n\r\nYou may check in through the following link https://████/Bid.\r\n\r\nThank you for your business with ███████.\r\n\r\nPlease do not reply directly to this message. 

Note the █████ Authentication Code 373A51, which would allow an attacker to login to the system at https://█████/Bid.

The emails also include usernames of current users in the system who will have access expiring in the near future:

█████ You can view the full list of emails here:

https://█████████/api/1_0/EmailMessages

Suggested Mitigation/Remediation Actions

Utilize bearer token authentication on the API route so that unauthorized parties cannot query it. Alternatively, lock down access to the API endpoint to restricted IP addresses or networks so that it is no longer publicly accessible.

Impact

  • Upload, delete, or download sensitive files stored in the document DB
  • Send, read, and modify emails from ████ admin
  • Login to ████ proposal system using stolen authentication codes sent to users

The original report as published on HackerOne, by byteone. 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

Impact

An attacker could upload, delete, or download sensitive files, send, read, and modify emails from the admin, and log into the proposal system using stolen authentication codes; however, it is not clear if the data is only test generated or includes production data.

What the attacker needed

None

The fix

The API should be fixed by requiring bearer token authentication or restricting access to specific IP addresses or networks.

How it was found

  1. Find the Swagger/API documentation for the web services API during manual reconnaissance.
  2. Note the documents listing endpoint URL; the author did not access the documents.
  3. Access the email templates endpoint to view and modify templates.
  4. Access the email messages endpoint to view sent emails, including authentication codes.

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.

An API is a way for programs to talk to each other. This one had no login check, so anyone who found its address could read and change data, including emails with login codes. Those codes let someone sign in as other users.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.