More Info:

Ensure that HTTPS is enabled for the load balancer associated with your Amazon Elastic Beanstalk application environment in order to handle encrypted web traffic. By default, the load balancer handles unencrypted traffic requests (HTTP) through port 80. To enable HTTPS traffic over port 443, you must create and configure an HTTPS listener for the associated load balancer.

Risk Level

High

Address

Security

Compliance Standards

SOC2, GDPR, PCIDSS, NIST, HITRUST, NISTCSF

Triage and Remediation

Remediation

Sure, here are the step by step instructions to remediate the misconfiguration “Enforce HTTPS for Elastic Beanstalk Load Balancers” for AWS using AWS console:

  1. Log in to your AWS Management Console.
  2. Navigate to the Elastic Beanstalk service.
  3. Select the environment that you want to remediate.
  4. Click on the “Configuration” tab in the left-hand menu.
  5. Scroll down to the “Load Balancer” section and click on “Edit”.
  6. In the “Listeners” section, click on the “Add listener” button.
  7. Select “HTTPS” as the protocol and enter the appropriate port number (usually 443).
  8. Choose the SSL certificate that you want to use from the drop-down list.
  9. In the “Rules” section, click on the “Add rule” button.
  10. Choose “Redirect HTTP to HTTPS” from the drop-down list.
  11. Click on the “Apply” button to save the changes.
  12. Wait for the environment to update and the changes to take effect.

Once these steps are completed, your Elastic Beanstalk Load Balancer will enforce HTTPS and redirect all HTTP traffic to HTTPS.

Additional Reading: