After a Cloudflare zone turned on the managed WAF rulesets, admins saving rich-text product descriptions through the API are blocked; how do you find which rules fired and fix it narrowly?
answer
- start in Security Events
- 949110 means a score, not a signature
- Additional logs list contributing rules
- skip rules scoped to path and method
- place the exception before Execute
basics
~20 sFilter Security Events to the save endpoint and read the rule. Rule 949110 means the OWASP threat score crossed its threshold, so open Additional logs for the contributing rules. Then add an exception skipping only those rules for that host, path and method.
solid answer
~50 sOpen **Security Events**, filter to the managed rules service, the host and the save path, and read each event's rule. A Cloudflare Managed Ruleset rule ID points to one signature. `949110: Inbound Anomaly Score Exceeded` means the OWASP Core Ruleset's summed threat score crossed its threshold. Expand **Additional logs** to see which OWASP rules added the points; HTML markup usually trips the cross-site scripting rules. On Enterprise, **payload logging** shows the matched string for matches after it is turned on. Fix it with an **exception** in the `http_request_firewall_managed` phase. Its expression covers the host, the `/api/admin/products` path and the save methods, it skips just those rule IDs (or the OWASP ruleset), and it sits before the Execute rule. Do not lower the paranoia level or threshold for the zone. Then replay a save and confirm Skip events appear.
code
plaintext · 1 line(http.host eq "api.example.com" and starts_with(http.request.uri.path, "/api/admin/products") and http.request.method in {"POST" "PUT"})go deeper
Know where blocks are recorded, Security Events, and that 949110 marks an OWASP score block rather than a single signature.
Explain how to read Additional logs and how an exception's expression, skip target and position combine to cover only the save requests.
Demonstrate the full loop: identify the ruleset and rules, skip only those on one host, path and method, then replay and confirm Skip events.
Decide when skipping the whole OWASP ruleset on an endpoint is acceptable and who signs off on carve-outs that move trust to the application.
## The symptom An e-commerce team turns on the Cloudflare Managed Ruleset and the Cloudflare OWASP Core Ruleset for its zone. Within the hour, the catalogue admins report that saving a product fails, but only for products whose description field holds rich text: HTML tags, inline styles, an embedded link. Customer-facing checkout is fine. This is a classic **false positive**: legitimate content that looks like an attack payload to pattern-matching rules. The goal is to restore saves on that one endpoint while keeping every other path, and every other rule on this path, protected. ## Step 1: find the events **Security Events** (the **Events** tab under the zone's security **Analytics**) lists requests that a security feature acted on or flagged. Narrow it down: - Filter on the managed rules service, the API hostname, the path and the action Block. - Keep the time window short; Security Events can sample data on busy zones, and a narrower window reduces sampling. - Open individual events in **Sampled logs** and note the **rule** and the **ruleset** each one names. ## Step 2: read which ruleset fired | What the event shows | What it means | Where to look next | | --- | --- | --- | | A Cloudflare Managed Ruleset rule ID and description | One signature matched | That single rule | | `949110: Inbound Anomaly Score Exceeded` | The OWASP Core Ruleset's summed threat score reached the threshold | **Additional logs** in the event details | | Both, on different requests | Each ruleset needs its own fix | Treat them separately | For the OWASP case, **Additional logs** list each OWASP rule that matched and its score. For rich text these are usually the cross-site scripting rules reacting to tags and attributes, sometimes joined by generic rules such as `920460: Abnormal character escapes in request`. Two caveats: those OWASP details are not included when you export Sampled logs to JSON, and a long description gives the rules more text to match, so big saves can reach the threshold sooner. If you are on Enterprise, **payload logging** for the affected ruleset records the matched string with the text around it, encrypted with your public key. It captures only matches that happen after you turn it on, so enable it before you try to reproduce the problem. You can generate the key pair in the dashboard, which keeps only the public key, or supply your own. Then decrypt an entry in Security Events by pasting the private key, which is used only in your browser. Treat the private key like any other secret: Cloudflare cannot decrypt the payloads for you. ## Step 3: fix it with a scoped exception The narrow fix is a managed-rules **exception**, a rule with the `skip` action in the `http_request_firewall_managed` entry point ruleset: 1. **Expression**: match only the save requests, for example host `api.example.com`, a path starting with `/api/admin/products` and method `POST` or `PUT`. 2. **What to skip**: the specific OWASP rule IDs from Additional logs (or, if many rules contribute, the OWASP Core Ruleset for that endpoint). Keep the Cloudflare Managed Ruleset running there unless one of its rules also misfired. 3. **Position**: before the Execute rules that deploy the rulesets, because a skip rule only affects Execute rules listed after it. 4. **Logging**: leave **Log matching requests** on so skipped requests stay visible. Fixes that give up more than they should: - **Lowering the paranoia level or choosing a *Low* threshold for the zone** weakens the OWASP ruleset on checkout, login and every other path to cure one form field. - **Disabling the cross-site scripting rules with a tag or rule override** removes them everywhere, because an override has no request condition. - **Skipping all remaining rules** for the path drops the Cloudflare Managed Ruleset's signatures and its virtual patches there too. - **Turning the OWASP ruleset off entirely** may be a reasonable product decision, but it is not a false-positive fix. ## Step 4: verify and record Replay a rich-text save and confirm it succeeds. Security Events should now show a Skip event for that request and no Block. Check that a save to another path still goes through the full rulesets. Name the exception after the endpoint and the reason. Remember that the endpoint now relies on the application to sanitise stored HTML; how to do that belongs with the material on cross-site scripting as an application flaw, not with the WAF.
- Security Events shows the save as blocked by 949110, but Additional logs list a dozen OWASP rules with small scores. Do you skip all of them?If many small rules add up, skipping the OWASP Core Ruleset just for that host, path and method is cleaner than a long, brittle list of rule IDs. Keep the Cloudflare Managed Ruleset running on the path, because its signatures and virtual patches do not misfire on the markup. Revisit the choice if the endpoint's input changes.
- Could the team move the fix into the Execute rule's scope instead of adding an exception?Editing the deployment's scope, for example `not starts_with(http.request.uri.path, "/api/admin/products")`, also stops the ruleset on that path, but it hides the carve-out inside the deployment and removes the whole ruleset there. An exception is a separate, named rule, can skip only some rules, and logs what it skipped, so it is easier to review later.
- Rule 949110 is the signature that matched the HTML in the body.
- Lowering the zone's paranoia level is the targeted fix for one form.
- Payload logging can show the matched string for last week's blocks.
- Skipping all remaining rules on the path costs nothing extra.
- A rule override can disable a rule for just one endpoint.