Skip to content

Our own rules Since v0.2 ​

Besides the CRS, the signature module runs rules we add in the 2000xx ID range. They are always on while signatures are enabled and run at paranoia level 1. Each adds 5 points to the request score, so one match refuses the request in block mode with the default threshold.

Before you begin ​

  • Role: operator for the application, to add an exclusion.

Rules ​

Rule IDWhat it catches
200100Remote file inclusion: an absolute http, https, ftp or similar URL to a host other than the request's own, in a parameter named like an include (page, file, template, document, path, view and similar). Return and redirect parameters are not checked.
200110A short command after a separator: a value that starts with ;, `

The answer-confirmation rules 200200, 200210 and 200220 are described in Answer confirmation.

Except a rule ​

Both rules show in the rule list and in events like any rule. Except one on a path, or in one field, with an exclusion:

yaml
# applications[].policy.exceptions
- name: include-param-docs
  when: {paths: ["/docs/render"]}
  ignore_rules: [200100]
  in: ["arg:template"]

Troubleshooting ​

A request with a URL in a file parameter is blocked ​

  • Cause: rule 200100 treats a link to another host in an include-like parameter as remote file inclusion.
  • Fix: if the application needs it, add an exclusion for 200100 limited to that path and field.