Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBracketRule = errors.New("bracket rule triggered, input contains one of the following characters: (){}[]") ErrForbiddenKeywords = errors.New("forbidden keywords triggered, input contains one of the following keywords in a vulnerable format: alert, prompt") )
View Source
var DefaultRules []Rule = []Rule{ ForbiddenKeywords{}, ForbiddenHTMLUnescapeStringKeywords{}, ForbiddenURLQueryUnescapeKeywords{}, ForbiddenUnicodeKeywords{}, ForbiddenLowercaseKeywords{}, }
Functions ¶
Types ¶
type BracketRule ¶
type BracketRule struct{}
func (BracketRule) Check ¶
func (BracketRule) Check(input string) error
type ForbiddenHTMLUnescapeStringKeywords ¶
type ForbiddenHTMLUnescapeStringKeywords struct{}
func (ForbiddenHTMLUnescapeStringKeywords) Check ¶
func (f ForbiddenHTMLUnescapeStringKeywords) Check(input string) error
type ForbiddenKeywords ¶
type ForbiddenKeywords struct{}
func (ForbiddenKeywords) Check ¶
func (f ForbiddenKeywords) Check(input string) error
type ForbiddenLowercaseKeywords ¶
type ForbiddenLowercaseKeywords struct{}
func (ForbiddenLowercaseKeywords) Check ¶
func (f ForbiddenLowercaseKeywords) Check(input string) error
type ForbiddenURLQueryUnescapeKeywords ¶
type ForbiddenURLQueryUnescapeKeywords struct{}
func (ForbiddenURLQueryUnescapeKeywords) Check ¶
func (f ForbiddenURLQueryUnescapeKeywords) Check(input string) error
type ForbiddenUnicodeKeywords ¶
type ForbiddenUnicodeKeywords struct{}
func (ForbiddenUnicodeKeywords) Check ¶
func (f ForbiddenUnicodeKeywords) Check(input string) error
Click to show internal directories.
Click to hide internal directories.