Skip to content
Access control Disclosed report Beginner

Email invited members can join projects even after the member lock has been enabled

Email invitations to a GitLab group or project were not revoked when the Member lock setting was enabled. An attacker who had been invited by email could still create an account and automatically join the project despite the lock.

GitLab

Originally disclosed on GitLab

  • Fixed in 12 months
  • Disclosed after 12 months

HackerOne report #1256967 by justas_b on 2021-07-10, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

NOTE! Thanks for submitting a report! Please replace all the (parenthesized) sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to triage and respond quickly, so be sure to take your time filling out the report!

Summary

Email invites don't get revoked after the Member lock option has been turned on at group settings. More info: https://docs.gitlab.com/ee/user/group/#prevent-members-from-being-added-to-a-group

Steps to reproduce
  1. Create a group
  2. Create a project
  3. Send an invite to an email you own but haven't yet created a Gitlab account with
bandicam_2021-07-10_18-29-56-026.jpg
bandicam_2021-07-10_18-29-56-026.jpg From the original on GitLab
  1. Go to Settings -> General -> Permissions and turn on the Member lock option
bandicam_2021-07-10_18-29-34-279.jpg
bandicam_2021-07-10_18-29-34-279.jpg From the original on GitLab
  1. Create a Gitlab account with the email you've sent an invitation to
  2. When the account is created, it joins the project automatically
bandicam_2021-07-10_18-35-39-621.jpg
bandicam_2021-07-10_18-35-39-621.jpg From the original on GitLab
bandicam_2021-07-10_18-36-02-456.jpg
bandicam_2021-07-10_18-36-02-456.jpg
Examples

(If the bug is project related, please create an example project and export it using the project export feature)

(If you are using an older version of GitLab, this will also help determine whether the bug has been fixed in a more recent version)

(If the bug can be reproduced on GitLab.com without violating the Rules of Engagement as outlined in the program policy, please provide the full path to the project.)

What is the current bug behavior?

New members can join projects when member lock is enabled

What is the expected correct behavior?

All email invites should be revoked when member lock is enabled

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Impact

New members can join projects when the member lock option is enabled

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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

Impact

New members could join projects even when the member lock option was enabled, bypassing the intended restriction.

What the attacker needed

Attacker has an email invitation; member lock is enabled after invite; attacker creates account with invited email

How it was found

  1. Create a group
  2. Create a project
  3. Send an invite to an email you own but haven't yet created a Gitlab account with
  4. Go to Settings -> General -> Permissions and turn on the Member lock option
  5. Create a Gitlab account with the email you've sent an invitation to
  6. When the account is created, it joins the project automatically

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 group owner can turn on a setting that is supposed to stop new people from joining. However, if someone had already been invited by email before the setting was turned on, that invitation still worked. So the person could create an account and join the project even though the owner thought joining was blocked.

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.