SNS subscription allows access via HTTP Affecting SNS service in AWS


Severity

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

Is your environment 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
AWS-Well-ArchitectedCIS-ControlsCSA-CCMGDPRHIPAAISO-27001NIST-800-53PCI-DSSSOC-2
  • Snyk IDSNYK-CC-00147
  • creditSnyk Research Team

Description

SNS subscriptions should not use HTTP as the delivery protocol. To enforce encryption in transit, any subscription to an HTTP endpoint should use HTTPS instead.

How to fix?

Ensure that the aws_sns_topic_subscription protocol field is NOT set to http.

Example Configuration

resource "aws_sns_topic_subscription" "user_updates_sqs_target" {
  protocol = "https"
  # other required fields here
}