Skip to content
Access control Disclosed report Beginner

Guest can set weight of a new issue

A guest user could set the weight of a new issue by adding a weight parameter to the issue creation request, even though the UI does not allow guests to set issue metadata. This let a guest assign an arbitrary weight to issues they created.

GitLab

Originally disclosed on GitLab

  • Fixed in 2 months
  • Disclosed after 2 months
Title:         Able to Open New Issue with Weight as Guest
Scope:         *.gitlab.com
Weakness:      None
Severity:      Low
Link:          https://hackerone.com/reports/411614
Date:          2018-09-20 03:03:01 +0000
By:            @ngalog

Summary: From https://docs.gitlab.com/ee/user/permissions.html, Gitlab doesn't allow guest user to assign new issue, submit new issue with labels etc. i.e. except the confidentiality of the issue, all of the other metadata of newly submitted issue are not allowed be set by Guest.

Description: Although there is no documentation clearly stated that guest are not allowed to submit issue with weight, however from the UI for Gitlab, I believe this is the intended design.

However, if you intercept the request when submitted a new issue as Guest, and add this to the POST request, you can set the weight of the issue.

PoC: https://gitlab.com/gitlab-org/gitlab-ce/issues/51669

Steps To Reproduce:

Go to any public project Submit a new issue, intercept the request

POST /gitlab-org/gitlab-ce/issues HTTP/1.1
Host: gitlab.com
Connection: close...

utf8=%E2%9C%93&authenticity_token=7R8s0gvvJcsytWxZ0lpwjBpnY7fi53Kh1DGF7ChpaXw1hkTwPq5oQnxjz7btPoPqhYeLdOPm9qi6j0esRufoXg%3D%3D&issue%5Btitle%5D=heavy&issue%5Bdescription%5D=This+issue+is+very+heavy&issue%5Bconfidential%5D=0&issue%5Block_version%5D=

Add this to the POST requests form

&issue%5Bweight%5D=9

The issue has a weight of 9 now

Impact

Guest can set the weight of a newly submitted issue

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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

Likely the server did not enforce the permission check on the weight attribute for guest users when processing the issue creation request.

Impact

A guest could set the weight of a newly submitted issue, bypassing the intended restriction on issue metadata.

What the attacker needed

Guest access to a public project; ability to intercept HTTP requests

How it was found

  1. Go to any public project.
  2. Submit a new issue and intercept the request.
  3. Add the weight parameter to the POST request form.
  4. Observe the issue now has the chosen weight.

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.

When you create an issue in GitLab, the website sends a form to the server. The server should check what you are allowed to change. Here, a low-privilege guest could sneak in an extra field for issue weight that the normal interface hides, and the server accepted it.

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 GitLab

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.