Username and password disclosed from mirror repository error message when mirroring failed
HackerOne report #2520722 by gudanggaramfilter on 2024-05-26, assigned to GitLab Team:
Report | Attachments | How To Reproduce
Report
Summary
When a user forces a push, Update now ( ) GitLab leaks the user's password when adding a mirror with GIT credentials. When you press in the Mirroring repositories section it displays username and password errors.
Steps to reproduce
- Create a Project
- Click Settings -> Repository
- Click expand on Mirroring repositories
- Enter the url
git://00000000.01020304.rbndr.us:1339/aaaa/aaaa - Fill in your username and password (your secret)
- Click mirror repository to create a mirror.
- Press the
update nowbutton
8 You can see your username and password in the error message.
Additional: If you get the error message The remote mirror URL is invalid. please press update now again / recreate the URL from the first step.
Impact
Other manager-level users may see passwords from incorrect mirrors that may have been set by other managers.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
