remove default modsec rules in lsws config
This commit is contained in:
parent
e5f5693aa5
commit
85e1415335
|
|
@ -125,19 +125,7 @@
|
|||
<name>XSS attack</name>
|
||||
<ruleSetAction>log,deny,status:403,msg:'XSS attack'</ruleSetAction>
|
||||
<enabled>1</enabled>
|
||||
<ruleSet>SecFilterSelective ARGS "(alert|expression|eval|url)[[:space:]]*\("
|
||||
SecFilterSelective ARGS "(&\{.+\}|(&#[[0-9a-fA-F]]|\x5cx[0-9a-fA-F]){2})"
|
||||
|
||||
SecFilterSelective ARGS "((javascript|vbscript):|style[[:space:]]*=)"
|
||||
SecFilterSelective ARGS "(fromCharCode|http-equiv|<.+>|innerHTML|dynsrc|-->)"
|
||||
SecFilterSelective ARGS "document\.(body|cookie|location|write)"
|
||||
|
||||
SecFilterSelective ARGS_VALUES "jsessionid|phpsessid|onReadyStateChange|xmlHttp"
|
||||
|
||||
SecFilterSelective ARGS "<(applet|div|embed|iframe|img|meta|object|script|textarea)"
|
||||
|
||||
# JavaScript event handlers
|
||||
SecFilterSelective ARGS "on(Abort|Blur|Click|DblClick|DragDrop|Error|Focus|KeyUp|KeyDown|KeyPrerss|Load|Mouse(Down|Out|Over|Up)|Move|Reset|Resize|Select|Submit|Unload)"</ruleSet>
|
||||
<ruleSet></ruleSet>
|
||||
</censorshipRuleSet>
|
||||
<censorshipRuleSet>
|
||||
<name>SQL injection</name>
|
||||
|
|
|
|||
|
|
@ -125,31 +125,7 @@
|
|||
<name>XSS attack</name>
|
||||
<ruleSetAction>log,deny,status:403,msg:'XSS attack'</ruleSetAction>
|
||||
<enabled>1</enabled>
|
||||
<ruleSet>SecFilterSelective ARGS "(alert|expression|eval|url)[[:space:]]*\("
|
||||
SecFilterSelective ARGS "(&\{.+\}|(&#[[0-9a-fA-F]]|\x5cx[0-9a-fA-F]){2})"
|
||||
|
||||
SecFilterSelective ARGS "((javascript|vbscript):|style[[:space:]]*=)"
|
||||
SecFilterSelective ARGS "(fromCharCode|http-equiv|<.+>|innerHTML|dynsrc|-->)"
|
||||
SecFilterSelective ARGS "document\.(body|cookie|location|write)"
|
||||
|
||||
SecFilterSelective ARGS_VALUES "jsessionid|phpsessid|onReadyStateChange|xmlHttp"
|
||||
|
||||
SecFilterSelective ARGS "<(applet|div|embed|iframe|img|meta|object|script|textarea)"
|
||||
|
||||
# JavaScript event handlers
|
||||
SecFilterSelective ARGS "on(Abort|Blur|Click|DblClick|DragDrop|Error|Focus|KeyUp|KeyDown|KeyPrerss|Load|Mouse(Down|Out|Over|Up)|Move|Reset|Resize|Select|Submit|Unload)"</ruleSet>
|
||||
</censorshipRuleSet>
|
||||
<censorshipRuleSet>
|
||||
<name>SQL injection</name>
|
||||
<ruleSetAction>log,pass,msg:'SQL Injection attack'</ruleSetAction>
|
||||
<enabled>1</enabled>
|
||||
<ruleSet>#SQL generic
|
||||
SecFilterSelective ARGS "drop[[:space:]]+(database|table|column|procedure)"
|
||||
SecFilterSelective ARGS "delete[[:space:]]+from|create[[:space:]]+table|update.+set.+=|insert[[:space:]]+into.+values"
|
||||
SecFilterSelective ARGS "select.+from|bulk[[:space:]]+insert|union.+select|alter[[:space:]]+table"
|
||||
SecFilterSelective ARGS "or.+1[[:space:]]*=[[:space:]]1|or 1=1--'|'.+--"
|
||||
|
||||
SecFilterSelective ARGS "into[[:space:]]+outfile|load[[:space:]]+data|/\*.+\*/"</ruleSet>
|
||||
<ruleSet></ruleSet>
|
||||
</censorshipRuleSet>
|
||||
<accessDenyDir>
|
||||
<dir>/</dir>
|
||||
|
|
|
|||
Loading…
Reference in New Issue