Nifcloud Router Undefined Security Group

  • Query id: e7dada38-af20-4899-8955-dabea84ab1f0
  • Query name: Nifcloud Router Undefined Security Group
  • Platform: Terraform
  • Severity: High
  • Category: Networking and Firewall
  • CWE: 285
  • URL: Github

Description

Missing security group for Router
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - tf file
resource "nifcloud_router" "positive" {
  network_interface {
    network_id = "net-COMMON_GLOBAL"
  }
}

Code samples without security vulnerabilities

Negative test num. 1 - tf file
resource "nifcloud_router" "negative" {
  security_group = nifcloud_security_group.router.group_name

  network_interface {
    network_id = "net-COMMON_GLOBAL"
  }
}