66 points · by altharaz · 4y ago · 22 comments
Gitlab::Password.test_default(21) => "123qweQWE!@#000000000"
and I actually suspected it was a matter of the change hiding in an absolute sea of diffs, but there's a comment on the file right below the change: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/76318/...
> (10 Jan, 2022 1 commit) JH need more complex passwords
> (30 Mar, 2022 1 commit) Revert "JH need more complex passwords"
oops
---
In case others are wondering what's up with the JiHu label and its matching "gitlab-jh" group: https://about.gitlab.com/handbook/ceo/chief-of-staff-team/ji...
Can somebody who what they were trying to do here opine on if this might have been malicious or was more likely just a honest mistake?
You'd have thought with all the code-owner functionality that GL has, they would lock down the `/lib/gitlab/auth/` files to require a security engineer to give additional signoff on top of a normal review. It looks like anyone at Gitlab can approve changes to the auth code (except LDAP): https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/C... which is terrifying if true.
Looking through the PR it looks like this file was accidentally changed, I assume with a project wide search and replace.
I could easily imagine myself missing this when reviewing the PR "oh it's just changing a whole bunch of specs, go ahead".
I go over to the website try to login with my gmail account via SSO which fails because I "already have an account". So I proceed to reset password via email alone.
After I'm in it tells me I've had an account since January 22nd 2022. Super unlikely i created the account this year, so I don't know what's going on over there, but it's not accurate bookkeeping.