Rule ID
SV-289073r1317988_rule
Version
V1R1
CCIs
A common vulnerability of network elements is unpredictable behavior when invalid inputs are received. This requirement guards against adverse or unintended system behavior caused by invalid inputs, where information system responses to the invalid input may be disruptive or cause the system to fail into an unsafe state. The behavior will be derived from the organizational and system requirements and includes, but is not limited to, notification of the appropriate personnel, creating an audit record, and rejecting invalid input. This requirement applies to gateways and firewalls that perform content inspection or have higher-layer proxy functions.
Verify the NetScaler Gateway behaves in a predictable and documented manner when invalid inputs are received by enforcing an HTTP Profile with strict validation. Method 1: GUI Verification 1. Log in to the NetScaler GUI. 2. Navigate to Citrix Gateway >> Virtual Servers. 3. Select the active Gateway Virtual Server and select "Edit". 4. Scroll down to the "Profiles" section, select the pencil icon and edit the bound HTTP Profile. 5. Verify the "Drop Invalid HTTP Requests" checkbox is selected. Method 2: CLI Verification 1. Log in to the NetScaler CLI. 2. Run the following command to identify the bound HTTP Profile: show vpn vserver <gateway_vserver_name> 3. Verify an "HTTP profile name" is listed in the output. 4. Run the following command to view the profile settings: show ns httpProfile <profile_name> 5. Verify the output displays "Drop invalid HTTP requests: ENABLED". If an HTTP Profile is not bound to the Gateway Virtual Server, or if the bound profile does not have the "Drop invalid HTTP requests" setting enabled, this is a finding.
Configure the NetScaler Gateway to behave in a predictable and documented manner when invalid inputs are received by binding a strict HTTP Profile. Note: Citrix provides a built-in profile named "nshttp_default_strict_validation" which natively satisfies this requirement, though a custom HTTP Profile may also be created and bound. Method 1: GUI Configuration 1. Log in to the NetScaler GUI. 2. Navigate to Citrix Gateway >> Virtual Servers. 3. Select the active Gateway Virtual Server and select "Edit". 4. Scroll down to the "Profiles" section and select the pencil icon to edit. 5. To use the built-in strict profile, select "nshttp_default_strict_validation" from the "HTTP Profile" drop-down menu. 6. To create and bind a custom profile directly, select "Add" next to the "HTTP Profile" drop-down menu, enter a name, select the "Drop Invalid HTTP Requests" checkbox, and select "Create". 7. Select "OK" and select "Done". 8. Save the configuration. Method 2: CLI Configuration 1. Log in to the NetScaler CLI. 2. Run the following command to bind the built-in strict HTTP profile to the Gateway Virtual Server (alternatively, apply a custom profile): set vpn vserver <gateway_vserver_name> -httpProfileName nshttp_default_strict_validation 3. Run the following command to save the configuration: save ns config