API Gateway cached responses are not encrypted Affecting API Gateway (REST APIs) service in AWS


Severity

0.0
high
0
10
Severity Framework
Snyk CCSS
Rule category
Data/ Access

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
CIS-ControlsCSA-CCMGDPRHIPAAISO-27001NIST-800-53SOC-2
  • Snyk IDSNYK-CC-00287
  • creditSnyk Research Team

Description

If someone gains unauthorized access to the cache storage location, the contents will be readable, which may disclose sensitive information.

How to fix?

Set the settings.cache_data_encrypted attribute to true.

Example Configuration

resource "aws_api_gateway_method_settings" "allowed" {
  rest_api_id = aws_api_gateway_rest_api.example.id
  stage_name  = aws_api_gateway_stage.example.stage_name
  method_path = "*/*"

  settings {
    cache_data_encrypted = true
  }
}