ZeroHour
Help Net Securitypublished ()ingested @zeljkazorz

Critical GitLab flaw allows account takeover without user interaction, patch quickly! (CVE-2023-7028)

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2023-5356
+3 in the same advisory: …6955 …4812 …2030
Incorrect authorization checks in GitLab CE/EE from all versions starting from 8.13 before 16.5.6, all versions starting from 16.6 before 16.6.4, all versions s

Incorrect authorization checks in GitLab CE/EE from all versions starting from 8.13 before 16.5.6, all versions starting from 16.6 before 16.6.4, all versions starting from 16.7 before 16.7.2, allows a user to abuse slack/mattermost integrations to execute slash commands as another user.

NVD description · AI analysis pending
8.8
group max
<1%
  • gitlab gitlab
CVE-2023-7028
Unauthenticated Account Takeover via Password Reset Flaw in GitLab CE/EE

GitLab Community and Enterprise Editions contain a critical improper access control flaw (CWE-640) in which password reset emails for a user account could be delivered to an unverified email address. Because the password reset flow is reachable over the network without authentication or user interaction (CVSS 3.1: AV:N/AC:L/PR:N/UI:N), an unauthenticated remote attacker could trigger a password reset for a victim's account such that the reset link lands on an attacker-controlled, unverified email address, then set a new password and hijack the account. Taking over an account gives the attacker that account's privileges, so compromise of an administrator account could expose the instance's code repositories, settings, and any secrets or CI/CD credentials they can reach. All GitLab CE/EE versions from 16.1 through 16.7 prior to the patched releases (16.1.6, 16.2.9, 16.3.7, 16.4.5, 16.5.6, 16.6.4, and 16.7.2) are affected. The flaw is under active exploitation: it carries an EPSS of 94.6% (100th percentile), was added to CISA's Known Exploited Vulnerabilities catalog on 2024-05-01, and news coverage confirms attackers are hijacking accounts in the wild.

Do: Upgrade affected GitLab CE/EE instances immediately to the patched release for your track — 16.1.6, 16.2.9, 16.3.7, 16.4.5, 16.5.6, 16.6.4, or 16.7.2 (or later) — prioritizing internet-facing instances given active exploitation and the KEV listing. Audit user accounts for unverified or unexpected email addresses and review logs for password reset activity to identify possible takeovers, and rotate credentials for any high-privilege accounts you suspect were compromised.

9.895% KEV PoC ×2
  • GitLab CE/EE All versions from 16.1 prior to 16.1.6, 16.2 prior to 16.2.9, 16.3 prior to 16.3.7, 16.4 prior to 16.4.5, 16.5 prior to 16.5.6, 16.6 prior to 16.6.4, and 16.7 p
largetens of thousands of internet-exposed GitLab instances (public internet-wide scan data)
Full article462 words · extracted from helpnetsecurity.com · click to collapse

A critical vulnerability in GitLab CE/EE (CVE-2023-7028) can be easily exploited by attackers to reset GitLab user account passwords.

While also vulnerable, users who have two-factor authentication enabled on their account are safe from account takeover.

CVE-2023-7028

“We have not detected any abuse of this vulnerability on platforms managed by GitLab, including GitLab.com and GitLab Dedicated instances. Self-managed customers can review their logs to check for possible attempts to exploit this vulnerability,” GitLab security engineer Greg Myers noted, and outlined what to look for.

About CVE-2023-7028

CVE-2023-7028 affects GitLab self-managed instances running GitLab Community Edition (CE) and Enterprise Edition (EE) versions:

  • 16.1 prior to 16.1.5
  • 16.2 prior to 16.2.8
  • 16.3 prior to 16.3.6
  • 16.4 prior to 16.4.4
  • 16.5 prior to 16.5.6
  • 16.6 prior to 16.6.4
  • 16.7 prior to 16.7.2

“The vulnerability was introduced in 16.1.0 on May 1, 2023,” Myers shared, after a change was made to allow users to reset their password through a secondary email address. “The vulnerability is a result of a bug in the email verification process.”

CVE-2023-7028 was reported through the company’s bug bounty program and has been fixed in GitLab CE and EE versions 16.7.2, 16.6.4, 16.5.6.

GitLab advises admins of self-managed GitLab instances to upgrade to a patched version immediately, and to enable 2FA for all GitLab accounts (and especially for administrator accounts).

“If your configuration allows a username and password to be used in addition to SSO [single sign-on] options, then you are impacted. Disabling password authentication via https://docs.gitlab.com/ee/administration/settings/sign_in_restrictions.html#password-authentication-enabled will mitigate the vulnerability for Self-Managed customers that have an external identity provider configured, as this will disable the ability to perform password reset,” they added.

GitLab.com is already running the patched version, and the company has instituted new security measures to prevent vulnerabilities such as CVE-2023-7028 to crop up in the future.

Other vulnerabilities fixed by GitLab

GitLab CE and EE versions 16.7.2, 16.6.4 and 16.5.6 are security releases that also carry fixes for several other vulnerabilities:

  • CVE-2023-5356, a critical bug caused by incorrect authorization checks, which may allow a user to abuse Slack/Mattermost integrations to execute slash commands as another user
  • CVE-2023-4812 could allow attackers to bypass the required CODEOWNERS approval by adding changes to a previously approved merge request
  • CVE-2023-6955, which may allow an attacker to create a workspace in one group that is associated with an agent from another group, and
  • CVE-2023-2030, which could allow an attacker to modify the metadata of signed commits.

UPDATE (January 15, 2024, 05:30 a.m. ET):

PoC exploits for CVE-2023-7028 have already been published.

UPDATE (January 25, 2024, 04:00 a.m. ET):

The Shadowserver Foundation has pinpointed 5379 internet-facing GitLab instances vulnerable to CVE-2023-7028.

UPDATE (April 2, 2024, 04:55 a.m. ET):

Based on evidence of active exploitation, CISA has added CVE-2023-7028 to its Known Exploited Vulnerabilities catalog.

Text extracted automatically; images, tables and formatting may be missing. Original: https://www.helpnetsecurity.com/2024/01/12/cve-2023-7028/