Adding everyone to the repo due to the lack of rate limit
The project member invitation endpoint lacked a rate limit, so an attacker could send a large number of invite requests to add many GitLab users to a repository. This could fill users' mailboxes with notifications.
- Disclosed after 4 days
Summary
Since there is no rate limit in the inviting users to the repository section, it is possible to add all users on gitlab to a repository.
Steps to reproduce
(Step-by-step guide to reproduce the issue, including:)
- Create a repository
- go to the project members section
- choose a random user
- before clicking the invite button, we need to capture the request with the burp suite..
- ███████
- Send it to the Intruder module, specify the █████ field here between 1 and 7006996 and send the request.
Impact
It is possible to collect all users on Gitlab in a single repository, so users' mailboxes will be filled with notifications.
Note
Because the rate limit is out of scope, I tested it and I could not stop the python script, and there were users affected.
Impact
It is possible to collect all users on Gitlab in a single repository, so users' mailboxes will be filled with notifications.
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 endpoint that invites users to a project did not enforce a rate limit, allowing automated bulk invitations.
Impact
An attacker could add many GitLab users to a single repository, filling their mailboxes with notifications; the report notes that rate limiting was out of scope and that affected users existed.
What the attacker needed
A GitLab account; ability to create a repository; Burp Suite or similar tool
The fix
The report notes the invitation endpoint lacks a rate limit; no fix is stated.
How it was found
- Create a repository.
- Go to the project members section.
- Choose a random user.
- Capture the invite request with Burp Suite before clicking invite.
- Send the request to Intruder and vary the user identifier field across a large range.
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 rate limit is a cap on how many times you can do something in a short period. Without it, someone can automate sending many invitations to a project, adding lots of people and flooding their email with notifications.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.