HackerOne · Report #2431495
"package_name" can be set as desired when submitting a Pentest Opportunity form
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
-
Create New Pentest
-
Intercept using burp and wait for auto update function to begin
-
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
}
}
- Include this line before forwarding the request
"package_name": "premium_p80"
███████
-
Complete the form and submit it
-
Now, reopen the submitted form to check if
OpportunityStatusQuerymutation shows the field ==package_name== as set before.
██████████
Check POC Video
██████████
A similar report: #2040756
Impact
Improper access control