GitLab released security patches for eight vulnerabilities, of which the flaw tracked as CVE-2022-1680 is critical in severity. This is a critical flaw that could allow attackers to take over the accounts by updating the email address. The other seven vulnerabilities include two high, four medium, and one low vulnerability. GitLab released patches for all eight vulnerabilities as part of its monthly security update. According to GitLab, these vulnerabilities could ahttp://thesecmaster.com/what-is-arbitrary-code-execution/llow the attackers to perform account takeover, sensitive information discloser, improper authorization, security bypass, and arbitrary code execution attacks on the vulnerable version of GitLab. This makes it important for GitLab administrators and responds to the vulnerabilities by applying the patches to their GitLab application as soon as possible. Let’s start this post with how to fix CVE-2022-1680, a critical account takeover vulnerability in GitLab, and let’s see how to fix the remaining seven vulnerabilities following that.
GitLab is a web-based Git repository manager with a wiki and issue tracking features, using an open-source license, developed by GitLab Inc. GitLab offers git repository management, code reviews, issue tracking, activity feeds, and wikis. GitLab provides fine-grained access control, user management, five permission levels, and branch protection. With GitLab, you can have unlimited public and private repositories with community or developer editions. You can also do continuous integration and deployment with GitLab.
GitLab Community Edition (CE) is an open-source project under the MIT License. CE is for individual developers and small teams who want to self-host their own Git repositories. A notable instance of this is the Gitlab company, which offers a hosted version of GitLab CE as well as a commercial Enterprise Edition (EE). GitLab EE adds additional features on top of CE for larger deployments. Both editions are available under either a subscription or an annual contract.
CVE-2022-1680: A Critical Account Takeover vulnerability in GitLab
CVE-2022-1940: A Stored Cross-Site Scripting vulnerability in Jira integration in GitLab
CVE-2022-1948: A Cross-Site Scripting vulnerability in quick actions in GitLab
CVE-2022-1935: An incorrect authorization vulnerability in GitLab
CVE–2022-1936: An incorrect authorization vulnerability in GitLab
CVE-2022-1944: An improper authorization in the Interactive Web Terminal in GitLab
CVE-2022-1821: A parent group access vulnerability in GitLab
CVE-2022-1783: A Group member lock bypass vulnerability in GitLab
This is a critical vulnerability with a CVSS score of 9.9. The flaw can be exploitable only when group SAML SSO is configured. This enables premium group owners to invite arbitrary users by username and email. Attackers exploit this SCIM feature and change the user’s email ID, display name, and username of the targeted account to take over the account.
It affects GitLab EE versions starting from 11.10 to 14.9.5, from 14.10 till 14.10.4, and from 15.0 to 15.0.1.
CVE ID | CVE-2022-1680 |
CVSS Score | 9.9 Critical |
Vector | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Description | A Critical Account Takeover vulnerability in GitLab |
Vulnerable Versions | 11.10 to 14.9.514.10 till 14.10.415.0 to 15.0.1 |
This is a High severity vulnerability with a CVSS score of 7.7. The flaw exists in Jira integration in GitLab EE. If you leave this vulnerability unpatched then it gives attackers to execute arbitrary JavaScript code in GitLab using specially crafted Jira Issues.
It affects GitLab EE versions starting from 13.11 to 14.9.5, from 14.10 till 14.10.4, and from 15.0 to 15.0.1.
CVE ID | CVE-2022-1940 |
CVSS Score | 7.7 High |
Vector | CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
Description | A Stored Cross-Site Scripting vulnerability in Jira integration in GitLab |
Vulnerable Versions | 13.11 to 14.9.514.10 till 14.10.415.0 to 15.0.1 |
This is a High severity vulnerability with a CVSS score of 8.7. The flaw is due to the missing validation of input used in quick actions. The unsuccessful patch would lead to exploiting the flaw just by injecting HTML in contact details.
It affects GitLab all versions starting from 15.0 to 15.0.1.
CVE ID | CVE-2022-1948 |
CVSS Score | 8.7 High |
Vector | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
Description | A Cross-Site Scripting vulnerability in quick actions in GitLab |
Vulnerable Versions | 15.0 to 15.0.1 |
This is a Medium severity vulnerability with a CVSS score of 6.5. This flaw is due to incorrect authorization in GitLab EE. An unsuccessful patch could allow attackers to misuse a valid Project Trigger Token from any location even when IP address restrictions were configured.
It affects GitLab EE versions starting from 12.0 to 14.9.5, from 14.10 till 14.10.4, and from 15.0 to 15.0.1.
CVE ID | CVE-2022-1935 |
CVSS Score | 6.5 Medium |
Vector | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N |
Description | An incorrect authorization vulnerability in GitLab |
Vulnerable Versions | 12.0 to 14.9.514.10 till 14.10.415.0 to 15.0.1 |
This is a Medium severity vulnerability with a CVSS score of 6.5. This flaw is due to incorrect authorization in GitLab EE. An unsuccessful patch could allow attackers to misuse a valid Project Deploy Token from any location even when IP address restrictions were configured.
It affects GitLab EE versions starting from 12.0 to 14.9.5, from 14.10 till 14.10.4, and from 15.0 to 15.0.1.
CVE ID | CVE-2022-1936 |
CVSS Score | 6.5 Medium |
Vector | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N |
Description | An incorrect authorization vulnerability in GitLab |
Vulnerable Versions | 12.0 to 14.9.514.10 till 14.10.415.0 to 15.0.1 |
This is a Medium severity vulnerability with a CVSS score of 5.4. This flaw is due to Incorrect authorization in the Interactive Web Terminal in GitLab CE/EE. If you ignore patch this flaw, you may allow users with the Developer role to open terminals on other Developers’ running jobs.
It affects GitLab EE versions starting from 11.3 to 14.9.5, from 14.10 till 14.10.4, and from 15.0 to 15.0.1.
CVE ID | CVE-2022-1944 |
CVSS Score | 5.4 Medium |
Vector | CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N |
Description | An improper authorization in the Interactive Web Terminal in GitLab |
Vulnerable Versions | 11.3 to 14.9.514.10 till 14.10.415.0 to 15.0.1 |
This is a Medium severity vulnerability with a CVSS score of 4.3. This flaw is a parent group access vulnerability in GitLab CE/EE. Ignorance of this flaw could allow them to access the member list of their parent group.
It affects GitLab EE versions starting from 10.8 to 14.9.5, from 14.10 till 14.10.4, and from 15.0 to 15.0.1.
CVE ID | CVE-2022-1821 |
CVSS Score | 4.3 Medium |
Vector | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Description | A parent group access vulnerability in GitLab |
Vulnerable Versions | 10.8 to 14.9.514.10 till 14.10.415.0 to 15.0.1 |
This is a Low severity vulnerability with a CVSS score of 2.7. This flaw is a Group member lock bypass vulnerability in GitLab CE/EE. Ignorance of this flaw could allow malicious group maintainers to add new members to a project within their group, through the REST API, even after their group owner enabled a setting to prevent members from being added to projects within that group.
It affects GitLab EE versions starting from 14.3 to 14.9.5, from 14.10 till 14.10.4, and from 15.0 to 15.0.1.
CVE ID | CVE-2022-1783 |
CVSS Score | 2.7 Low |
Vector | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N |
Description | A Group member lock bypass vulnerability in GitLab |
Vulnerable Versions | 14.3 to 14.9.514.10 till 14.10.415.0 to 15.0.1 |
GitLab responded these flaws by releasing security updates. All these vulnerabilities were fixed in versions 15.0.1, 14.10.4, and 14.9.5. We recommend you upgrade your GitLab to any of these versions to fix CVE-2022-1680 (A Critical Account Takeover Vulnerability in GitLab) including the other seven vulnerabilities.
GitLab upgradation process depends on the installation methods followed in your organization. GitLab officially supports four different ways of upgradation process:
1. Linux packages (Omnibus GitLab)
2. Source installations
3. Docker installations
4. Kubernetes (Helm) installations
It is highly recommended to have a full up-to-date backup before you begin.
1. gitlab/gitlab-ee: The full GitLab package contains all the Community Edition features plus the Enterprise Edition ones.
2. gitlab/gitlab-ce: A stripped-down package that contains only the Community Edition features.
3. gitlab/unstable: Release candidates and other unstable versions.
4. gitlab/nightly-builds: Nightly builds.
5. gitlab/raspberry-pi2: Official Community Edition releases built for Raspberry Pi packages.
You can run this command to update the latest repositories if you have GitLab installed on your server.
$ sudo apt update
To upgrade to the latest GitLab version:
# Ubuntu/Debian
$ sudo apt upgrade gitlab-ee
# RHEL/CentOS 6 and 7
$ sudo yum upgrade gitlab-ee
# RHEL/CentOS 8
$ sudo dnf upgrade gitlab-ee
# SUSE
$ sudo zypper upgrade gitlab-ee
Note: For the GitLab Community Edition, replace gitlab-ee
with gitlab-ce
.
Use these commands with a version number to upgrade GitLab to a specific version.
# Ubuntu/Debian
$ sudo apt install gitlab-ee=<version>
# RHEL/CentOS 6 and 7
$ sudo yum install gitlab-ee-<version>
# RHEL/CentOS 8
$ sudo dnf install gitlab-ee-<version>
# SUSE
$ sudo zypper install gitlab-ee=<version>
After the package is downloaded, install it by using one of the following commands and replacing <package_name>
with the package name you downloaded:
# Debian/Ubuntu
$ dpkg -i <package_name>
# CentOS/RHEL
$ rpm -Uvh <package_name>
# SUSE
$ zypper install <package_name>
We hope this post would help you know how to fix CVE-2022-1680, a critical account takeover vulnerability in GitLab. Please share this post and help to secure the digital world. Visit our social media page on Facebook, LinkedIn, Twitter, Telegram, Tumblr, Medium & Instagram, and subscribe to receive updates like this.
You may also like these articles:
How to Fix CVE-2022-2884- A Remote Code Execution Vulnerability in GitLab
How To Fix CVE-2022-42948- A Critical RCE Vulnerability in Cobalt Strike
How To Fix CVE-2021-22205, Unauthenticated RCE Vulnerability In GitLab
How to Fix CVE-2023-5009- A Critical Vulnerability in GitLab Scan Execution Policies?
16 New Vulnerabilities in GitLab – Update GitLab to 15.2.1, 15.1.4, and 15.0.5
Arun KL is a cybersecurity professional with 15+ years of experience in IT infrastructure, cloud security, vulnerability management, Penetration Testing, security operations, and incident response. He is adept at designing and implementing robust security solutions to safeguard systems and data. Arun holds multiple industry certifications including CCNA, CCNA Security, RHCE, CEH, and AWS Security.
“Knowledge Arsenal: Empowering Your Security Journey through Continuous Learning”
"Cybersecurity All-in-One For Dummies" offers a comprehensive guide to securing personal and business digital assets from cyber threats, with actionable insights from industry experts.
BurpGPT is a cutting-edge Burp Suite extension that harnesses the power of OpenAI's language models to revolutionize web application security testing. With customizable prompts and advanced AI capabilities, BurpGPT enables security professionals to uncover bespoke vulnerabilities, streamline assessments, and stay ahead of evolving threats.
PentestGPT, developed by Gelei Deng and team, revolutionizes penetration testing by harnessing AI power. Leveraging OpenAI's GPT-4, it automates and streamlines the process, making it efficient and accessible. With advanced features and interactive guidance, PentestGPT empowers testers to identify vulnerabilities effectively, representing a significant leap in cybersecurity.
Tenable BurpGPT is a powerful Burp Suite extension that leverages OpenAI's advanced language models to analyze HTTP traffic and identify potential security risks. By automating vulnerability detection and providing AI-generated insights, BurpGPT dramatically reduces manual testing efforts for security researchers, developers, and pentesters.
Microsoft Security Copilot is a revolutionary AI-powered security solution that empowers cybersecurity professionals to identify and address potential breaches effectively. By harnessing advanced technologies like OpenAI's GPT-4 and Microsoft's extensive threat intelligence, Security Copilot streamlines threat detection and response, enabling defenders to operate at machine speed and scale.