GitLab CI Configuration Detected

medium Web App Scanning Plugin ID 113142

Synopsis

GitLab CI Configuration Detected

Description

GitLab is a popular Git-based Source Code Management system (SCM) provided by GitLab Inc. as both a cloud and an on-premise service. GitLab has Continuous Integration and Continuous Development (CI/CD) capabilities offering automatic builds, tests and deployments through a configuration file named `.gitlab-ci.yml`.

When exposed with the web application, this file can be used by an attacker to gain access to sensitive information.

Solution

Ensure that the `.gitlab-ci.yml` file is not deployed with the application or, at least, is not exposed in a web server directory by setting proper permissions on it. If sensitive information like credentials are leaked in the exposed file, they should be revoked and reset on the affected assets.

See Also

https://about.gitlab.com/

https://docs.gitlab.com/ee/ci/

Plugin Details

Severity: Medium

ID: 113142

Type: remote

Published: 2/15/2022

Updated: 2/15/2022

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Low

Score: 1.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: Tenable

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CVSS Score Source: Tenable

Reference Information