skout-blog

Cybersecurity Threat Advisory 0026-22: GitLab Vulnerability Found That Could Allow Account Takeover

Threat Update

GitLab released an advisory on Thursday, March 31st regarding a new critical vulnerability found in their product, currently being tracked as CVE-2022-1162. This vulnerability can lead to account takeover when exploited. GitLab has released a security patch, and Barracuda MSP recommends updating GitLab and changing affected users’ passwords as soon as possible.

Technical Detail & Additional Information

WHAT IS THE THREAT?

CVE-2022-1162, the threat details a hardcoded password being set for accounts registered using OmniAuth provider (OAuth, LDAP, SAML) in Gitlab CE/EE versions 14.7 prior to 14.7.7, 14.8 prior to 14.8.5 and 14.9 prior to 14.9.2. Accounts that are created using OmniAuth provider prior to the above-mentioned versions have a set password which, if known to a prospective attacker, are easily compromised., This gives an attacker full control of any account for which the password was not changed. At this time, GitLab has stated that they are not aware of any accounts being compromised by this vulnerability, and they have “executed a reset of GitLab.com passwords for a selected set of users” as a precaution.

WHY IS IT NOTEWORTHY?

Hardcoded passwords are written in plaintext within the source code. This level of exposure is a critical security risk, as it provides easy access to account information. GitLab has developed a script that can be used by customers to identify accounts that were created during a certain time period which could be vulnerable. Customers are encouraged to manually change passwords to these identified accounts if they haven’t done so already.

WHAT IS THE EXPOSURE OR RISK?

If this vulnerability were exploited, it would provide an attacker complete control of the GitLab account in question. The attacker can then compromise any existing projects that the account has access to, which can lead to further damage downstream depending on the nature of the project in GitLab.

WHAT ARE THE RECOMMENDATIONS?

Barracuda MSP recommends updating all GitLab CE/EE versions 14.7 prior to 14.7.7, 14.8 prior to 14.8.5, and 14.9 prior to 14.9.2 to the latest version immediately to prevent any account compromise. Additionally, GitLab has created a script (which can be found here) to identify user accounts potentially impacted by this vulnerability.

REFERENCES

For more in-depth information about the recommendations, please visit the following links:

If you have any questions, please contact our Security Operations Center.

Threat Advisory Sign Up