diff --git a/src/content/docs/whp/admin/coraza-waf.mdx b/src/content/docs/whp/admin/coraza-waf.mdx index 206ccfe..97a4686 100644 --- a/src/content/docs/whp/admin/coraza-waf.mdx +++ b/src/content/docs/whp/admin/coraza-waf.mdx @@ -18,22 +18,22 @@ import Support from '~/content/partials/support-link.mdx'; ## Global WAF mode -The mode is set in **Server Settings → Security** (the **change** link next to the pill on the Coraza Rules page takes you there). The same names are used in both places: **Off**, **Detect only** and **Enforce (high-confidence)**. +The mode is set in **Server Settings → Security** (the **change** link next to the pill on the Coraza Rules page takes you there). The same names are used in both places: **Off**, **Detect only** and **Enforce**. ### What each mode does | Mode | What happens to a matching request | |---|---| | **Off** | No inspection. The WAF sidecar is stopped and requests pass untouched. | -| **Detect only** | Every rule is evaluated and the match is logged to the WAF audit log. No WHP rule changes the response, except the small always-on set of high-confidence protections listed under **Enforce** below. | -| **Enforce (high-confidence)** | Blocks high-confidence attacks only: path traversal / file inclusion, remote command execution, PHP and Java code injection, restricted file types, and known CVE exploits. SQL injection, cross-site scripting, scanner signatures and the anomaly score are **logged but not blocked**, to avoid breaking legitimate sites and editors. | +| **Detect only** | Rules are evaluated and logged to the WAF audit log. A small set of always-on, high-confidence protections still **blocks in this mode too**: probes for sensitive files (`/etc/passwd`, `.env`, `.git`), remote command execution, PHP and Java code injection (including Log4Shell), restricted file types such as `.bak` and `.sql`, and known CVE exploits. Everything else is logged only. | +| **Enforce** | The same always-on protections, plus two body checks: a complete multipart or JSON request body that fails to parse is rejected, and so is a JSON body with more than 1000 arguments (both return HTTP 400). SQL injection, cross-site scripting, scanner signatures and the anomaly score are **logged but not blocked**, to avoid breaking legitimate sites and editors. | -