Information
The IIS 10.0 website must be configured to limit the size of web requests.
GROUP ID: V-218754
RULE ID: SV-218754r961152
By setting limits on web requests, it ensures availability of web services and mitigates the risk of buffer overflow type attacks. The maxAllowedContentLength Request Filter limits the number of bytes the server will accept in a request.
Solution
Follow the procedures below for each site hosted on the IIS 10.0 web server:
Open the IIS 10.0 Manager.
Click the site name under review.
Double-click the 'Request Filtering' icon.
Click 'Edit Feature Settings' in the 'Actions' pane.
Set the 'maxAllowedContentLength' value to '30000000' or less.