Skip to content
Access control Disclosed report Beginner

Create incidents in any project!

A user with only issue-creation permission could change the issue type parameter to 'incident' and create an incident in any project. This allowed unauthorised creation of incidents, which are typically restricted to higher-privileged users.

GitLab

Originally disclosed on GitLab

  • Fixed in 23 days
  • Disclosed after 23 days

HackerOne report #970619 by bull on 2020-08-30, assigned to @rchan-gitlab:

Report | How To Reproduce

Report

Hi,

I have found an issue which can be used by an attacker to create incident in any project where he can create issues. This includes,

  • public projects ex: (gitlab-org/gitlab)
  • public projects with hidden repositories
  • private projects where attacker is a guest and allowed to only create issue

POC:

As attacker:

  • As a lower privilege user, attempt to create a issue in target project, fill in details
  • intercept the request and click submit
  • change param issue[issue_type] value from issue to incident and forward the request

Now as maintainer of project go to https://[REDACTED]/USERNAME/PROJECT/-/incidents and you will see an incident being created.

Fix:

Allow creating issues with issue[issue_type]=incident by only privildged users

Let me know if you need any more information or if i missed something
Thanks
Bull

Impact

Create incidents in any project in which user has access to create issue
ex:

  • public projects
  • private project in which user is guest(least priviledge)
  • public project with private repos, in which issues can be created by anyone

How To Reproduce

Please add reproducibility information to this section:

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 application did not enforce separate authorisation for creating incidents versus issues, relying only on the general issue-creation permission.

Impact

An attacker with issue-creation permission could create incidents in any project, including public projects and private projects where they are a guest.

What the attacker needed

Attacker has permission to create issues in target project

How it was found

  1. As a lower privilege user, attempt to create an issue in the target project and fill in details.
  2. Intercept the request before submitting.
  3. Change the issue type parameter from 'issue' to 'incident' and forward the request.
  4. As a maintainer, visit the incidents page to see the created incident.

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.

In GitLab, issues and incidents are different types of work items. The server did not check if the user was allowed to create incidents, only if they could create issues. So by changing a hidden field in the request, a low-privilege user could create an incident.

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.