Hacking Dutch Government For a lousy T-shirt
A GitLab instance exposed a user API endpoint that returned user information for any numeric ID, allowing enumeration of user details. An attacker could brute-force the IDs to disclose information about many users.
Published on medium.com
Good day, everyone! Greetings, As this is my first post on Pentester Nepal, I’d want to thank you for taking the time to read it.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a misconfiguration in GitLab's API that allowed unauthenticated access to user details by numeric ID.
Impact
An attacker could disclose information about many GitLab users, potentially including usernames, names, or other profile details.
What the attacker needed
Access to the GitLab instance; no authentication required
The fix
The vulnerability was fixed according to the report.
How it was found
- Find a subdomain of bkwi.nl running GitLab.
- Access the GitLab API endpoint for user ID 31 to see user information.
- Brute-force the last digits of the user ID to retrieve information for other users.
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 write-up has not been written yet. The Original tab links to the source.
GitLab is a tool for managing code. Its API lets programs fetch data. Here, an API endpoint returned details about any user if you knew their number, and the numbers were easy to guess. So someone could collect information about many users without permission.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.