STIGhubSTIGhub
STIGhub— A free STIG search and compliance tool·STIGs updated 1 hour ago
Powered by Pylon·Privacy·Terms·Feedback·© 2026 Beacon Cloud Solutions, Inc.
← Back to Citrix NetScaler ALG Security Technical Implementation Guide

V-289128

CAT II (Medium)

To protect against data mining, the NetScaler Gateway providing content filtering must detect code injection attacks from being launched against data storage objects, including, at a minimum, databases, database records, queries, and fields.

Rule ID

SV-289128r1318153_rule

STIG

Citrix NetScaler ALG Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-002347

Discussion

Data mining is the analysis of large quantities of data to discover patterns and is used in intelligence gathering. Failure to detect attacks launched against organizational databases may result in the compromise of information. Injection attacks allow an attacker to inject code into a program or query or inject malware onto a computer to execute remote commands that can read or modify a database, or change data on a website. Web applications frequently access databases to store, retrieve, and update information. An attacker can construct inputs that the database will execute. This is most commonly referred to as a code injection attack. This type of attack includes XPath and LDAP injections. ALGs with anomaly detection must be configured to protect against unauthorized code injections. These devices must include rules and anomaly detection algorithms to monitor for atypical database queries or accesses. Examples include a Web Application Firewalls (WAFs) or database application gateways.

Check Content

Verify the NetScaler Gateway prevents and detects code injection attacks (such as SQL injection) by enforcing the SQL Injection security check in the active WAF profile.

Method 1: GUI Verification
1. Log in to the NetScaler GUI.
2. Navigate to System >> Settings >> Configure Advanced Features and check the box for "Citrix Web App Firewall". Select "OK".
3. Navigate to Security >> Citrix Web App Firewall >> Profiles.
4. Select the active AppFw Profile and select "Edit".
5. In "Advanced Settings" menu on the right, select "Security Checks".
6. In the main panel, verify "SQL Injection" has "Block", "Log", and "Stats" enabled.

Method 2: CLI Verification
1. Log in to the NetScaler CLI.
2. Run the following command to check if the Application Firewall feature is active:
   show ns feature
3. Locate the "AppFw" feature in the output. If the feature is "OFF", this requirement is Not Applicable and no further auditing is required.
4. If the feature is "ON", run the following command to identify the active globally bound WAF policy:
   show appfw global
5. Run the following command to view the profile settings:
   show appfw profile <profile_name>
6. Verify the output displays that the SQL Injection check is configured to block and log (e.g., SQL Injection Action: block log stats).

If the AppFw feature is enabled but the SQL Injection check is not configured to block, log, and gather stats, this is a finding.

Fix Text

Configure the NetScaler Gateway to prevent and detect code injection attacks using the WAF.

Method 1: GUI Configuration
1. Log in to the NetScaler GUI.
2. Navigate to Security >> Citrix Web App Firewall >> Profiles.
3. Select the active WAF profile and select "Edit".
4. In the "Advanced Settings" menu on the right, select "Security Checks".
5. In the main panel, locate "SQL Injection" and check the boxes in the "Block", "Log", and "Stats" columns.
6. Select "OK" or "Done".
7. Save the configuration.

Method 2: CLI Configuration
1. Log in to the NetScaler CLI.
2. Run the following command to update the active WAF profile to block and log code injection attacks:
   set appfw profile <profile_name> -SQLInjectionAction block log stats
3. Run the following command to save the configuration:
   save ns config