Skip to content
Access control Disclosed report Beginner

IP Restriction Bypass Through REST API

A user could still see issues assigned to them from an IP-restricted group through the REST API, even though the dashboard correctly hid them. An attacker with a valid token could retrieve issue details that should have been blocked by the IP restriction.

GitLab

Originally disclosed on GitLab

  • Fixed in 5 months
  • Disclosed after 5 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 #3037722 by rogerace on 2025-03-14, assigned to @danielhauenstein:

Report | How To Reproduce

Report

Summary

Users can still see issues assigned to them from IP restricted group using REST API.

==I am aware that even after IP restriction, users may still see some issues on their dashboard.== So I have checked to make sure that users cannot see these issues on dashboard, but these issues can be leaked through API.

Steps to reproduce
  1. Go to any group, using owner account, create an issue for a project in that group, and assign it to the attacker account (who should also be a member of the group).
  2. Go to attacker account, check the dashboard, and you will see you cannot see any info about the issue created in step 1.
  3. Go to settings, and restrict IP access to 1.1.1.1, effectively blocking everyone from accessing the group.
  4. Issue the following request curl --header "PRIVATE-TOKEN: YOUR_TOKEN" --url "https://gitlab.com/api/v4/issues?scope=assigned_to_me"

Voila! You saw the issue.

Impact

Low in confidentiality.

How To Reproduce

Please add reproducibility information to this section:

  1. Go to any group, using owner account, create an issue for a project in that group, and assign it to the attacker account (who should also be a member of the group).
  2. Go to attacker account, check the dashboard, and you will see you cannot see any info about the issue created in step 1.
  3. Go to settings, and restrict IP access to 1.1.1.1, effectively blocking everyone from accessing the group.
  4. Issue the following request curl --header "PRIVATE-TOKEN: YOUR_TOKEN" --url "https://gitlab.com/api/v4/issues?scope=assigned_to_me"

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 API endpoint for listing assigned issues did not enforce the group's IP restriction policy, while the web dashboard did.

Impact

Low confidentiality impact: an attacker could read issue details that the IP restriction was meant to hide.

What the attacker needed

Attacker is a group member; attacker has a valid API token; group has IP restriction enabled

How it was found

  1. As an owner, create an issue in a group project and assign it to an attacker account that is a group member.
  2. Confirm the attacker cannot see the issue on the dashboard.
  3. Restrict the group's IP access to a single address, blocking everyone.
  4. As the attacker, send an API request to list issues assigned to the attacker.

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.

IP restriction is a setting that only allows people from certain network addresses to access a group. The web dashboard respected this rule, but the API did not, so a user could still fetch the same issue data by making a direct API request.

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.