Previous Topic: Specify Bad Form Characters

Next Topic: Help Prevent Attacks

Specify Bad Query Characters

To prevent certain characters the query string portion of a URL, set the following parameter:

Web Agents search for prohibited characters in query strings by comparing the characters in the query string of the URL with the ASCII values of the characters defined in the BadQueryChars parameter. For an example, see the following process;

  1. The BadQueryChars parameter contains the URL-encoded value for the percent symbol (%) as shown in the following example:
    %25
    
  2. The Web Agent receives an HTTP request that contains the following query string:
    xxx=%0d
    
  3. The Web Agent examines the URL in the previous example, but does not decode the URL-encoded values. For example, the Web Agent interprets the previous example (in Step 2) as the literal string %0d, and not as a carriage return.
  4. The Web Agent examines the values in the BadQueryChars parameter, and converts them to their ASCII values. For example, the %25 in Step 1 is converted to a percent symbol (%).
  5. The Web Agent compares each character in the URL against the decoded ASCII values from the BadQueryChars parameter.
  6. The Web Agent blocks the request, because the ASCII percent symbol (%) exists in both of the following places:

To block certain characters from query strings, set the value of the BadQueryChars parameter to include the characters you want to block.


Copyright © 2010 CA. All rights reserved. Email CA about this topic