Skip to content
Access control Disclosed report Intermediate

IP allowlist bypass when Closing Issue

A user could close an issue in a group that restricts access by IP address, even when connecting from a prohibited IP, by referencing the issue in a merge request description and merging it. This bypasses the IP allowlist restriction.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

⚠️ 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 #3080621 by salh4ckr on 2025-04-07:

Report | Attachments | How To Reproduce

Report

Summary

Hello,

It is possible to close issue from any ip addresses despite owner restricted group access to specific ip address.

Steps to reproduce

As Owner

  1. Create group-A
  2. Go to group-A and setup ip
  3. Create project A
  4. Go to project A and create Issue-1
  5. Invite reporter user to your project

As Reporter User using prohibited ip adress

  1. Create group-B
  2. Create project-B
  3. Go to project-B and create merge request
  4. Change merge request description to group-A/project-A#1 (1 is the id of issue you want to close)
  5. Now Merge the merge request
What is the current bug behavior?

It is currently possible to close issue from prohibited ip address

What is the expected correct behavior?

It shoul not be possible to close issue if user is not using allowed ip address

POC

issue_vid.mp4 From the original on GitLab

Impact

issue can be closed from prohibited ip address

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.

How it worked

Root cause

Likely the issue-closing action triggered by merging a merge request does not check the IP allowlist of the group that owns the issue.

Impact

An issue in a group with an IP allowlist could be closed from a prohibited IP address.

What the attacker needed

Owner sets IP restriction on a group; reporter user is a member of a project in that group; reporter can create merge requests in another project

How it was found

  1. As owner, create a group and set up an IP restriction.
  2. Create a project in that group and create an issue.
  3. Invite a reporter user to the project.
  4. As the reporter, create another group and project, and create a merge request.
  5. Change the merge request description to reference the issue from the restricted group.
  6. Merge the merge request, which closes the issue despite the IP restriction.

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.

Some groups restrict access to specific IP addresses, like only allowing connections from an office network. This report shows that a user could still close an issue in such a group from any IP address by linking to it from a merge request and merging that merge request. The IP restriction was not enforced for this action.

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.