# gitea's fixes: some fields skip the rules that refused ordinary gitea requests. # They are the fields where gitea sends a search, a file name or a branch name. # Each exclusion runs with the request, before the rules it switches off, those # of phase 1 included, so this file is loaded before the Core Rule Set's rules. # Each comment names a request the rule refused. # A request whose hostname SWW_APPS does not list gitea for skips every rule # below. Inspect sets tx.app_gitea on the others. SecRule &TX:app_gitea "@eq 0" \ "id:900590,phase:1,pass,nolog,skipAfter:END_GITEA" # The query parameters in which gitea sends names within a repository or its # own records, or a page of its own site, are not checked against the lists of # system files, shell paths and command names, on any path: # 930120: .gitignore # 932160: bin/docker-entrypoint # 932260: docker-build SecAction "id:900591,phase:1,pass,nolog,\ ctl:ruleRemoveTargetById=930120;ARGS:path,\ ctl:ruleRemoveTargetById=930120;ARGS:files,\ ctl:ruleRemoveTargetById=930120;ARGS:skip-to,\ ctl:ruleRemoveTargetById=930120;ARGS:sub_path,\ ctl:ruleRemoveTargetById=930120;ARGS:ref,\ ctl:ruleRemoveTargetById=930120;ARGS:sha,\ ctl:ruleRemoveTargetById=930120;ARGS:branch,\ ctl:ruleRemoveTargetById=930120;ARGS:workflow,\ ctl:ruleRemoveTargetById=930120;ARGS:artifactName,\ ctl:ruleRemoveTargetById=930120;ARGS:redirect_to,\ ctl:ruleRemoveTargetById=932160;ARGS:path,\ ctl:ruleRemoveTargetById=932160;ARGS:files,\ ctl:ruleRemoveTargetById=932160;ARGS:skip-to,\ ctl:ruleRemoveTargetById=932160;ARGS:sub_path,\ ctl:ruleRemoveTargetById=932160;ARGS:ref,\ ctl:ruleRemoveTargetById=932160;ARGS:sha,\ ctl:ruleRemoveTargetById=932160;ARGS:branch,\ ctl:ruleRemoveTargetById=932160;ARGS:workflow,\ ctl:ruleRemoveTargetById=932160;ARGS:artifactName,\ ctl:ruleRemoveTargetById=932160;ARGS:redirect_to,\ ctl:ruleRemoveTargetById=932260;ARGS:path,\ ctl:ruleRemoveTargetById=932260;ARGS:files,\ ctl:ruleRemoveTargetById=932260;ARGS:skip-to,\ ctl:ruleRemoveTargetById=932260;ARGS:sub_path,\ ctl:ruleRemoveTargetById=932260;ARGS:ref,\ ctl:ruleRemoveTargetById=932260;ARGS:sha,\ ctl:ruleRemoveTargetById=932260;ARGS:branch,\ ctl:ruleRemoveTargetById=932260;ARGS:workflow,\ ctl:ruleRemoveTargetById=932260;ARGS:artifactName,\ ctl:ruleRemoveTargetById=932260;ARGS:redirect_to" # gitea's searches of code, of issues and pull requests, and of commits send the # text searched for in q, which skips these rules there: # 930110: ../ # 930120: .gitignore # 931100: http://127.0.0.1:8080 # 932120: Invoke-WebRequest # 932130: $(pwd) # 932140: if (a == b) { # 932160: /bin/sh # 932235: `make check` # 932250: ls -la # 932260: python3 # 932380: `whoami` # 933100: # 941110: