Skip to content
IDOR Disclosed report Intermediate

Expose private project namespace through pipeline_id through creating vulnerability_feedback

A vulnerability feedback endpoint accepted an arbitrary pipeline_id, allowing an attacker to learn the private project namespace associated with any pipeline. An attacker could disclose private project namespaces by changing the pipeline_id in the request.

GitLab

Originally disclosed on GitLab

  • Fixed in 16 months
  • Disclosed after 16 months

HackerOne report #426172 by ngalog on 2018-10-20:

Summary: Gitlab EE introduced an awesome feature, that you can view the security scanning report directly from gitlab UI, and you can create/dismiss the finding respectively by clicking the issue itself. It is achieved by sending a post request to /:project_namespace/vulnerability_feedback. There is pipeline id inside the POST json payload, and this is where the bug happens.

Description: The POST request looks like this

POST /[REDACTED]/publicawesome/vulnerability_feedback HTTP/1.1
Host: gitlab.com
...
Cookie: ...

[REDACTED]

Notice the pipeline_id, you can change the pipeline_id to arbitrary pipeline_id, (in this case 33657997) that doesn't belong to your project, and then the private project namespace associated with that pipelie_id will be disclosed in the response, like this

{[REDACTED]
}

Now we can see the pipeline_id [REDACTED] belongs to project /[REDACTED]/, and this should be private, and not to be disclosed.

Steps To Reproduce:

  • Fork https://gitlab.com/[REDACTED] and run a pipeline, and make sure you are running a premium gitlab user account
  • Then go to security dashboard, and pick any issue, and dismiss vulnerability and intercept the request, the request should look like POST [REDACTED]vulnerability_feedback HTTP/1.1, change the pipeline_id in the POST data to random pipeline_id such as 1232, and change the project_fingerprint to other random value
  • Finally you will be able to see the private project namespace in the response associated with the pipeline_id

This is little bit complicated to reproduce, I prepared a video for poc

Supporting Material/References:

[REDACTED]

Impact

Expose private project namespace through pipeline_id through creating vulnerability_feedback

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

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

What the attacker needed

Premium GitLab account; ability to run a pipeline; intercepting proxy

How it was found

  1. Fork a project and run a pipeline with a premium account.
  2. Open the security dashboard, pick an issue, and dismiss the vulnerability while intercepting the request.
  3. Change the pipeline_id in the POST data to a random value and change the project_fingerprint to another random value.
  4. Observe the private project namespace in the response.

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.

When you dismiss a security finding in GitLab, your browser sends a request that includes a pipeline ID. The server did not check that the pipeline ID belonged to your project, so by changing it you could see the name of someone else's private project. This is an information leak: you learn private names you should not see.

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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.