Skip to content
Access control Disclosed report Beginner

Any user could upload attachments to pentest scoping form they don't have access to

The attachment upload endpoint for pentest scoping forms did not check whether the authenticated user belonged to the organisation that owned the form. Any signed-in user who knew a form's identifier could upload files to another user's scoping form.

hillybott Follow

Originally disclosed on HackerOne

High 7.7 View original
  • Triaged in 17 days
  • Fixed in 24 days
  • Paid in 17 days
  • Disclosed after 39 days

Summary by the program

The root cause of this issue appears to be insufficient access controls implemented in the attachment upload functionality for pentest scoping forms. The endpoint responsible for handling attachment uploads did not properly validate the user's access rights to the specific scoping form, allowing any authenticated user to upload files as long as they had the scoping form ID.

According to the engineering team, the scoping form can be "accessed" by any signed in account, but they should not be able to access data/send mutations without authorization (the attachment controller logic is separate from the pentest opportunity's mutations). So a non-authorized signed in user would just see an empty scoping form that they cannot autosave/submit.

As a result of this, a fix has been implemented to prevent attachment uploads for non-org members of the scoping form.

The report

hello team in my recent testing i found that any users could upload attachments to any users pentest scoping form without having access to it as long as they have the scope id. note: before you start you will require two account to test for this bug. steps to reproduce:

  1. create a sandbox
  2. go to pentest an start an pentest form

3.copy the pentest form id from the url 4. log in to your second account 5. send the following request

================================================================================================================== POST /attachments HTTP/2 Host: hackerone.com Cookie: your cookies -----------------------------22121373215470710503552942440 Content-Disposition: form-data; name="tracer"

989953fa-5635-43c9-b584-48736d224b15 -----------------------------22121373215470710503552942440 Content-Disposition: form-data; name="context_type"

PentestOpportunity -----------------------------22121373215470710503552942440 Content-Disposition: form-data; name="file"; filename="does not have a option to change his own permission.png" Content-Type: image/png

==================================================================================================================== 6.from your previous account reload the scoping form and go to review and submit . 7. you will notice that the file have been successfully uploaded.

Impact

business logic error could attach malicious files to anyones scoping form.

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

The attachment upload endpoint validated the form identifier but did not verify that the requesting user was a member of the organisation that owned the scoping form.

Impact

An unauthorised user could attach files, potentially malicious, to another user's scoping form; a non-authorised user would see an empty form they cannot autosave or submit.

What the attacker needed

Two accounts; knowledge of the target scoping form identifier

The fix

A fix was implemented to block attachment uploads from users who are not members of the organisation that owns the scoping form.

How it was found

  1. Create a sandbox and start a pentest scoping form.
  2. Copy the scoping form identifier from the URL.
  3. Log in to a second account.
  4. Send an attachment upload request using the copied form identifier.
  5. Reload the scoping form from the first account and open the review and submit section.
  6. Observe that the file was uploaded successfully.

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 scoping form is a page where a company describes a penetration test it wants done. The upload feature for files on that page only checked that you were logged in, not that the form was yours. So anyone with an account and the form's identifier could attach files to someone else's form.

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 by hillybott

View all

1 more disclosed report, best first.

More from HackerOne

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.