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
- 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).
- Go to attacker account, check the dashboard, and you will see you cannot see any info about the issue created in step 1.
- Go to
settings, and restrict IP access to1.1.1.1, effectively blocking everyone from accessing the group. - 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:
- 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).
- Go to attacker account, check the dashboard, and you will see you cannot see any info about the issue created in step 1.
- Go to
settings, and restrict IP access to1.1.1.1, effectively blocking everyone from accessing the group. - Issue the following request
curl --header "PRIVATE-TOKEN: YOUR_TOKEN" --url "https://gitlab.com/api/v4/issues?scope=assigned_to_me"
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
- As an owner, create an issue in a group project and assign it to an attacker account that is a group member.
- Confirm the attacker cannot see the issue on the dashboard.
- Restrict the group's IP access to a single address, blocking everyone.
- 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.