Skip to content
IDOR Disclosed report Beginner

Add comments/Discussion on Epic of any Public/Private group on Gitlab(IDOR)

The epic comment endpoint accepted an epic identifier from the request without checking that the caller could access that epic's group. An attacker with a trial account could add comments or discussions to epics in any public or private group by changing the identifier.

GitLab

Originally disclosed on GitLab

  • Fixed in 34 days
  • Disclosed after 34 days

HackerOne report #434197 by vijay_kumar1110 on 2018-11-05:

Description: [add summary of the vulnerability] In Any public/Private group with the Gold Plan you can Access Epics. In the Epic you have option of Commenting and Creating a Discussion. With every new Epic there is a Epic_ID generated. Adding Comment/Discussion on Epic request is vulnerable to IDOR attack where changing the Epic_ID leads to Add Comments/Discussion to any Public or private Group Epic.

##Vulnerable Request :

POST /groups/[Group_name]/-/epics/1/notes HTTP/1.1
Host: gitlab.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:63.0) Gecko/20100101 Firefox/63.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://gitlab.com/groups/vijaykumar007Publicgroup/-/epics/1
X-CSRF-Token: 
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Content-Length: 117
Connection: close
Cookie: [Cookies]

note%5Bnoteable_type%5D=epic&note%5Bnoteable_id%5D=[Epic_ID]&note%5Bnote%5D=movddvmo&merge_request_diff_head_sha=undefined

Vulnerable parameter : noteable_id -- > Epic_ID

Steps To Reproduce:

  1. From test1 user account create a new private group.(Victim group)
  2. Start the Gold free trial and Epic feature will open.
  3. Create a New Epic.(Ex: victim_epic , ID=1234)
  4. Now login from Test2 user account and try to access the victim group.
  5. You will not have access to this group.
  6. Now create a new group from test2 account and enable the Gold trial account.
  7. Now create a new Epic and In the Epic create a new Discussion.
  8. Intercept this request and it will look something like above mentioned request.
  9. Now change the Epic_ID in post parameter and send the request.
  10. Now you will notice the Discussion will be added in the Victim Epic.

Same can be done with Public groups too.

Supporting Material/References:

Let me know if you require One.

Impact

Add comments/Discussion on Epic of any Public/Private group on Gitlab(IDOR)

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 comment creation endpoint looked up the epic by the supplied identifier without verifying the caller's membership or access to the epic's group.

What the attacker needed

A GitLab account; Gold trial enabled on attacker's group; victim group has an epic

How it was found

  1. Create a private group from one account and start the Gold trial so epics are available.
  2. Create an epic in that group and note its identifier.
  3. From a second account, create a group, start the Gold trial, and create an epic with a discussion.
  4. Intercept the request that adds the discussion.
  5. Change the epic identifier in the request to the victim epic's identifier and send it.
  6. Observe that the discussion is added to the victim epic.

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.

An epic is a large work item in GitLab that groups related issues. The server trusted a number sent by the browser to decide which epic to comment on, instead of checking that the user was allowed to see that epic. So anyone could post a comment on someone else's private epic by changing that number.

What is IDOR?

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.

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.