Backend service is not enforcing HTTPS Affecting Compute Engine service in Google


Severity

0.0
high
0
10
    Severity Framework
    Snyk CCSS
    Rule category
    Network / Protocols

Is your enviroment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
    Frameworks
    CIS-Controls CSA-CCM GDPR HIPAA ISO-27001 NIST-800-53 PCI-DSS SOC-2
  • Snyk ID SNYK-CC-00399
  • credit Snyk Research Team

Description

Connection is vulnerable to being intercepted and hijacked to steal data.

How to fix?

Set protocol attribute to either HTTPS or SSL.

Example Configuration

resource "google_compute_region_backend_service" "allowed" {
  region                = "us-central1"
  name                  = "region-service-399-1"
  project               = "test-project"
  protocol              = "HTTPS"
  load_balancing_scheme = "INTERNAL_MANAGED"
  locality_lb_policy    = "ROUND_ROBIN"
}

resource "google_compute_region_backend_service" "allowed2" {
  region  = "us-central1"
  name    = "region-service-399-2"
  project = "test-project"
  protocol              = "SSL"
  load_balancing_scheme = "EXTERNAL"
  locality_lb_policy    = "MAGLEV"
}