IP allowlist bypass when Closing Issue via commint message
An IP allowlist restriction on a group could be bypassed by closing an issue through a commit message from a project outside the restricted group. An attacker with a reporter account could close issues in a protected group even when using a prohibited IP address.
GitLab
Originally disclosed on GitLab
- Fixed in 31 days
- Disclosed after 31 days
⚠️ 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 #3317215 by hunter0xp7 on 2025-08-27, assigned to @cmaxim:
Report | Attachments | How To Reproduce
Report
Summary
Hello,
I was retesting my previous report https://gitlab.com/gitlab-org/gitlab/-/issues/534822, and i found another way to close issue that is in ip restricted group.
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
-
from project-B, go on to create new file in repository and click commit change
-
commit message window will pop up, go ahead and type in close group-A/project-A/-/issues/1 and click commit changes
What is the current bug behavior?
It is currently possible to close issue from prohibited ip address
What is the expected correct behavior?
It should not be possible to close issue if user is not using allowed ip address
Vidao poc
Impact
Issues can be closed from prohibited ip address, impacting integrity.
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 logic triggered by commit messages does not enforce the group's IP allowlist restriction.
Impact
Issues in an IP-restricted group could be closed from a prohibited IP address, affecting integrity.
What the attacker needed
Reporter access to a project; IP-restricted group with an issue; prohibited IP address
How it was found
- As owner, create group-A and set up an IP restriction.
- Create project A in group-A and create Issue-1.
- Invite the reporter user to project A.
- As the reporter user from a prohibited IP, create group-B and project-B.
- In project-B, create a new file and in the commit message type a reference to close group-A/project-A issue 1, then commit.
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 by writing a special commit message from a different project, even when connecting from a blocked IP address.
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.