VPC security group rule permits ingress from '0.0.0.0/0' to port 11214 (Memcached SSL) Affecting VPC service in AWS


0.0
medium
0
10
    Severity Framework Snyk CCSS
    Rule category Network / Ports

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 ISO-27001 NIST-800-53 PCI-DSS SOC-2
  • Snyk ID SNYK-CC-00127
  • credit Snyk Research Team

Description

Removing unfettered connectivity to a Memcached SSL server reduces the chance of exposing critical data.

How to fix?

Set the ingress.cidr_blocks attribute with a more restrictive CIDR block, for example 192.16.0.0/24.

Example Configuration

resource "aws_security_group" "allow_some_cidr_valid" {
  name        = "allow_some_cidr_valid"
  description = "Allow from valid CIDR"

  ingress {
    from_port   = 11214
    to_port     = 11214
    protocol    = "tcp"
    cidr_blocks = ["192.16.0.0/24"]
  }
}