Attacker used victim owner name as author_username to merge request search feature to expose merge requests from IP Restricted Group/Projects
A user whose IP was blocked from a private group could still see that group's merge requests by searching the dashboard merge request search with the group owner's username as the author filter. The IP restriction was enforced on direct project access but not on the dashboard search results.
GitLab
Originally disclosed on GitLab
- Fixed in 47 days
- Disclosed after 47 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 #3368532 by krishuni on 2025-10-03, assigned to GitLab Team:
Report | How To Reproduce
Original Report
Hi team ,
on this issue victim group owner restricted Attacker User IP Address from his private group/projects still attacker user view victim user restricted group/projects merge request recently gitlab updated gitlab dashboard search feature by "author name query -
https://gitlab.com/dashboard/merge_requests/search?scope=all&state=opened&author_username=chotebabu
this leads to bypass victim group owner set IP Restriction for accessing group/projects
here Attacker role was reporter role at victim private group then victim owner restricted attacker IP address from group settings .
Steps to Reproduce
***As Group Owner ***
from group billing settings >make group ultimate trial plan
create a private project and create a merge request there
Invite attacker as "reporter" role at group
from group settings here -https://gitlab.com/groups/krishnagroup4/-/edit#js-permissions-settings
add attacker IP Address to be restricted to access Group/Projects
As Attacker User
attempt to access merge request at victim user project -->
https://gitlab.com/krishnagroup4/krishnaproject/-/merge_requests/1
Got a 404: Page not found error page
that confirming IP Restriction is working fine
now navigate - https://gitlab.com/dashboard/merge_requests/search?scope=all&state=opened&author_username=chotebabu
see there tricks Attacker used victim owner name as author_username to merge request serach feature to expose merge requests from IP Restricted Group/Projects
note that there victim owner created merge request on that IP Restricted group/project was exposing by attacker user
Impact
attacker user can access sensitive merge request that should be intented to restricted to attacker user (because Attacker user IP Address restricted by victim group owner)
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 dashboard merge request search did not apply the same IP restriction checks that direct project access enforces.
Impact
An attacker whose IP was restricted could view sensitive merge requests from the private group, bypassing the owner's IP restriction.
What the attacker needed
Attacker is a reporter in the private group; group owner has restricted the attacker's IP; attacker knows the owner's username
How it was found
- As group owner, create a private project and a merge request in it.
- Invite the attacker as a reporter to the group.
- In group settings, add the attacker's IP address to the restricted list.
- As the attacker, try to open the merge request directly and confirm it returns a 404 error.
- As the attacker, open the dashboard merge request search filtered by the victim owner's username and see the restricted merge request.
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.
A group owner can block certain IP addresses so those users cannot open the group's private projects. However, the dashboard search page still showed merge requests from that blocked group when the attacker searched by the owner's username. This means the block only worked on the project page, not on the search page.
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.