AWS Elastic Beanstalk Dockerrun Detected

medium Web App Scanning Plugin ID 113125

Synopsis

AWS Elastic Beanstalk Dockerrun Detected

Description

AWS Elastic Beanstalk is a Platform-as-a-Service (PaaS) feature provided by Amazon Web Services which allows developers to quickly deploy their web applications in various predefined environments (Java, .NET, PHP...) without managing the underlying infrastructure configuration. AWS Elastic Beanstalk also allows the deployment of Docker images based applications by using a specific JSON file named `Dockerrun.aws.json` which, when exposed, can be used by an attacker to gain access to sensitive information.

Solution

Ensure that the `Dockerrun.aws.json` file is not deployed with the application or, at least, is not exposed in a web server directory by setting proper permissions on it. If sensitive information like credentials are leaked in the exposed file, they should be revoked and reset on the affected assets.

See Also

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/Welcome.html

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.html

Plugin Details

Severity: Medium

ID: 113125

Type: remote

Published: 2/3/2022

Updated: 2/3/2022

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Low

Score: 1.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: Tenable

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CVSS Score Source: Tenable

Reference Information