HexBrain

HackerOne · Report #2431495

"package_name" can be set as desired when submitting a Pentest Opportunity form

Validstatus
mediumseverity
63upvotes
19 Jun 2024disclosed

How it was found

Summary: Hello Team, While filling up the Pentest Opportunity form, the mutation AutoSavePentestOpportunity allowed me to set value to package_name (i.e =="package_name": "premium_p80"==) which should be done only by the internal reviewing staff upon submitting the form.

Steps To Reproduce

  1. Create New Pentest

  2. Intercept using burp and wait for auto update function to begin

  3. You will see the following query

mutation AutosavePentestOpportunity($input: AutosavePentestOpportunityInput!) {
  autosavePentestOpportunity(input: $input) {
    was_successful
    errors(first: 100) {
      edges {
        node {
          id
          type
          field
          message
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
  1. Include this line before forwarding the request "package_name": "premium_p80"

███████

  1. Complete the form and submit it

  2. Now, reopen the submitted form to check if OpportunityStatusQuery mutation shows the field ==package_name== as set before.

██████████

Check POC Video

██████████

A similar report: #2040756

Impact

Improper access control

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original