Skip to content
Access control Disclosed report Beginner

Import members from public projects owned by others

The member import feature accepted any public project's identifier as the source, not just projects the user owned. An attacker could therefore send invitations to every member of an arbitrary public project, causing mass spam and irritation.

GitLab

Originally disclosed on GitLab

  • Fixed in 16 months
  • Disclosed after 16 months

HackerOne report #888565 by harbitz on 2020-06-01:

Summary

When importing group members to a project, you can select Import (/project_members/import) to import members from other projects that you own.
By changing the source_project_id parameter with another public project ID, all members of that project will receive an invite.

Steps to reproduce

  1. Go to https://gitlab.com/<USERNAME>/<PROJECT>/-/project_members/import
  2. Select a project from the drop-down list
  3. Click Import project members
  4. Change source_project_id parameter to another public project (e.g. GitLab project, 278964)
  5. All members of source_project_id will receive an invite.

What is the current bug behavior?

Invites to members of projects that the user doesn't own, gets sent.

What is the expected correct behavior?

The user should only be able to import members from owned projects.

Output of checks

This bug happens on GitLab.com

Impact

Impact

While this only works on public projects and you could invite all members manually, this process could cause massive spamming / irritation of other GitLab users.

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 server trusted the client-supplied source project identifier without verifying that the requesting user owned or had access to that project.

Impact

The attacker could send invitations to every member of any public project, which could cause massive spamming and irritation of other users; the report notes it only works on public projects and the same invites could be sent manually.

What the attacker needed

A GitLab account; a project you own; target project must be public

How it was found

  1. Open the project members import page for a project you control.
  2. Choose a project from the drop-down list.
  3. Submit the import request.
  4. Change the source project identifier to a different public project.
  5. Observe that all members of that project receive an invitation.

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 website feature let you copy the list of members from one of your own projects into another. The request included a number identifying which project to copy from, and the server never checked that the project belonged to you. By swapping that number for someone else's public project, you could make the site invite all of their members.

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.