10.4 Ensure the Maximum Request Body Size Is Set Properly

Information

The 'LimitRequestBody' directive sets the maximum size of an HTTP request body. It is recommended that the 'LimitRequestBody' directive be set to '102400' or less.

Rationale:

Limiting request body size may reduce the exposure of a buffer-related vulnerability potentially present in a code base hosted by Apache HTTP server.

Solution

Perform the following to implement the recommended state:

Add or modify the 'LimitRequestBody' directive in the Apache configuration to have a value of '102400' (100K) or less. Please read the Apache documentation so it is understood this directive will limit the size of file uploads to the web server.

LimitRequestBody 102400

See Also

https://workbench.cisecurity.org/files/2020

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CSCv6|9

Plugin: Unix

Control ID: 9815b33a003a4882e4cbcfea0324d3513396ec39714bbef67f049837e016c9a0