Severity Framework
Snyk CCSS
Rule category
General / Public Access
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 applicationsFrameworks
CIS-Controls
- Snyk ID SNYK-CC-00275
- credit Snyk Research Team
Description
Inbound traffic is allowed to a resource from any source instead of a restricted range, and potentially everyone can access your resource.
How to fix?
Set cidr_blocks
attribute to specific CIDR block range only, e.g. 192.168.1.0/24
.
Example Configuration
resource "aws_security_group_rule" "allowed" {
type = "ingress"
from_port = 0
to_port = 65535
protocol = "tcp"
cidr_blocks = ["192.168.1.0/24"]
security_group_id = "sg-12345678"
}