Multiple High-Risk Vulnerability Alerts of GitLab

Multiple High-Risk Vulnerability Alerts of GitLab

julho 3, 2022 | Jie Ji

Overview

On July 1, 2022, NSFOCUS CERT detected that GitLab officially released a security bulletin and fixed multiple security vulnerabilities in GitLab Community Edition (CE) and Enterprise Edition (EE). Please take measures to protect it as soon as possible.

GitLab Remote Code Execution Vulnerability (CVE-2022-2185):

A remote code execution vulnerability exists in GitLab Community Edition (CE) and Enterprise Edition (EE) that could allow an authenticated attacker to import a malicious project and eventually execute arbitrary code on the target server. The CVSS score was 9.9.

GitLab Cross-Site Scripting (XSS) Vulnerability (CVE-2022-2235):

GitLab Enterprise Edition (EE) has an XSS vulnerability that could be successfully exploited by an authenticated attacker by tricking a user into clicking on a specially crafted malicious file. The CVSS score was 8.7.

GitLab Stored XSS Vulnerability (CVE-2022-2230):

A stored XSS vulnerability exists in the settings page of GitLab Community Edition (CE) and Enterprise Edition (EE), which could be exploited by an attacker with high privileges to execute arbitrary JavaScript code in GitLab on behalf of the victim. The CVSS score was 8.1.

GitLab Improper Authorization Vulnerability (CVE-2022-2229):

An improper authorization vulnerability exists in the settings page of GitLab Community Edition (CE) and Enterprise Edition (EE), which allows an unauthenticated attacker to extract a known name of the attacker in the public or private project to which they belong, without ignoring them. The value of the protected variable. The CVSS score was 7.5.

GitLab is an open source project developed by GitLab Inc. for a warehouse management system that uses Git as a code management tool to access public or private projects through a web interface.

Reference link:

https://about.gitlab.com/releases/2022/06/30/critical-security-release-gitlab-15-1-1-released/

Scope of Impact

Affected version

CVE-2022-2185:

  • GitLab CE/EE 14.0 < 14.10.5
  • GitLab CE/EE 15.0 < 15.0.4
  • GitLab CE/EE 15.1 < 15.1.1

CVE-2022-2235:

  • GitLab EE 14.5 < 14.10.5
  • GitLab EE 15.0 < 15.0.4
  • GitLab EE 15.1 < 15.1.1

CVE-2022-2230:

  • GitLab CE/EE 14.4 < 14.10.5
  • GitLab CE/EE 15.0 < 15.0.4
  • GitLab CE/EE 15.1 < 15.1.1

CVE-2022-2229:

  • GitLab CE/EE 13.7 < 14.10.5
  • GitLab CE/EE 15.0 < 15.0.4
  • GitLab CE/EE 15.1 < 15.1.1

Unaffected version

  • GitLab CE/EE 14.10.5
  • GitLab CE/EE 15.0.4
  • GitLab CE/EE 15.1.1

Vulnerability Detection

Relevant users can judge whether the current application is at risk through the method of version detection.

Use the following command to view the current GitLab version in use:

cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

If the current version is affected, there may be a security risk.

Mitigation

Official upgrade

At present, a new version has been officially released to fix the above vulnerabilities. Please upgrade the affected users to the latest version as soon as possible for protection. Official download link:

https://about.gitlab.com/update/

Other suggestions

If the relevant users are temporarily unable to perform the upgrade operation, the whitelist can be used to restrict access to the affected system ports.

Statement

This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.

About NSFOCUS

NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks. The company’s Intelligent Hybrid Security strategy utilizes both cloud and on-premises security platforms, built on a foundation of real-time global threat intelligence, to provide multi-layered, unified and dynamic protection against advanced cyber attacks.

NSFOCUS works with Fortune Global 500 companies, including four of the world’s five largest financial institutions, organizations in insurance, retail, healthcare, critical infrastructure industries as well as government agencies. NSFOCUS has technology and channel partners in more than 60 countries, is a member of both the Microsoft Active Protections Program (MAPP), and the Cloud Security Alliance (CSA).

A wholly owned subsidiary of NSFOCUS Technologies Group Co., Ltd., the company has operations in the Americas, Europe, the Middle East and Asia Pacific.