docs(waf): body rejections show the 403 block page; 949110 caveat
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
d89f2bd1ac
commit
505f2ac9e6
2 files changed
+4
-4
No files matched your search
@@ -26,7 +26,7 @@ The mode is set in **Server Settings → Security** (the **change** link next to
|
||||
|---|---|
|
||||
| **Off** | No inspection. The WAF sidecar is stopped and requests pass untouched. |
|
||||
| **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. |
|
||||
| **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 (the visitor gets the same 403 block page with a reference ID as for any other block). SQL injection, cross-site scripting, scanner signatures and the anomaly score are **logged but not blocked**, to avoid breaking legitimate sites and editors. |
|
||||
|
||||
<Aside type="caution" title="Enforce does not mean full CRS blocking">
|
||||
The two modes are much closer than their names suggest. In both, a request that only trips SQL injection, cross-site scripting or scanner rules is logged and still served, however high its anomaly score. Use the audit log to see what *would* have matched.
|
||||
@@ -95,7 +95,7 @@ The WAF produces two different kinds of records, and they live in different plac
|
||||
|
||||
| You want to see | Where to look | Does the visitor see anything? |
|
||||
|---|---|---|
|
||||
| **Logged detections** — rules that matched but let the request through (in either mode, every rule outside the always-on set) | **Firing rules** tab. A rule whose **State** reads `(default → detect)` or `(default → score)` is log-only. | No. The page loads normally, so there is no block page and no reference ID. |
|
||||
| **Logged detections** — rules that matched but let the request through (in either mode, every rule outside the always-on set) | **Firing rules** tab. A rule whose **State** reads `(default → detect)` or `(default → score)` is log-only, with one exception: `949110`, which totals the score, blocks only a request that has also matched an always-on protection. | No. The page loads normally, so there is no block page and no reference ID. |
|
||||
| **Blocked requests** — requests the WAF actually stopped | **Firing rules** tab, rows whose **State** reads `(default → enforce)`. **view** lists the matching requests. | Yes. The visitor gets the branded 403 page with a reference ID. |
|
||||
|
||||
Both kinds are counted in **Hits**; the **State** column tells you which kind a rule produces.
|
||||
@@ -113,7 +113,7 @@ To review:
|
||||
|
||||
### Audit a block
|
||||
|
||||
Customer reports a request was wrongly blocked? The branded 403 page shows a **reference ID** (also sent as the `X-Request-Reference` response header). Ask the customer for it, then:
|
||||
Customer reports a request was wrongly blocked? The branded 403 page shows a **reference ID** (also sent as the `X-Request-Reference` response header). This page is shown for every block, including a rejected unparsable or oversized request body in **Enforce** mode (those show rule `991900020` or `991900031` in the audit log). Ask the customer for it, then:
|
||||
|
||||
1. Look the reference up in the edge (HAProxy) access log on the server to find the time, client IP, host and URL of that request.
|
||||
2. Find the matching transaction in the WAF audit log on the server; it names the matched rule ID, source IP, URL and offending parameter.
|
||||
|
||||
@@ -88,7 +88,7 @@ These are issues where the underlying signal recovered before a human looked at
|
||||
|
||||
### Tune brute-force detection
|
||||
|
||||
Brute-force rules live in **Coraza Rules** (rule families CRS-913 / 921 / 942 / 949) rather than AI Monitor. AI Monitor surfaces the *effects* (error spikes) once a brute-force pattern fires, but the matching itself is in the WAF. In both **Detect only** and **Enforce** modes these rules are logged but not blocked, so they show up as detections on the Coraza Rules page rather than as blocked requests. See [Coraza WAF rules](/whp/admin/coraza-waf/).
|
||||
Brute-force rules live in **Coraza Rules** (rule families CRS-913 / 921 / 942 / 949) rather than AI Monitor. AI Monitor surfaces the *effects* (error spikes) once a brute-force pattern fires, but the matching itself is in the WAF. In both **Detect only** and **Enforce** modes these rules are logged but not blocked on their own (rule `949110`, which totals the anomaly score, blocks only a request that also matched one of the always-on protections), so they show up as detections on the Coraza Rules page rather than as blocked requests. See [Coraza WAF rules](/whp/admin/coraza-waf/).
|
||||
|
||||
## Routing alerts
|
||||
|
||||
|
||||
Reference in new issue
Block a user