-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2023.0222
            GitLab Security Release: 15.7.2, 15.6.4, and 15.5.7
                              13 January 2023

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           GitLab Community Edition (CE)
                   GitLab Enterprise Edition (EE)
Publisher:         GitLab
Operating System:  Windows
                   Linux variants
Resolution:        Patch/Upgrade
CVE Names:         CVE-2023-0042 CVE-2022-4365 CVE-2022-4342
                   CVE-2022-4167 CVE-2022-4131 CVE-2022-4037
                   CVE-2022-3870 CVE-2022-3613 CVE-2022-3573
                   CVE-2022-3514  

Original Bulletin: 
   https://about.gitlab.com/releases/2023/01/09/security-release-gitlab-15-7-2-released/

Comment: CVSS (Max): 5.8 CVE-2022-3613 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L)
         CVSS Source: GitLab
         Calculator: https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L

- --------------------------BEGIN INCLUDED TEXT--------------------

GitLab Security Release: 15.7.2, 15.6.4, and 15.5.7

Today we are releasing versions 15.7.2, 15.6.4, and 15.5.7 for GitLab Community
Edition (CE) and Enterprise Edition (EE).

These versions contain important security fixes, and we strongly recommend that
all GitLab installations be upgraded to one of these versions immediately.
GitLab.com is already running the patched version.

GitLab releases patches for vulnerabilities in dedicated security releases.
There are two types of security releases: a monthly, scheduled security
release, released a week after the feature release (which deploys on the 22nd
of each month), and ad-hoc security releases for critical vulnerabilities. For
more information, you can visit our security FAQ. You can see all of our
regular and security release blog posts here. In addition, the issues detailing
each vulnerability are made public on our issue tracker 30 days after the
release in which they were patched.

We are dedicated to ensuring all aspects of GitLab that are exposed to
customers or that host customer data are held to the highest security
standards. As part of maintaining good security hygiene, it is highly
recommended that all customers upgrade to the latest security release for their
supported version. You can read more best practices in securing your GitLab
instance in our blog post.

Recommended Action

We strongly recommend that all installations running a version affected by the
issues described below are upgraded to the latest version as soon as possible.

When no specific deployment type (omnibus, source code, helm chart, etc.) of a
product is mentioned, this means all types are affected.

Table of Fixes
+-----------------------------------------------------------------+------------+
| Title                                                           | Severity   |
|-----------------------------------------------------------------+------------|
| Race condition on gitlab.com enables verified email forgery &   | medium     |
| third-party account hijacking                                   |            |
| DOS and high resource consumption of Prometheus server through  | medium     |
| abuse of Grafana integration proxy endpoint                     |            |
| Maintainer can leak sentry token by changing the configured URL | medium     |
| Maintainer can leak masked webhook secrets by changing target   | medium     |
| URL of the webhook                                              |            |
| Cross-site scripting in wiki changes page affecting self-hosted | medium     |
| instances running without strict CSP                            |            |
| Group access tokens continue to work after owner loses ability  | medium     |
| to revoke them                                                  |            |
| Users' avatar disclosure by user ID in private GitLab instances | medium     |
| Arbitrary Protocol Redirection in GitLab Pages                  | medium     |
| ReDoS due to device-detector parsing user agents                | medium     |
| Regex DOS in the Submodule Url Parser                           | medium     |
+-----------------------------------------------------------------+------------+

Race condition on gitlab.com enables verified email forgery & third-party
account hijacking

An issue has been discovered in GitLab CE/EE affecting all versions before
15.5.7, all versions starting from 15.6 before 15.6.4, all versions starting
from 15.7 before 15.7.2. A race condition can lead to verified email forgery
and takeover of third-party accounts when using GitLab as an OAuth provider.
This is a medium severity issue (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N,
6.4). It is now mitigated in the latest release and is assigned CVE-2022-4037.

Thanks to an anonymous researcher for reporting this vulnerability through our
HackerOne bug bounty program.

DOS and high resource consumption of Prometheus server through abuse of Grafana
integration proxy endpoint

An issue has been discovered in GitLab CE/EE affecting all versions before
15.5.7, all versions starting from 15.6 before 15.6.4, all versions starting
from 15.7 before 15.7.2. A crafted Prometheus Server query can cause high
resource consumption and may lead to Denial of Service. This is a medium
severity issue (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L, 5.8). It is now
mitigated in the latest release and is assigned CVE-2022-3613.

Thanks joaxcar for reporting this vulnerability through our HackerOne bug
bounty program.

Maintainer can leak sentry token by changing the configured URL

An issue has been discovered in GitLab CE/EE affecting all versions starting
from 11.8 before 15.5.7, all versions starting from 15.6 before 15.6.4, all
versions starting from 15.7 before 15.7.2. A malicious Maintainer can leak the
sentry token by changing the configured URL in the Sentry error tracking
settings page. This is a medium severity issue
(CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N, 5.5). It is now mitigated in the
latest release and is assigned CVE-2022-4365.

Thanks joaxcar for reporting this vulnerability through our HackerOne bug
bounty program.

Maintainer can leak masked webhook secrets by changing target URL of the
webhook

An issue has been discovered in GitLab CE/EE affecting all versions starting
from 15.1 before 15.5.7, all versions starting from 15.6 before 15.6.4, all
versions starting from 15.7 before 15.7.2. A malicious Maintainer can leak
masked webhook secrets by changing target URL of the webhook. This is a medium
severity issue (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N, 5.5). It is now
mitigated in the latest release and is assigned CVE-2022-4342.

Thanks joaxcar for reporting this vulnerability through our HackerOne bug
bounty program.

Cross-site scripting in wiki changes page affecting self-hosted instances
running without strict CSP

An issue has been discovered in GitLab CE/EE affecting all versions starting
from 15.4 before 15.5.7, all versions starting from 15.6 before 15.6.4, all
versions starting from 15.7 before 15.7.2. Due to the improper filtering of
query parameters in the wiki changes page, an attacker can execute arbitrary
JavaScript on the self-hosted instances running without strict CSP. This is a
medium severity issue (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, 5.4). It
is now mitigated in the latest release and is assigned CVE-2022-3573.

Incorrect Authorization check affecting all versions of GitLab EE from 13.11
prior to 15.5.7, 15.6 prior to 15.6.4, and 15.7 prior to 15.7.2 allows group
access tokens to continue working even after the group owner loses the ability
to revoke them. This is a medium severity issue
(CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N, 5.3). It is now mitigated in the
latest release and is assigned CVE-2022-4167.

Group access tokens continue to work after owner loses ability to revoke them

Incorrect Authorization check affecting all versions of GitLab EE from 13.11
prior to 15.5.7, 15.6 prior to 15.6.4, and 15.7 prior to 15.7.2 allows group
access tokens to continue working even after the group owner loses the ability
to revoke them. This is a medium severity issue
(CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N, 5.3). It is now mitigated in the
latest release and is assigned CVE-2022-4167.

This vulnerability was reported to us by a customer.

Users' avatar disclosure by user ID in private GitLab instances

An issue has been discovered in GitLab CE/EE affecting all versions starting
from 10.0 before 15.5.7, all versions starting from 15.6 before 15.6.4, all
versions starting from 15.7 before 15.7.2. GitLab allows unauthenticated users
to download user avatars using the victim's user ID, on private instances that
restrict public level visibility. This is a medium severity issue
(CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, 5.3). It is now mitigated in the
latest release and is assigned CVE-2022-3870.

Thanks nocasis for reporting this vulnerability through our HackerOne bug
bounty program.

Arbitrary Protocol Redirection in GitLab Pages

An issue has been discovered in GitLab CE/EE affecting all versions starting
from 11.4 prior to 15.5.7, 15.6 prior to 15.6.4, and 15.7 prior to 15.7.2.
GitLab Pages allows redirection to arbitrary protocols. This is a medium
severity issue (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, 4.3). It is now
mitigated in the latest release and is assigned CVE-2023-0042.

This vulnerability has been discovered internally by a GitLab team member,
Joern Schneeweisz.

Regex DoS due to device-detector parsing user agents

An issue has been discovered in GitLab CE/EE affecting all versions starting
from 10.8 before 15.5.7, all versions starting from 15.6 before 15.6.4, all
versions starting from 15.7 before 15.7.2. An attacker may cause Denial of
Service on a GitLab instance by exploiting a regex issue in how the application
parses user agents. This is a medium severity issue
(CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L, 4.3). It is now mitigated in the
latest release and is assigned CVE-2022-4131.

Thanks afewgoats for reporting this vulnerability through our HackerOne bug
bounty program.

Regex DoS in the Submodule Url Parser

An issue has been discovered in GitLab CE/EE affecting all versions starting
from 6.6 before 15.5.7, all versions starting from 15.6 before 15.6.4, all
versions starting from 15.7 before 15.7.2. An attacker may cause Denial of
Service on a GitLab instance by exploiting a regex issue in the submodule URL
parser. This is a medium severity issue
(CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L, 4.3). It is now mitigated in the
latest release and is assigned CVE-2022-3514.

Thanks mokusou for reporting this vulnerability through our HackerOne bug
bounty program.

Update Mattermost

Mattermost has been updated to version 7.3.1 in order to mitigate security
issues.

Affects all versions of GitLab Omnibus 15.4 and 15.5.

Versions affected

Affects all versions of GitLab Omnibus 15.4 and 15.5.

Python has been updated to version 3.8.16 in order to mitigate security issues.

Update Python

Python has been updated to version 3.8.16 in order to mitigate security issues.

Affects all versions of GitLab Omnibus 15.5, 15.6 and 15.7.

Versions affected

Affects all versions of GitLab Omnibus 15.5, 15.6 and 15.7.

Logrotate has been updated to version 3.20.1 in order to mitigate security
issues.

Update Logrotate

Logrotate has been updated to version 3.20.1 in order to mitigate security
issues.

Affects all versions of GitLab Omnibus 15.5, 15.6 and 15.7.

Versions affected

Affects all versions of GitLab Omnibus 15.5, 15.6 and 15.7.

Redis has been updated to version 6.2.8 in order to mitigate security issues.

Update Redis

Redis has been updated to version 6.2.8 in order to mitigate security issues.

Affects all versions of GitLab Omnibus.

Versions affected

Affects all versions of GitLab Omnibus.

To update GitLab, see the Update page. To update Gitlab Runner, see the
Updating the Runner page.

Updating

To update GitLab, see the Update page. To update Gitlab Runner, see the
Updating the Runner page.

To receive security release blog notifications delivered to your inbox, visit
our contact us page. To receive release notifications via RSS, subscribe to our
security release RSS feed or our RSS feed for all releases.

Receive Security Release Notifications

To receive security release blog notifications delivered to your inbox, visit
our contact us page. To receive release notifications via RSS, subscribe to our
security release RSS feed or our RSS feed for all releases.

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: https://auscert.org.au/gpg-key/

iQIVAwUBY8DtXckNZI30y1K9AQjdqw//faOsqJC76Vxr5FkPhlkbdxGxD1uKAIHp
hFKupT7ivMTlLD+ZgI1Y6buWuJ8qe4PXQY2bXUF96V1ZAhfIWyUfBnrrbYov3wNk
O2OrOB/XjneTIQkZ3J/qVTuNc6puagZtDFTo6m6upDm3yqUTARuZg0gqA4LzkU4r
QpUCsKMG9QbVrPr+PcwM0lGWb8wazRFHb+xRnj1JuBLt0jysU252Q24i0N8eMclN
dgwScPDii68syTJ5ieQrFXhyDD/lunZQcz9ShRzDJ18LYSRlSejNa4jKGYR31O35
Y0j/AdjFX5ma6YrNS1TdvmRwXfwv0NV0cE67BRp/CrDfJMO3qdyLVS9qgnC1okHu
+LPOonsEeRuAPgLEiZ6rxplk5RlAqsAQk79J8MN1IV/wFRnQQrmo9QF/ZKRXVhyu
UtSbqlql2WXB1X4KNowtvSHG0BeIJob1Tqaz4lpfrjUuAMWttGDz6fujudIPIth3
Es/V3oh9OwmDqoWxoHgM7GGaWVQH4PfmD/LFQnn2wRl0Qp9AeU7G+ylIf2ddapai
blUf+OqRUk1UCivstt48mdhkwh/JDoab9S4g/19M/idr3MVuB+wXIybrsSnxQ8XT
WOlGjZvAHewvGwqVHlERytQ7MlnLMp1HE3M+dekfyOZVbC+KLjIpkOz6JGRk+7gt
QEXqj+90llo=
=EBc+
-----END PGP SIGNATURE-----