Skip to content
IDOR Disclosed report Intermediate

Attacker can create malicious child epics linked to a victim's epic in an unrelated group

An attacker with a GitLab Ultimate license could create a child epic linked to a victim's epic in a different group by manipulating the parent_id parameter in an API request. This allowed the attacker to associate their epic with the victim's, potentially leading the victim to navigate to the attacker's group.

cryptopone Follow

Originally disclosed on HackerOne

Bounty$1,160 Medium 4.3 View original
  • Triaged in 11 days
  • Fixed in 30 days
  • Paid in 30 days
  • Disclosed after 3 months

Summary

An attacker with the capabilities to create multi-level epics (requires Ultimate license) may create malicious children epics by referring to a victim's epic via the parent_id. This is done through the REST api via the attacker's endpoint (https://gitlab.example.com/api/v4/groups/attackergroup/epics). The attacker can obtain the victim ID without being a member of the victim's group if the victim uses Public/Internal visibility.

It is also possible to add child epics to private groups, and although the attacker would have to guess or know the epic id and while no confidential information is leaked initially, a victim may still navigate to the attacker's epic and leak information that way.

Steps to reproduce

Note: Attacker requires BurpSuite and an Ultimate license and Victim may also need Ultimate (but maybe just Premium?). The attacker needs the ultimate license to create "Multi-level epics" but victim may need it too (I am unable to verify at this time as my whole self-hosted instance is licensed as Ultimate).

Victim

  1. Log into GitLab and create a new group called "VictimEpicGroup" with internal or public visibility (https://gitlab.example.com/groups/new#create-group-pane).
  2. Create an epic inside of the group created from Step 1 called "Public Victim Epic" (https://gitlab.example.com/groups/victimepicgroup/-/epics/new).

Attacker

  1. Log into GitLab and create a new group called "AttackerEpicGroup" with internal or public visibility (https://gitlab.example.com/groups/new#create-group-pane).
  2. Create an epic inside of the group created from Step 1 called "Attacker Public Epic" (https://gitlab.example.com/groups/attackerepicgroup/-/epics/new).
  3. Navigate to the Victim's epic to obtain the global epic id (https://gitlab.example.com/groups/victimepicgroup/-/epics/1).
  4. View page source and search for "gid://gitlab/Epic". One of the first results will be similar to:
HTML
<button aria-label="Add a to do" issuable-type="epic" issuable-id="gid://gitlab/Epic/29" type="button" class="btn hide-collapsed btn-default btn-sm gl-button" size="small"><!----> <!---->  <span class="gl-button-text">  Add a to do </span></button>

(in this case the attacker is targeting 29).

  1. Navigate to the attacker's epic created in step 2 (https://gitlab.example.com/groups/attackerepicgroup/-/epics/1).
  2. In the "Child issues and epics" section click "Add" -> "Add a new epic".
  3. Set the title to "Attacker Child Epic" and group to "AttackerGroup".
  4. Set BurpSuite to intercept requests via "Proxy" -> "Intercept" and ensure the intercept button states "Intercept is on".
  5. Back in the browser window click "Create epic".
  6. Intercept the POST request to /api/v4/groups/attackerepicgroup/epics in BurpSuite.
  7. Update parent_id in the POST body from the current value to the victim's value in step 4 (In this example use 29).

For example, if the body contains:

JSON
{"parent_id":30,"confidential":false,"title":"Attacker Child Epic"}

Update the parent_id so the request looks like:

JSON
{"parent_id":29,"confidential":false,"title":"Attacker Child Epic"}
  1. Click forward to send the request and intercept can now be turned off.
  2. Note the epic is created successfully.

Victim

  1. Navigate to the epic the victim created earlier (https://gitlab.example.com/groups/victimepicgroup/-/epics/1).
  2. Note the attacker's epic is now associated to the epic as a child.
  3. Click on the attacker's epic and notice the URL of the page is now within the attacker's group/control.

Impact

An attacker is able to create an attacker controlled epic linked to a victim's epic inside of a separate group not controlled by the attacker.

My initial report uses the following reasoning for the CVSS score:

  • AC:L: IDOR using simple guessable ID - Attacker can find the epic ID with public/internal projects or if they previously obtained the id from a private project they no longer have access to.
  • PR:L: Attacker requires an account but does not necessarily require roles within the victim's group.
  • UI:N: Attacker is able to create the child epic linked to the victim without requiring action from the victim.
  • S:U: Impact is localized to the exploitable component.
  • C:N: No confidential information is disclosed.
  • I:L: Victim is able see the association to the attacker's child epic and may trust/navigate to the attacker's group when clicking on it.
  • A:N: No Availability impact.

Examples

I have not tested this bug on GitLab.com as I do not have two ultimate accounts to test with at this time.

The following group exports help demonstrate the parent_id link with the attacker's epic.

Attacker Epic Group - Export F2209069

Victim Epic Group - Export F2209070

What is the current bug behavior?

An attacker using their own group is able to create new epics that are linked to a victim's epic (via parent_id) where they have no privileges.

What is the expected correct behavior?

When an attacker creates an epic and specifies a parent_id for an epic inside of a group they do not have rights for, the server should return an error.

Relevant logs and/or screenshots

Demonstration of an attacker creating a child epic and linking to an unrelated victim epic

AttackerCreatingChildEpic.mp4 From the original on HackerOne

Output of checks

Results of GitLab environment info

System information
System:		Ubuntu 22.04
Proxy:		no
Current User:	git
Using RVM:	no
Ruby Version:	2.7.7p221
Gem Version:	3.1.6
Bundler Version:2.3.15
Rake Version:	13.0.6
Redis Version:	6.2.8
Sidekiq Version:6.5.7
Go Version:	unknown

GitLab information
Version:	15.9.2-ee
Revision:	d80458522dd
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	13.8
URL:		http://gitlab.cryptopone.com
HTTP Clone URL:	http://gitlab.cryptopone.com/some-group/some-project.git
SSH Clone URL:	[email protected]:some-group/some-project.git
Elasticsearch:	no
Geo:		no
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers: 

GitLab Shell
Version:	14.17.0
Repository storages:
- default: 	unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path:		/opt/gitlab/embedded/service/gitlab-shell

Impact

An attacker is able to create an attacker controlled epic linked to a victim's epic inside of a separate group not controlled by the attacker.

My initial report uses the following reasoning for the CVSS score:

  • AC:L: IDOR using simple guessable ID - Attacker can find the epic ID with public/internal projects or if they previously obtained the id from a private project they no longer have access to.
  • PR:L: Attacker requires an account but does not necessarily require roles within the victim's group.
  • UI:N: Attacker is able to create the child epic linked to the victim without requiring action from the victim.
  • S:U: Impact is localized to the exploitable component.
  • C:N: No confidential information is disclosed.
  • I:L: Victim is able see the association to the attacker's child epic and may trust/navigate to the attacker's group when clicking on it.
  • A:N: No Availability impact.

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

GitLab groups can contain epics, and with the multi-level epics feature (available on the Ultimate tier) an epic can have child epics. The relationship between a child and its parent is expressed through a parent_id field that the front end sends to the REST API when a new epic is created. The endpoint used by the group epic creation form is:

The bug reported here is that the server accepts a parent_id that points at an epic in a group the requesting user has no rights over. The attacker creates their own epic in their own group, but attaches it as a child of a victim's epic in an unrelated group.

Setup

The researcher lists the following preconditions:

  • The attacker needs an Ultimate licence to create multi-level epics. The victim may also need Ultimate, but the researcher could not verify this because the whole self-hosted instance was licensed as Ultimate.
  • The attacker needs an account, but does not need any role in the victim's group.
  • The attacker uses BurpSuite to intercept and modify the creation request.
  • The victim's group must be public or internal for the attacker to read the victim's epic ID from the page. The researcher also notes that child epics can be added to private groups if the attacker guesses or knows the epic ID.

The instance used for testing reported:

Text
GitLab information
Version:	15.9.2-ee
Revision:	d80458522dd
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	13.8

The report does not say whether the bug was tested on GitLab.com; the researcher states they had not tested it there because they did not have two Ultimate accounts.

Finding it

The epic creation request carries a parent_id chosen by the client, and the server does not check whether the caller has access to the epic referenced by that ID. Because epic IDs are global and appear in the page source of any epic the attacker can view, an attacker can point parent_id at an epic in a group they do not belong to. The same applies to private groups if the ID is known or guessed, although in that case no confidential information is leaked at first.

Exploitation

Victim: create a group and an epic

  1. Log into GitLab and create a new group called VictimEpicGroup with internal or public visibility at https://gitlab.example.com/groups/new#create-group-pane.
  2. Create an epic inside that group called Public Victim Epic at https://gitlab.example.com/groups/victimepicgroup/-/epics/new.

Attacker: create a group and an epic

  1. Log into GitLab and create a new group called AttackerEpicGroup with internal or public visibility at https://gitlab.example.com/groups/new#create-group-pane.
  2. Create an epic inside that group called Attacker Public Epic at https://gitlab.example.com/groups/attackerepicgroup/-/epics/new.

Attacker: obtain the victim's global epic ID

  1. Navigate to the victim's epic at https://gitlab.example.com/groups/victimepicgroup/-/epics/1.
  2. View the page source and search for gid://gitlab/Epic. One of the first results looks like this:
HTML
<button aria-label="Add a to do" issuable-type="epic" issuable-id="gid://gitlab/Epic/29" type="button" class="btn hide-collapsed btn-default btn-sm gl-button" size="small"><!----> <!---->  <span class="gl-button-text">  Add a to do </span></button>

In this example the attacker is targeting 29, the numeric part of the global ID.

Attacker: create a child epic and intercept the request

  1. Navigate to the attacker's epic at https://gitlab.example.com/groups/attackerepicgroup/-/epics/1.
  2. In the "Child issues and epics" section click "Add" then "Add a new epic".
  3. Set the title to Attacker Child Epic and the group to AttackerGroup.
  4. In BurpSuite enable interception via "Proxy" then "Intercept", and make sure the button reads "Intercept is on".
  5. Back in the browser, click "Create epic".
  6. Intercept the POST request to /api/v4/groups/attackerepicgroup/epics.
  7. Change parent_id in the POST body from its current value to the victim's value from step 4, here 29. If the body contains:
JSON
{"parent_id":30,"confidential":false,"title":"Attacker Child Epic"}

change it so the request looks like:

JSON
{"parent_id":29,"confidential":false,"title":"Attacker Child Epic"}
  1. Forward the request and turn interception off.
  2. The epic is created successfully.

Victim: observe the link

  1. Navigate to the epic created earlier at https://gitlab.example.com/groups/victimepicgroup/-/epics/1.
  2. The attacker's epic now appears as a child of the victim's epic.
  3. Clicking the attacker's epic takes the victim to a page whose URL is inside the attacker's group, that is, under the attacker's control.

The video shows an attacker creating a child epic and linking it to an unrelated victim epic.

AttackerCreatingChildEpic.mp4 From the original on HackerOne

Root cause

The server trusts the client-supplied parent_id when creating an epic and does not verify that the caller has permission on the epic it references. The expected behaviour is that the server should return an error when the referenced parent epic is in a group the caller has no rights over. The report does not describe the server-side code, so the exact location of the missing check is not stated.

Impact

An attacker can create an attacker-controlled epic linked to a victim's epic inside a separate group the attacker does not control. The victim sees the association and may trust it and navigate to the attacker's group when clicking on it. The researcher's CVSS reasoning is:

  • AC:L: IDOR using a simple guessable ID. The attacker can find the epic ID through public or internal projects, or from a private project they previously had access to.
  • PR:L: the attacker needs an account but not a role in the victim's group.
  • UI:N: no action from the victim is needed to create the link.
  • S:U: the impact is localised to the exploitable component.
  • C:N: no confidential information is disclosed.
  • I:L: the victim can see the association and may trust or navigate to the attacker's group.
  • A:N: no availability impact.

For private groups, the attacker has to guess or know the epic ID, and no confidential information is leaked initially, but the victim may still navigate to the attacker's epic and leak information that way.

Fix

The expected behaviour, as stated in the report, is that when a user creates an epic and specifies a parent_id for an epic inside a group they have no rights over, the server should return an error.

Variants to test

  • Try the same parent_id substitution on other endpoints that accept a parent reference, such as issue creation with a parent epic or work item, and check whether an epic in a group you cannot access can be referenced. A positive result is a successful creation response and the parent showing the new child.
  • Repeat against private groups using IDs harvested earlier, for example from a project you have since lost access to. A positive result is the same successful link without any membership in the target group.
  • Test whether the same cross-group reference works when the new object is created through a different group than the one owning the parent, and whether the response differs between public, internal and private parents.

Hunting notes

This kind of bug hides in features where a client sends an object identifier that refers to a resource in another scope: parent/child links, cross-project references, and any field ending in _id that is not scoped to the current group or project. During recon, look for creation forms whose requests carry such identifiers, and check whether the identifier is global and visible in page source, as the gid://gitlab/Epic/<id> value was here. The report shows the victim's epic page listing the attacker's epic as a child, and that clicking it leads to the attacker's group. The report also includes group exports (F2209069 for the attacker's group and F2209070 for the victim's) to demonstrate the parent_id link.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

GitLab is a website where teams keep their software projects, and it also has a feature called epics: large pieces of work that can be broken down into smaller pieces. On the paid Ultimate plan, an epic can have child epics underneath it, like a heading in a document having sub-headings. When you create a child epic in the browser, the page quietly sends a small message to GitLab's server saying "make this new epic, and its parent is epic number X". That message is called an API request, and the number X is called parent_id.

The bug is that the server believed whatever number the browser sent. A logged-in user could create an epic in their own group, but tell the server its parent was an epic belonging to somebody else, in a group the user had no rights over. The victim would then see the attacker's epic listed as a child of their own epic, and clicking it would take them into the attacker's group.

The researcher rated it medium severity (CVSS 4.3) and it was paid a bounty of 1,160 USD. It was disclosed on 2 June 2023.

Background you need first

A few ideas come up again and again, so here they are from zero.

  • Group: a container in GitLab that holds projects and people. Think of a folder that a team shares.
  • Epic: a large unit of work inside a group. Think of a big goal written on a card, such as "launch the new website".
  • Child epic: a smaller epic attached underneath a bigger one. The link is stored as a parent/child relationship.
  • Multi-level epics: the GitLab feature that allows child epics. The report says it requires an Ultimate licence, which is GitLab's most expensive plan.
  • API: the way one computer program talks to another. When you click a button on a website, the page often sends a short message to the server behind the scenes and the server replies. The address of that message is called an endpoint. The endpoint used by the epic creation form is:

Read it left to right: /api means "this is a program-to-program message", v4 is the version of the API, groups/<group> says which group the epic belongs to, and epics says what kind of thing is being created. The <group> part is a placeholder that gets filled in with the real group name.

  • POST request: the kind of API message used to create something new. A GET request is used to read something. When you fill in a form and press a button, the browser usually sends a POST.
  • JSON: a simple text format for sending structured data, made of names and values in curly brackets. The body of the epic creation request is JSON.
  • parent_id: the field in that JSON that says which epic is the parent. It is just a number.
  • IDOR (Insecure Direct Object Reference): a bug where the server lets you name an object by its number (its ID) and does not check whether that object is yours to touch. The everyday comparison: a cloakroom where you hand in ticket number 29 and get somebody else's coat, because the attendant never checks whose ticket it is. Here the "object" is an epic and the "ticket" is the number in parent_id.
  • BurpSuite: a tool that sits between your browser and the website and lets you pause a request, read it, change it, and then let it continue. Think of a postal worker who can open your letter, edit a word, and seal it again before delivery. The report uses it to change parent_id after the browser has built the request but before the server sees it.
  • Intercept: the BurpSuite mode where it holds each request and waits for you to press forward.
  • Page source: the raw text of a web page, which you can view in any browser. It often contains hidden data that is not shown on screen.
  • Global ID: a number that is unique across the whole GitLab installation, not just inside one group. That is what makes this bug possible: epic 29 is epic 29 everywhere, so a number seen on one page can be used on another.

Setup

The researcher lists what is needed before starting:

  • The attacker needs an Ultimate licence to create multi-level epics. The victim may also need Ultimate, but the researcher could not verify this because the whole self-hosted instance was licensed as Ultimate.
  • The attacker needs an account, but does not need any role in the victim's group.
  • The attacker uses BurpSuite to intercept and modify the creation request.
  • The victim's group must be public or internal for the attacker to read the victim's epic ID from the page. The researcher also notes that child epics can be added to private groups if the attacker guesses or knows the epic ID.

The instance used for testing reported:

Text
GitLab information
Version:	15.9.2-ee
Revision:	d80458522dd
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	13.8

This is the output of a GitLab diagnostic command. Version is the GitLab release, Revision is the exact code build, Directory is where the application lives on the server, and DB Adapter and DB Version describe the database behind it. It tells the reader which version the bug was seen on.

The report does not say whether the bug was tested on GitLab.com; the researcher states they had not tested it there because they did not have two Ultimate accounts.

Finding it

The epic creation request carries a parent_id chosen by the client, and the server does not check whether the caller has access to the epic referenced by that ID. Because epic IDs are global and appear in the page source of any epic the attacker can view, an attacker can point parent_id at an epic in a group they do not belong to. The same applies to private groups if the ID is known or guessed, although in that case no confidential information is leaked at first.

Exploitation

Victim: create a group and an epic

  1. Log into GitLab and create a new group called VictimEpicGroup with internal or public visibility at https://gitlab.example.com/groups/new#create-group-pane.
  2. Create an epic inside that group called Public Victim Epic at https://gitlab.example.com/groups/victimepicgroup/-/epics/new.

Step 1 sets up the victim's group. Visibility is who can see it: public means anyone, internal means any logged-in user, private means only members. The attacker needs the victim's group to be public or internal so they can open the victim's epic page and read the ID from it. Step 2 creates the epic that will later be given an unwanted child.

Attacker: create a group and an epic

  1. Log into GitLab and create a new group called AttackerEpicGroup with internal or public visibility at https://gitlab.example.com/groups/new#create-group-pane.
  2. Create an epic inside that group called Attacker Public Epic at https://gitlab.example.com/groups/attackerepicgroup/-/epics/new.

These two steps give the attacker a group and an epic of their own. The attacker's epic is the one that will receive the malicious child. The attacker never needs to be a member of the victim's group.

Attacker: obtain the victim's global epic ID

  1. Navigate to the victim's epic at https://gitlab.example.com/groups/victimepicgroup/-/epics/1.
  2. View the page source and search for gid://gitlab/Epic. One of the first results looks like this:
HTML
<button aria-label="Add a to do" issuable-type="epic" issuable-id="gid://gitlab/Epic/29" type="button" class="btn hide-collapsed btn-default btn-sm gl-button" size="small"><!----> <!---->  <span class="gl-button-text">  Add a to do </span></button>

In this example the attacker is targeting 29, the numeric part of the global ID.

Step 3 opens the victim's epic page in the browser. Step 4 is the trick: the page looks normal on screen, but its source code contains a button for the "Add a to do" action, and that button carries the epic's global ID in an attribute called issuable-id. Reading the HTML line by line:

  • <button starts a button element.
  • aria-label="Add a to do" is the label read out by screen readers.
  • issuable-type="epic" says the thing this button acts on is an epic.
  • issuable-id="gid://gitlab/Epic/29" is the global ID. gid stands for global ID, gitlab is the system, Epic is the type, and 29 is the number the attacker wants.
  • type="button" and class="..." are ordinary styling and behaviour attributes.
  • The <!----> and <span> parts are empty placeholders and the visible button text.

The attacker only needs the number 29. This works because the victim's group is public or internal, so the attacker is allowed to open the page at all.

Attacker: create a child epic and intercept the request

  1. Navigate to the attacker's epic at https://gitlab.example.com/groups/attackerepicgroup/-/epics/1.
  2. In the "Child issues and epics" section click "Add" then "Add a new epic".
  3. Set the title to Attacker Child Epic and the group to AttackerGroup.
  4. In BurpSuite enable interception via "Proxy" then "Intercept", and make sure the button reads "Intercept is on".
  5. Back in the browser, click "Create epic".
  6. Intercept the POST request to /api/v4/groups/attackerepicgroup/epics.
  7. Change parent_id in the POST body from its current value to the victim's value from step 4, here 29. If the body contains:
JSON
{"parent_id":30,"confidential":false,"title":"Attacker Child Epic"}

change it so the request looks like:

JSON
{"parent_id":29,"confidential":false,"title":"Attacker Child Epic"}
  1. Forward the request and turn interception off.
  2. The epic is created successfully.

Steps 5 to 7 are ordinary use of the website: the attacker opens their own epic and starts creating a child under it. The browser fills in parent_id with the attacker's own epic, which in the example is 30.

Step 8 turns on BurpSuite's interception so the request is paused before it leaves the machine. Step 9 makes the browser send it. Step 10 is where the paused request is found: it is a POST to the attacker's own group endpoint, /api/v4/groups/attackerepicgroup/epics, which is exactly the endpoint shown at the start.

Step 11 is the whole attack. The JSON body has three fields:

  • parent_id is the number of the parent epic. The attacker changes it from 30 (their own epic) to 29 (the victim's epic).
  • confidential is a true/false flag saying whether the epic is confidential. It stays false.
  • title is the name shown on screen. It stays Attacker Child Epic.

Only one number changes. The request still goes to the attacker's own group, so it passes whatever permission checks apply to that group. The server accepts epic 29 as the parent even though the attacker has no rights over it.

Step 12 lets the edited request continue to the server. Step 13 records the result: the server accepts it and creates the epic.

Victim: observe the link

  1. Navigate to the epic created earlier at https://gitlab.example.com/groups/victimepicgroup/-/epics/1.
  2. The attacker's epic now appears as a child of the victim's epic.
  3. Clicking the attacker's epic takes the victim to a page whose URL is inside the attacker's group, that is, under the attacker's control.

The victim does nothing unusual: they open their own epic and see an extra child they never created. The URL in step 3 is the important part, because it shows the victim being moved from their own group into the attacker's group.

The video shows an attacker creating a child epic and linking it to an unrelated victim epic.

AttackerCreatingChildEpic.mp4 From the original on HackerOne

Root cause

The server trusts the client-supplied parent_id when creating an epic and does not verify that the caller has permission on the epic it references. The expected behaviour is that the server should return an error when the referenced parent epic is in a group the caller has no rights over. The report does not describe the server-side code, so the exact location of the missing check is not stated.

In everyday terms: the guard at the door only checks that you are allowed into your own building, and never checks the address you wrote on the parcel inside.

Impact

An attacker can create an attacker-controlled epic linked to a victim's epic inside a separate group the attacker does not control. The victim sees the association and may trust it and navigate to the attacker's group when clicking on it. The researcher's CVSS reasoning is:

  • AC:L: IDOR using a simple guessable ID. The attacker can find the epic ID through public or internal projects, or from a private project they previously had access to.
  • PR:L: the attacker needs an account but not a role in the victim's group.
  • UI:N: no action from the victim is needed to create the link.
  • S:U: the impact is localised to the exploitable component.
  • C:N: no confidential information is disclosed.
  • I:L: the victim can see the association and may trust or navigate to the attacker's group.
  • A:N: no availability impact.

CVSS is a scoring system for security bugs. Each line is one measurement, and the letters after the colon are the value chosen. AC is attack complexity, PR is privileges required, UI is user interaction, S is scope, and C, I and A are confidentiality, integrity and availability. L means low, N means none, U means unchanged.

For private groups, the attacker has to guess or know the epic ID, and no confidential information is leaked initially, but the victim may still navigate to the attacker's epic and leak information that way.

Fix

The expected behaviour, as stated in the report, is that when a user creates an epic and specifies a parent_id for an epic inside a group they have no rights over, the server should return an error.

Variants to test

  • Try the same parent_id substitution on other endpoints that accept a parent reference, such as issue creation with a parent epic or work item, and check whether an epic in a group you cannot access can be referenced. A positive result is a successful creation response and the parent showing the new child.
  • Repeat against private groups using IDs harvested earlier, for example from a project you have since lost access to. A positive result is the same successful link without any membership in the target group.
  • Test whether the same cross-group reference works when the new object is created through a different group than the one owning the parent, and whether the response differs between public, internal and private parents.

Hunting notes

This kind of bug hides in features where a client sends an object identifier that refers to a resource in another scope: parent/child links, cross-project references, and any field ending in _id that is not scoped to the current group or project. During recon, look for creation forms whose requests carry such identifiers, and check whether the identifier is global and visible in page source, as the gid://gitlab/Epic/<id> value was here. The report shows the victim's epic page listing the attacker's epic as a child, and that clicking it leads to the attacker's group. The report also includes group exports (F2209069 for the attacker's group and F2209070 for the victim's) to demonstrate the parent_id link.

Glossary

  • API: the way one program talks to another over the network, usually by sending a request to an address and getting a reply.
  • API endpoint: the specific address a request is sent to, such as /api/v4/groups/<group>/epics.
  • Authorisation check: a check on the server that the person making a request is allowed to do that particular thing.
  • BurpSuite: a tool that sits between browser and server so requests can be paused, read and edited.
  • Child epic: an epic attached underneath a larger parent epic.
  • Confidential: a flag on a GitLab item meaning it is restricted to certain people.
  • CVSS: a standard scoring system that turns a security bug into a number and a set of measurements.
  • Epic: a large unit of work inside a GitLab group.
  • GET request: an API message used to read something.
  • Global ID: an identifier that is unique across the whole installation, not just inside one group.
  • Group: a GitLab container that holds projects and members.
  • HTML: the text format web pages are written in, including tags such as <button>.
  • IDOR (Insecure Direct Object Reference): a bug where the server lets you name an object by its number without checking that it is yours.
  • Intercept: the BurpSuite mode that holds each request until you release it.
  • JSON: a text format for structured data, made of names and values in curly brackets.
  • Multi-level epics: the GitLab feature that allows epics to have child epics, requiring an Ultimate licence.
  • Page source: the raw HTML text behind a web page, viewable in any browser.
  • Parent ID (parent_id): the field in the request that names which epic is the parent.
  • POST request: an API message used to create something new.
  • Private / internal / public: the three visibility levels of a GitLab group, from most restricted to open to anyone.
  • Recon: the information-gathering phase before attacking, where you look at pages and requests for useful details.
  • REST API: an API organised around addresses and standard request types such as GET and POST.
  • Ultimate licence: GitLab's top paid plan, which unlocks features such as multi-level epics.
  • Visibility: who is allowed to see a group or project.
  • Work item: a newer GitLab name for trackable pieces of work such as issues and epics.

More by cryptopone

View all

3 more disclosed reports, best first.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.