Security release blog post leaks unfixed vulnerability: "GitHub Tokens Displayed in Plaintext on Integrations Page"
GitLab's security release blog post claimed to fix a vulnerability where GitHub tokens were displayed in plaintext on the integrations page, but the fix was not actually applied. An attacker with maintainer access to a project could view the GitHub token in plaintext.
GitLab
Originally disclosed on GitLab
- Fixed in 3 months
- Disclosed after 3 months
HackerOne report #811017 by xanbanx on 2020-03-04, assigned to @cmaxim:
Summary
In the last security release (https://about.gitlab.com/releases/2020/03/04/gitlab-12-dot-8-dot-2-released/) , GitLab said it fixed a vulnerability that GitHub tokens are displayed in plaintext on the integration page. However, this is not yet fixed. They are still displayed in plain.
Steps to reproduce
- Create a project
- Add a Github integration and fill all required inputs including the token
- Visit the Github integration page again and see the Github token in plain
Impact
This allows other maintainers of the project to retrieve the Github token.
What is the current bug behavior?
It seems a bugfix was not correctly merged but included in the blog post, thus leaking an unfixed vulnerability.
What is the expected correct behavior?
Do not include entries to the blog post, which are not yet fixed.
Output of checks
This bug happens on GitLab.com running GitLab Enterprise Edition 12.9.0-pre 7d593d238f4
Impact
See above.
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 a bugfix was not correctly merged but was included in the security release blog post, leaving the vulnerability unfixed.
Impact
This allows other maintainers of the project to retrieve the GitHub token.
What the attacker needed
Maintainer access to a project
How it was found
- Create a project
- Add a GitHub integration and fill all required inputs including the token
- Visit the GitHub integration page again and see the GitHub token in plain
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 GitHub token is like a password that lets one system access GitHub. GitLab's blog said they fixed a bug where these tokens were shown openly, but the fix wasn't actually in place, so anyone with certain permissions on a project could still see the token.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.