Setting up a parse tree

WAF has the ability to mask fields (changes the display

fields in the WAF web interface).

To configure masking, you need to go to the “Applications” tab

-> “Settings” go to the bottom of the page and click on the button “image228” (see Figure 133).

image229

Figure 133 – Adding masking

After clicking on the add button, the masking creation window appears (see Figure 134).

image230

Figure 134 – Configuring masking

  1. Type – select the masking type from the drop-down list. The types are described in table section 11.

Table 11 – Description of masking types

Type

Description

Smart replacement

Preserves the character type (numbers, lowercase/uppercase ASCII) by replacing it with another random character

Password

Replaces the symbols of the masked element with random ones

Number

Replaces only numbers with random numbers

CVC

Replaces triples of digits with random symbols

Credit Card Number

Replaces a string that matches the form of a credit card number with random numbers

Complete deletion of subtree data

Hides the parse tree path, leaving an empty value in place of the path

  1. Strict masking - used to replace with only one character of each type (456 -> 000, word -> aaaa).

  2. Path – the path in the parse tree to the element that needs to be masked.

If, after configuring masking, the data in the parse tree is not masked, you need to check that masking is enabled in the analyzer settings (see section 17).

Note

It will be incorrect to configure masking on the URL or its parts; this will lead to incorrect display of transactions in the web interface.