Nifcloud RDB Has Public DB Access

  • Query id: fb387023-e4bb-42a8-9a70-6708aa7ff21b
  • Query name: Nifcloud RDB Has Public DB Access
  • Platform: Terraform
  • Severity: High
  • Category: Access Control
  • CWE: 732
  • URL: Github

Description

The RDB has public DB access
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - tf file
resource "nifcloud_db_instance" "positive" {
  identifier          = "example"
  instance_class      = "db.large8"
  publicly_accessible = true
}

Code samples without security vulnerabilities

Negative test num. 1 - tf file
resource "nifcloud_db_instance" "negative" {
  identifier          = "example"
  instance_class      = "db.large8"
  publicly_accessible = false
}