Google Cloud Build Configuration Detected

medium Web App Scanning Plugin ID 113166

Synopsis

Google Cloud Build Configuration Detected

Description

Cloud Build is Google Cloud continuous integration and deployment serverless platform used to build and test software projects. By defining a configuration file named `cloudbuild.yaml` in their source code repositories, developers can customize their applications build workflows.

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

Solution

Ensure that the `cloudbuild.yaml` 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://cloud.google.com/build

https://cloud.google.com/build/docs/build-config-file-schema

https://cloud.google.com/build/docs/configuring-builds/create-basic-configuration

Plugin Details

Severity: Medium

ID: 113166

Type: remote

Published: 3/11/2022

Updated: 3/11/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