Milestones leaked via search API
A public project with all features restricted to project members still exposed milestone data through the search API. An attacker with a valid token but no project membership could enumerate all milestones, including potentially sensitive information.
- Paid in 6 months
- Disclosed after 7 months
GitLab allows to restrict the project features for public projects. When disabling all features of a public project for non-project members under https://gitlab.com/xanbanx/test-search/edit, full access to milestones is still possible via the search API.
Steps To Reproduce:
Reproduced on GitLab 11.6.0-rc4-ee
- Create a public project, disable all features for non-project members by setting all features under
https://gitlab.com/xanbanx/test-search/edittoOnly Project Members - Create a new milestone, e.g., named
milestone - As a non-project member perform the following API request (substitute the project id)
curl --request GET --header "PRIVATE-TOKEN: <YOUR-TOKEN>" https://gitlab.example.com/api/v4/projects/<project-id>/search?search=milestone&scope=milestones
Although the user does not have access to the project and is no project member, the API returns:
[
{
"id": 123,
"iid": 1,
"project_id": 12,
"title": "milestone",
"description": "milestone",
"state": "active",
"created_at": "2018-12-11T20:03:25.381Z",
"updated_at": "2018-12-11T20:03:25.381Z",
"due_date": null,
"start_date": null,
"web_url": "https://gitlab.example.com/namespace/project/milestones/1"
}
]
Impact
By using the search API any user with limited access can enumerate all milestones via the search API. Milestones can include critical information, e.g., related to upcoming security milestones, etc..
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 search API did not enforce the project's feature visibility settings for milestones, allowing access to non-members.
Impact
Any user with limited access could enumerate all milestones via the search API, potentially exposing critical information such as upcoming security milestones.
What the attacker needed
A valid API token; public project with features restricted; non-project member
How it was found
- Create a public project and set all features to 'Only Project Members'.
- Create a new milestone in the project.
- As a non-member, send an API request to the search endpoint with scope=milestones.
- Observe that the API returns milestone details despite the restrictions.
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 public project on GitLab can hide its features from non-members. However, the search function did not respect these restrictions, so anyone with a token could still see the project's milestones. Milestones are like goals or deadlines that may contain private information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.