Skip to content
Access control Disclosed report Intermediate

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

  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. from project-B, go on to create new file in repository and click commit change

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

2025-08-27_19-12-46.mp4 From the original on GitLab

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:

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

  1. As owner, create group-A and set up an IP restriction.
  2. Create project A in group-A and create Issue-1.
  3. Invite the reporter user to project A.
  4. As the reporter user from a prohibited IP, create group-B and project-B.
  5. 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.

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.