Guest can upload and delete metrics images to incidents that they created when they were reporter
GitLab
Originally disclosed on GitLab
- Fixed in 51 days
- Disclosed after 51 days
HackerOne report #1410256 by ashish_r_padelkar on 2021-11-25, assigned to @dcouture:
Report | How To Reproduce
Report
Summary
Hello,
As per new permissions, guest users are not allowed to create incidents. https://docs.gitlab.com/ee/operations/incident_management/incidents.html#create-incidents-manually.
This works fine , however guest users are still able to upload/delete metrics images to the incidents that they created by themselves( when they were reporters).
Steps to reproduce
-
As a reporter user, create an incident in any of your project at
https://gitlab.com/<NameSpace>/<ProjectName>/-/issues/new?issuable_template=incident&issue%5Bissue_type%5D=incident -
Project Admin demotes the reporter user to guest user.
-
As a guest user, you can access the incident created in step1.
-
Click on metrics tab and you are still able to upload or delete any existing metrics uploaded there.
-
This is possible because incident was created by same user when they were reporter but this should not happen now as they have guest permissions.
What is the current bug behavior?
Guest can upload and delete metrics images to incidents that they created when they were reporter. This should be restricted to users with reporter role only no matter who created the incidents.
What is the expected correct behavior?
As mentioned above , only users with reporter roles should be allowed to upload/delete instead of whoever created the incident.
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Guest can upload and delete metrics images to incidents that they created when they were reporter
How To Reproduce
Please add reproducibility information to this section:
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity access control bug in gitlab.com. GitLab made it public on 21 January 2022. Fixed in version 14.8.
About 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.