Skip to content
Info disclosure Disclosed report Beginner

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.

xanbanx Follow

Originally disclosed on HackerOne

  • 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

  1. Create a public project, disable all features for non-project members by setting all features under https://gitlab.com/xanbanx/test-search/edit to Only Project Members
  2. Create a new milestone, e.g., named milestone
  3. As a non-project member perform the following API request (substitute the project id)
Bash
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:

JSON
[
    {
        "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..

The original report as published on HackerOne, by xanbanx. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create a public project and set all features to 'Only Project Members'.
  2. Create a new milestone in the project.
  3. As a non-member, send an API request to the search endpoint with scope=milestones.
  4. 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.

More by xanbanx

View all

6 more disclosed reports, best first.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.