Skip to content
IDOR Disclosed report Beginner

Attacker can extract list of private project's project members

The Import members feature did not check whether the user could access the source project, so any signed-in user who could create a project could name a private project and have its members copied into their own project. This revealed who works on a private project, along with their public email addresses.

jobert Follow

Originally disclosed on HackerOne

  • Triaged in 20 hours
  • Fixed in 2 days
  • Disclosed after 4 months

Summary by the program

Additional information about our internal communication can be viewed at https://gitlab.com/gitlab-org/gitlab-ce/issues/14899.

The report

There's a minor information disclosure issue in the Import members feature. It can be abused to get a list of project members that are working on a private project. The following steps require that you're signed in as a user that can create a new project. When someone imports project members from another project, the following code is executed:

Ruby
# app/controllers/projects/project_members_controller.rb:96
def apply_import
  giver = Project.find(params[:source_project_id])
  
  # ...

  redirect_to(namespace_project_project_members_path(project.namespace, project),
                notice: notice)
end

When an attacker would specify a source_project_id that references a private project, it would copy the members of that project and it would add them to your own project. This way, you can check out who has access to which project. This information could be helpful in other attacks and/or could be used for social engineering since the email address of those people are public too.

The fix of this issue depends on if you want to allow projects to be imported the user has access to or only within the team scope.

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

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 import action looked up the source project by the supplied identifier without checking that the current user had access to it.

Impact

An attacker could learn who has access to a private project and use that list, with public email addresses, possibly for further attacks or social engineering.

What the attacker needed

A signed-in account; permission to create a project

The fix

The import should be restricted so that a user can only import members from projects they are permitted to access, or only from within their own team scope.

How it was found

  1. Sign in as a user who is allowed to create a new project.
  2. Start importing members into a project you control.
  3. Supply the identifier of a private project you do not belong to as the source.
  4. View the members copied into your project to learn who has access to the private one.

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.

A private project is one only its members can see. The import feature was meant to copy members from a project you own, but it never checked that you were allowed to see the project you named. By pointing it at someone else's private project, a user could make a copy of its member list and read it.

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 by jobert

View all

67 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.