Skip to content
Info disclosure Disclosed report Beginner

Pipeline & Docker Job log leaked via API

A public GitLab project with all features disabled for non-members still exposed full job logs via the API to a non-project member.

GitLab

Originally disclosed on GitLab

  • Fixed in 2 months
  • Disclosed after 2 months

HackerOne report #651649 by rizkylab on 2019-07-20, assigned to hackerjuan:

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/rizkylab/test/-/jobs/255046282/trace.json , full log is still possible via API.

Steps to reproduce

Reproduced on gitlab-runner 12.1.0-rc1 (6da35412)

    • Create a public project,
    • Testing Run pipeline

I have testing on --> https://gitlab.com/rizkylab/test/-/jobs/255046282/trace.json
As a non-project member perform the following API request (substitute the project id)
Although the user does not have access to the project and is no project member, the API returns:

Impact

Related to upcoming security job log, etc..

Impact

Docker job log is leakage

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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

Root cause

Likely the API endpoint for job traces did not enforce the same project feature visibility restrictions as the web interface.

Impact

A non-project member could read full pipeline and Docker job logs.

What the attacker needed

Public project with features disabled; no project membership required

How it was found

  1. Create a public project.
  2. Run a pipeline to generate a job.
  3. As a non-project member, request the job trace via the API using the project id.

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.

GitLab lets owners disable features like job logs for non-members on public projects. This report shows the job log could still be fetched via the API by a non-member.

What is Info disclosure?

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

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.