Board milestone assignment in GitLab EE exposes all milestone titles and descriptions
The board update endpoint accepted a milestone ID belonging to another project without checking ownership, letting a user attach a foreign milestone to their own board. Fetching the board through the API then revealed that milestone's title, description, due date, state and project ID.
GitLab
Originally disclosed on GitLab
- Fixed in 18 days
- Disclosed after 18 days
An insecure indirect object reference (IDOR) vulnerability was reported by Jobert via HackerOne. Details as follows:
There's an IDOR vulnerability in the Projects::BoardsController that allows a user to assign their board to any milestone on the GitLab instance. By then fetching the board object through the API, the milestone title, description, due date, state, and project ID is revealed. To reproduce, start of my creating an account on a GitLab EE instance. Create a project and go to the board. Click the "Edit board" button and intercept your network traffic. When you click on the "Save changes" button, observe the following request being submitted:
Request
PUT /root/test/boards/1.json HTTP/1.1
Host: gitlab-instance
...
{
"board": {
"id": 1,
"name": "Development",
"labels": [
],
"milestone_id": -1,
"assignee_id": 2,
"weight": null,
"label_ids": [
""
]
}
}
In this request, use any milestone_id of any other project. Then, create a personal API token for your own account and request the board through the API to expose the milestone information:
Command
$ curl -vv -H 'private-token: AAA' http://gitlab-instance/api/v4/projects/1/boards | jq
Response
[
{
"id": 1,
"name": "Development",
...
"milestone": {
"id": 1,
"iid": 2,
"project_id": 2,
"title": "Private milestone",
"description": "Secret description",
"state": "active",
"created_at": "0000-00-00T09:19:48.843Z",
"updated_at": "0000-00-00T09:19:48.843Z",
"due_date": null,
"start_date": null
},
...
]
This vulnerability is tested on the latest version and can only exploited on GitLab EE.
Impact
The milestones may contain confidential information that may be interesting to attackers.
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 board update action accepted any milestone ID without verifying that the milestone belonged to the same project or was visible to the user.
Impact
Milestones may contain confidential information that could be interesting to attackers; the report states the issue can only be exploited on GitLab EE.
What the attacker needed
A GitLab EE account; ability to create a project; a personal API token
How it was found
- Create an account on a GitLab EE instance and create a project.
- Open the project board and click the edit board button while intercepting traffic.
- Click save changes and capture the board update request.
- Replace the milestone ID in the request with a milestone ID from another project and send it.
- Create a personal API token and request the board through the API to read the milestone details.
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 board is a view of a project's work, and a milestone is a labelled target with a title and description. The server trusted the milestone number sent when saving a board instead of checking that the milestone belonged to the same project, so a user could link someone else's milestone and read its details.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.