Confidential issue titles are exposed
A confidential issue title was exposed to unauthorised users through a JSON endpoint that returned commit information. An attacker could view the title of a confidential issue by accessing a specific URL, even without being a project member.
GitLab
Originally disclosed on GitLab
- Fixed in 7 months
- Disclosed after 7 months
HackerOne report #916340 by aemirercin on 2020-07-06, assigned to @cmaxim:
Summary
When you refer a confidential issue in a commit message and visit the following endpoint, confidential issue title is exposed in "commit_title_html" field:
http://host/user/project/-/refs/branch/logs_tree/?format=json&offset=0
Steps to reproduce
- Create a public project
- Create a confidential issue in this public project
- Create a commit in that public project and set commit message to "Solves #<confidential issue id>"
- Then open a new browser, access the following URL using a different account that is not a member of the project created in step-1
http://host/<step-1 user>/<step-1 project>/-/refs/<branch>/logs_tree/?format=json&offset=0
5. You will see confidential issue title in "commit_title_html" field
Impact
Confidential issue title is exposed
Examples
Only tested in my local setup that you can see video below
What is the current bug behavior?
Confidential issue title is exposed
What is the expected correct behavior?
Confidential issue title shouldn't be exposed
Relevant logs and/or screenshots

Output of checks
System information
System: Ubuntu 16.04
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.6.6p146
Gem Version: 2.7.10
Bundler Version:1.17.3
Rake Version: 12.3.3
Redis Version: 5.0.9
Git Version: 2.27.0
Sidekiq Version:5.2.7
Go Version: unknown
GitLab information
Version: 13.1.2-ee
Revision: d3d6e3f69ee
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 11.7
URL: http://192.168.1.55
HTTP Clone URL: http://192.168.1.55/some-group/some-project.git
SSH Clone URL: [email protected]:some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 13.3.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
Impact
Confidential issue titles which can include sensitive information are exposed
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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 endpoint that returns commit data did not check whether the user has permission to view the referenced confidential issue before including its title in the response.
Impact
Confidential issue titles, which may contain sensitive information, could be exposed to unauthorised users.
What the attacker needed
A public project; A confidential issue in that project; A commit message referencing the issue; Attacker knows the project and branch
How it was found
- Create a public project.
- Create a confidential issue in that public project.
- Create a commit in the public project with a message that references the confidential issue by ID.
- As a different user who is not a member of the project, access the logs_tree endpoint for the branch with JSON format.
- Observe the confidential issue title in the commit_title_html field.
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.
In GitLab, a confidential issue is one that only certain people should see. If a commit message mentions that issue, the system might show the issue title to anyone who can see the commit, even if they are not allowed to see the issue. This report shows that a particular web address returned the secret title to users who were not project members.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.