Rule ID
SV-289071r1317982_rule
Version
V1R1
CCIs
If security attributes are not associated with the information being transmitted between components, then access control policies and information flows that depend on these security attributes will not function and unauthorized access may result. When data is exchanged, the security attributes associated with this data must be validated to ensure the data has not been changed. Security attributes are values associated with data content/structure and source/destination objects. These attributes are bound to the user and data objects and may include information about the data's purpose, creator, origin, access restrictions, access permissions, or classification. Specific security attributes used depend on the application or technology context. However, these attributes are used in information systems to implement security policy for access control and flow control for users, data, and traffic. Security attributes may be explicitly or implicitly associated with the information contained within the information system. Validation checking can be performed by various means, such as using a cryptographic hash function, boundary checking of values, checksums, or message authentication code. This requirement also applies to Zero Trust initiatives.
Verify the NetScaler Gateway validates the integrity of transmitted security attributes by enforcing strong TLS encryption and the Web App Firewall (WAF) Cookie Consistency check. 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. Verify the TLS protocol settings based on the appliance configuration: a. If an SSL Profile is bound: Select the pencil icon and edit the profile, then verify TLSv1.2 and/or TLSv1.3 is enabled, and legacy protocols (SSLv3, TLSv1.0, TLSv1.1) are disabled. b. If no SSL Profile is bound: Select the pencil icon to edit "SSL Parameters", then verify TLSv1.2 and/or TLSv1.3 is enabled and legacy protocols are disabled. 5. Navigate to System >> Settings >> Configure Advanced Features. 6. Verify the "Citrix Web App Firewall" checkbox is selected. 7. Navigate to Security >> Citrix Web App Firewall >> Profiles. 8. Select the active WAF profile and select "Edit". 9. In the "Advanced Settings" menu on the right, select "Security Checks". 10. In the main panel, verify that "Cookie Consistency" has "Block", "Log", and "Stats" enabled. Method 2: CLI Verification 1. Log in to the NetScaler CLI. 2. Run the following command to view the SSL settings of the Gateway Virtual Server: show ssl vserver <gateway_vserver_name> 3. If an SSL Profile is bound, run the following command to view the profile settings: show ssl profile <profile_name> 4. Verify the output of the applicable command (virtual server configuration or SSL profile configuration) displays that legacy protocols (SSLv3, TLSv1, TLSv11) are "DISABLED" and secure protocols (TLSv12 or TLSv13) are "ENABLED". 5. Run the following command to verify if the Application Firewall feature is active: show ns feature 6. Verify the "Citrix Web App Firewall" (AppFw) feature is "ON". 7. Run the following command to view the profile settings: show appfw profile <profile_name> 8. Verify the output displays that the Cookie Consistency check is configured to block and log (e.g., Cookie Consistency Action: block log stats). If strong TLS encryption is not enforced, or if the WAF Cookie Consistency check is not enabled and configured to block, this is a finding.
Configure the NetScaler Gateway to validate the integrity of transmitted security attributes using strong TLS and WAF Cookie Consistency. Method 1: GUI Configuration 1. Log in to the NetScaler GUI. 2. Enforce Strong TLS Encryption: Navigate to Citrix Gateway >> Virtual Servers and select "Edit" on the active Gateway. 3. Configure the TLS settings based on the appliance configuration: a. If an SSL Profile is bound: Select the pencil icon and edit the profile, uncheck legacy protocols (SSLv3, TLSv1.0, TLSv1.1), ensure TLSv1.2 or TLSv1.3 is checked, and select "OK". b. If no SSL Profile is bound: Select the pencil icon to edit "SSL Parameters", uncheck legacy protocols, ensure TLSv1.2 or TLSv1.3 is checked, and select "OK". 4. Navigate to System >> Settings >> Configure Advanced Features, select the "Citrix Web App Firewall" checkbox, and select "OK". 5. Navigate to Security >> Citrix Web App Firewall >> Profiles. 6. Select the active WAF profile and select "Edit". 7. In Advanced Settings menu on the right, select "Security Checks". 8. In the main panel, locate "Cookie Consistency" and check the boxes in the "Block", "Log", and "Stats" columns. Select "OK" or "Done". 9. Save the configuration. Method 2: CLI Configuration 1. Log in to the NetScaler CLI. 2. Enforce strong TLS protocols based on the appliance configuration: a. If an SSL profile is bound, set ssl profile: <profile_name> -ssl3 DISABLED -tls1 DISABLED -tls11 DISABLED -tls12 ENABLED b. If no SSL profile is bound, set ssl vserver: <gateway_vserver_name> -ssl3 DISABLED -tls1 DISABLED -tls11 DISABLED -tls12 ENABLED 3. Run the following command to enable the Application Firewall feature: enable ns feature AppFw 4. Run the following command to update the active WAF profile to enable the Cookie Consistency check: set appfw profile <profile_name> -cookieConsistencyAction block log stats 5. Run the following command to save the configuration: save ns config