# The Core Rule Set's exclusions for Gitea, which servewaf loads from # SWWAF_CORE_RULE_SET_EXCLUSIONS_FILE. servewaf loads this file before the Core # Rule Set's rules, so it holds only exclusions made while a request is checked: # SecAction and SecRule lines with ctl:ruleRemoveTargetById or # ctl:ruleRemoveById. Each switches one rule off for the Gitea fields or paths # where it refused ordinary Gitea requests. A SecAction applies on every path, a # SecRule on the paths it matches. Gitea sends these in the query string: # - q: the text of every search; # - file, path, template, body and redirect_to: a file name, alone or in # JSON or a link; # - name, tag, rule_name and refSubUrl: a branch or tag name. # docs/gitea.md says how to add an exclusion. # Searches. # 930110: a search for ../ SecAction "id:10001,phase:1,pass,nolog,ctl:ruleRemoveTargetById=930110;ARGS:q" # 931100: a search for http://127.0.0.1:8080 SecAction "id:10002,phase:1,pass,nolog,ctl:ruleRemoveTargetById=931100;ARGS:q" # 932140: a search for if (a == b) { SecAction "id:10003,phase:1,pass,nolog,ctl:ruleRemoveTargetById=932140;ARGS:q" # 932235: a search for `make check` SecAction "id:10004,phase:1,pass,nolog,ctl:ruleRemoveTargetById=932235;ARGS:q" # 932250: a search for ls -la SecAction "id:10005,phase:1,pass,nolog,ctl:ruleRemoveTargetById=932250;ARGS:q" # 932380: a search for `whoami` SecAction "id:10006,phase:1,pass,nolog,ctl:ruleRemoveTargetById=932380;ARGS:q" # 933100: a search for SecAction "id:10011,phase:1,pass,nolog,ctl:ruleRemoveTargetById=941100;ARGS:q" # 941110: a search for