The IIS 10.0 websites Maximum Query String limit must be configured.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-218755SRG-APP-000246-WSR-000149IIST-SI-000227SV-218755r961152_rule2025-02-112
Description
Setting limits on web requests helps to ensure availability of web services and may also help mitigate the risk of buffer overflow type attacks. The Maximum Query String Request Filter describes the upper limit on allowable query string lengths. Upon exceeding the configured value, IIS will generate a Status Code 404.15.
ℹ️ Check
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. Double-click the "Request Filtering" icon. Click “Edit Feature Settings” in the "Actions" pane. If the "Maximum Query String" value is not set to "2048" or less, this is a finding.
✔️ Fix
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 "Maximum Query String" value to "2048" or less.