Skip to content
IDOR Disclosed report Beginner

IDOR in epic notes api, also reveals historical information if it was promoted from issue

The epic notes API did not check that the epic belonged to the group in the request, so any epic's notes could be read by changing the epic ID. It also returned historical details such as milestones and labels from a private project when the epic had been promoted from an issue.

GitLab

Originally disclosed on GitLab

  • Fixed in 4 months
  • Disclosed after 4 months

HackerOne report #538109 by ashish_r_padelkar on 2019-04-14, assigned to hackerjuan:

Summary

Hello,

There are couple of issues here in EPIC notes api
https://docs.gitlab.com/ee/api/notes.html#list-all-epic-notes

Issue1

The API GET /groups/:id/epics/:epic_id/notes has an IDOR issue. ie. It lists the notes of EPIC without checking the groups.

For eg, https://gitlab.com/api/v4/groups/<REDACTED public_group_id/epics/<REDACTED epic_id>/notes

Above will list notes from REDACTED epic_id EPIC where as REDACTED public_group_id is a group that doesnt belong to this EPIC. So if you just sequentially run the IDs of epic, it will work.

Note that REDACTED epic_id is the internal ID of EPIC

However, this only discloses notes from PUBLIC groups only but this need fixing

Issue2

This is more of a security issue because it leaks information which ideally not visible publicly.

For eg, if a EPIC is promoted from issue which belongs to private project, it may contain private information like milestone, labels applied to the issue before promoting to an epic. This API response disclose everything!

Steps to reproduce

  1. Go to https://gitlab.com/api/v4/groups/<AnyPublicGroupID>/epics/<EPIC_IID>/notes

  2. Just keep changing <EPIC_IID> in above requests and you will see notes belongs to other groups.

  3. Also see the responses, This discloses more information of epic historical activities from timeline if it was promoted from issues

Examples POC

  1. Go to https://gitlab.com/groups/<REDACTED private group>/-/epics/<REDACTED epic ID>
  2. You will see few activities there and not much information . But there is a information there which you can not see because this epic was promoted from private project.
  3. Now go to https://gitlab.com/api/v4/groups/<REDACTED public_group_id>/epics/<REDACTED epic_id>/notes
  4. In response, you will see more information which you cant see in UI. The information includes milestone, labels from private project that was applied before it was promoted to EPIC from issue!

What is the current bug behavior?

IDOR+Info disclosure in EPIC note api

What is the expected correct behavior?

EPIC note api should only work for EPIC that belong to that group and should not disclose historical information if it was promoted from private project issue

This bug happens on GitLab.com

Regards,
Ashish

Impact

EPIC note api works for any group (works for public groups only)

EPIC notes API response discloses historical information when it was promoted from private project issue


Related Security Issue: https://dev.gitlab.org/gitlab/gitlabhq/issues/2875

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 API looked up the epic by its internal ID without verifying that the epic belonged to the group in the request path, and it returned the full note history without filtering private project data.

Impact

The API could disclose notes from public groups and historical information from private projects, but only for public groups.

What the attacker needed

None

The fix

The epic notes API should only return notes for epics that belong to the requested group and should not disclose historical information from private projects.

How it was found

  1. Send a request to the epic notes API using any public group ID and an epic internal ID.
  2. Change the epic ID in the request to see notes from epics in other groups.
  3. Inspect the response to see historical details from a private project if the epic was promoted from an issue.

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 IDOR is when a website uses an identifier in the address to decide what to show, but forgets to check that the person asking is allowed to see that item. Here, changing the epic number in the API address let someone read notes from epics in other groups. The same response also included old details from a private project, which should not have been visible.

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.