Application Load Balancer should be configured to drop http headers
Severity: Medium
Resource Types: AWS::ELBV2::LoadBalancer
Description
This control evaluates AWS Application Load Balancers (ALB) to ensure they are configured to drop invalid HTTP headers. The control fails if the value of routing.http.drop_invalid_header_fields.enabled
is set to false
.
By default, ALBs are not configured to drop invalid HTTP header values. Removing these header values prevents HTTP desync attacks.
Remediation
To remediate this issue, configure your load balancer to drop invalid header fields.
To configure the load balancer to drop invalid header fields
- Open the Amazon EC2 console.
- In the navigation pane, choose
Load balancers
. - Choose an
Application Load Balancer
. - From
Actions
, chooseEdit attributes
. - Under
Drop Invalid Header Fields
, chooseEnable
. - Choose
Save
.