Skip to content
Access control Disclosed report Beginner

Inherited group member and Direct shared group member can share the group with other members contrary to documentation

GitLab

Originally disclosed on GitLab

  • Fixed in 44 hours
  • Disclosed after 44 hours

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #2044962 by theluci on 2023-06-30, assigned to @kmorrison1:

Report | Attachments | How To Reproduce

Report

Hello,
I stumbled upon this bug.
I’m not sure whether this is a documentation update or a security fix, regardless I thought it should be reported.

Background

Gitlab provides various types of memberships,

1july-1.png
1july-1.png From the original on GitLab

For Direct shared membership, one may use Invite a group option,

30jun-2.png
30jun-2.png From the original on GitLab

In the above example, Direct members of My-other-group are Direct shared members of a-new-group.

Vulnerability

According to docs, Inherited group member and Direct shared group member cannot share the group with other members.

1july-2.png
1july-2.png From the original on GitLab

That is, a member that has Inherited membership or Direct shared membership in a group should not be able to invite new members to the group.

However, the above is not enforced.

Steps to reproduce

  1. attacker creates a group attacker-group and adds victim as guest.
  2. victim creates a group victim-group.
  3. victim goes to https://gitlab.com/groups/<victim-group>/-/group_members, clicks on Invite a group and invite attacker-group as owner.

attacker is now a Direct shared group member of victim-group.

  1. attacker goes to https://gitlab.com/groups/<victim-group>/-/group_members, clicks on Invite members and invite a user.

attacker is able to share the group with other members contrary to documentation.

Note:

Above I’ve only demonstrated the attack for Direct shared group members but it is also possible with Inherited membership.

Output of checks

This bug happens on GitLab.com (Probably on instance too).

Impact

Inherited group member and Direct shared group member can share the group with other members contrary to documentation.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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.

What is known

A access control bug in gitlab.com. GitLab made it public on 14 July 2023. Fixed in version 16.2.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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.