Able to reach group/subgroup's project using dashboard activity to bypass IP Restriction for Group
A group member could still see the titles of issues, merge requests and epics from an IP-restricted group by viewing the activity feed on their dashboard. This bypassed the group's IP restriction, which is meant to stop members from accessing group content from disallowed addresses.
GitLab
Originally disclosed on GitLab
- Fixed in 2.4 years
- Disclosed after 2.4 years
HackerOne report #632025 by ngalog on 2019-06-29:
Summary
As mentioned here https://docs.gitlab.com/ee/user/group/index.html#restrict-group-access-by-ip-address
User should not be able to access the group's any stuff after the IP restriction, but I can still accessed the issues/MR/epic title using dashboard activity
This is a possible duplicate of #632023, feel free to close as dupe if they share the same root cause.
Steps to reproduce
- As a member of the target group, star the projects that you already have accessed to
- Visit https://gitlab.com/groups/:group/-/edit#js-permissions-settings and make the ip restriction to 127.0.0.1
- As a member of the group, visit your dashboard, and click activity, and see star project's activity, and you can still see the ip restricted project's information/events
Impact
Bypass IP restriction for group's member
Examples
able to reproduce in gitlab.com
What is the current bug behavior?
bypass ip restriction in UI
What is the expected correct behavior?
Should prevent all ways to disclose info wit IP
Impact
.
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 activity feed did not apply the group's IP restriction check when rendering events for starred projects.
Impact
A group member could bypass the group's IP restriction and see restricted project information and events through the dashboard activity feed.
What the attacker needed
Member of the target group; projects already starred; group IP restriction enabled
How it was found
- As a member of the target group, star the projects you can already access.
- In the group's permissions settings, set the IP restriction to a local address.
- As a group member, open your dashboard and go to the activity view.
- Look at the starred project's activity and note that the restricted project's information and events are still shown.
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 restrict access to a group by IP address. The dashboard activity feed still showed titles from that group, so the restriction could be worked around.
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.