FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
kmak
Staff
Staff
Article Id 263522
Description This article describes how to configure the Input Parameter Validation policy and rules.
Scope FortiWeb.
Solution

Prerequisite:

  • The server policy is applied with the Parameter Validation policy.

 

  1. Before creating the Parameter Validation rule, find out the list of input parameters in a web page to be validated. In the example, the input parameters can be found using the browser’s Developer Tools.

 

kmak_0-1689125199234.jpeg

 

  1. In FortiWeb, navigate to the Parameter Validation page and create a new Parameter Validation Rule.

 

kmak_1-1689125199238.jpeg

 

  1. Add a name for the Parameter Validation Rule. Enable Host Status and insert the web host domain name if hostname matching is required. Insert the URL which contains the input parameters to be validated and select the action to be applied for the violated input.

 

kmak_2-1689125199241.jpeg

 

  1. Select Create New to add the web page input parameter.

 

kmak_3-1689125199245.jpeg

 

  1. Use the parameter name found on the web page. Insert the maximum length for each parameter to set the number limit of input characters. Enable Use Type Check and select the Data Type. Use regular expression or custom data type if wish to use custom input restriction.

 

kmak_4-1689125199251.jpeg

 

  1. Create all the input parameter names that require to be validated and use the Data Type to restrict the input characters.

 

kmak_5-1689125199254.jpeg

 

  1. Next, create a Parameter Validation Policy and associate the Parameter Validation Rule with the policy.

 

kmak_6-1689125199257.jpeg

 

  1. Enable the created Parameter Validation policy in the custom Web Protection Profile.

 

kmak_7-1689125199260.jpeg

 

  1. Once the policy is applied, test by sending some invalid characters in the webpage form.

 

kmak_8-1689125199261.jpeg

 

  1. The request shall be blocked as the First Name parameter contains invalid characters. The Attack ID shall be 20000005 which indicates the violation of the Parameter Validation policy.

 

kmak_9-1689125199263.jpeg

 

  1. Check out the FortiWeb attack logs to confirm if the blockage is related to the Parameter Validation policy violation.

 

kmak_10-1689125199265.jpeg

 

Related document:

https://docs.fortinet.com/document/fortiweb/7.2.3/administration-guide/808674
Contributors