[][src]Module http_desync_guardian::http_token_utils

Enums

TokenSimilarity

Constants

CHUNKED
CL
TE

Statics

BAD_CHARACTERS
HEADER_VALUE_CHARS
RFC_WHITE_SPACE
TCHAR_TABLE
VALID_URI_CHARS
VCHAR

Functions

determine_similarity

Determines similarity of two tokens taking into account only alpha-numeric characters.

find_next_alphanumeric
find_next_header_symbol
http_token
is_bad_http_character

Determines if a given character is an indication of a parsing error or a crafted malicious request. Includes: \r, \n and \0.

is_colon
is_rfc_obs_text
is_rfc_tchar
is_rfc_vchar
is_rfc_whitespace
is_space
is_valid_header_value_char
is_valid_te
is_valid_uri_char
obfuscate_value

We do not want to log header values It only loads violating characters

parse_num
rfc_whitespace_trim
to_quoted_ascii

Type Definitions

HttpToken

No allocation of new tokens is happening. All operations are in-place and read only.