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
- Create group-A
- Go to group-A and setup ip
- Create project A
- Go to project A and create Issue-1
- Invite reporter user to your project
As Reporter User using prohibited ip adress
- Create group-B
- Create project-B
- Go to project-B and create merge request
- Change merge request description to group-A/project-A#1 (1 is the id of issue you want to close)
- 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
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:
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
- As owner, create a group and set up an IP restriction.
- Create a project in that group and create an issue.
- Invite a reporter user to the project.
- As the reporter, create another group and project, and create a merge request.
- Change the merge request description to reference the issue from the restricted group.
- 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.