Unauthorized users may be able to view almost all informations related to Private projects.
Private project pages lacked proper cache control headers, so after a user signed out, pressing the browser's Back button could display the private project content without authentication. An attacker with physical access to the victim's computer could view sensitive information such as source code, file names, commit logs, issues, and wiki contents.
- Triaged in 3 days
- Fixed in 50 days
- Disclosed after 3 months
Summary by the program
Update: The GitLab Security Team no longer accepts reports on missing cache controls that require physical access to the victim's computer to be exploited.
The report
Summary: On the most of pages related to Private projects, cache control is inadequate, so the contents of Private projects may leak to unauthorized users.
Description:
For visibility of projects, you can select Public, Internal, and Private.
Among them, Private projects can only be viewed from project members. (In other words, it can not be viewed by who are not project members.)
In also GitLab Documentation, it is mentioned as follows:
Private projects can only be cloned and viewed by project members, ...
However, due to inadequate cache control on the most of pages related to Private projects, an attacker may view these contents using the 'Back' button in browser. In addition, users without logging in can also exploit this problem.
Note: This issue supports all modern browsers.
Steps To Reproduce:
- Sign in to GitLab.
- Click the "[+]" icon.
- Click "New Project".
- Fill out "Project name" form with "PoC".
- Check the check box of "Private".
- Click "Create project" button.
- Sign out from Gitlab.
- Hit the "Back" button in browser.
Result: The content of the private project "PoC" is displayed without logging in.
Impact
This issue leads to information leakage. Cache control is inadequate on the most pages related to Private projects. Therefore, almost all contents of Private project may leak.
Although the exploitation needs physical access to the victim's PC, It is not very difficult to access someone's PC in the following scenes:
- Office scenario
- Laptop case
The examples of critical information that may leak are as follows:
- List of file names
- Source code
- Commit log
- Issues
- Contents of the wiki
Note: The official document specifies that they will not be viewed by unauthorized users.
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 application did not send cache-control headers that prevent browsers from storing private project pages, allowing them to be retrieved from the browser cache after logout.
Impact
Almost all contents of private projects may leak to unauthorised users, but exploitation requires physical access to the victim's computer.
What the attacker needed
Physical access to victim's computer; victim previously logged in and viewed private project
How it was found
- Sign in to GitLab.
- Create a new private project named 'PoC'.
- Sign out from GitLab.
- Press the browser's Back button.
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 visit a web page, your browser often saves a copy so it can show it again quickly. If a site does not tell the browser not to save private pages, someone who later uses the same computer can press the Back button and see those private pages even after you have logged out. This report shows that GitLab did not set the right instructions, so private project information could be seen by anyone with access to the machine.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.