Postgres Admin Username and Password in Plain text
A GitLab commit contained a Postgres admin username and password in plain text. An attacker who found the commit could log in to the database with admin privileges.
Originally disclosed on HackerOne
- Disclosed after 3.7 years
Summary:
Gitlab commit contains password in plain text
Steps To Reproduce:
Navigate to https://gitlab.com/upchieve/subway/-/commit/e0e039496321c9d62a591504d387589224660a5c
Supporting Material/References:
Recommendations for Fixing/Mitigation
Do not disclose passwords in gitlab. Implement a check that prevents developers from uploading passwords in plain text. Use secure passwords.
Impact
An attacker can login to the Postgres DB with admin privileges
Attachments

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
Impact
An attacker could log in to the Postgres database with admin privileges.
What the attacker needed
Access to the GitLab commit
The fix
The password should be removed from the repository, and a check added to prevent plain-text passwords being committed.
How it was found
- Navigate to the GitLab commit URL provided in the report.
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 developer accidentally saved a database password directly in a code change that was uploaded to GitLab. Anyone who can see that code change can read the password and use it to log in to the database as an administrator.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.