Skip to content
All news
News

Cloudflare's WAF now reads the server's answer too. Your WAF benchmark only measured the question

Alexander Zemskov 4 min read
Scheme: a request passes the WAF to the server, the response with leaked data comes back and is stopped by the WAF before it reaches the client

On October 21, 2026 Cloudflare switched on full transaction detection for its WAF. Until now the WAF judged a request on its own: does it look like an attack. Now it also looks at what the origin server answered. A path traversal request that comes back with HTTP 200 and something that looks like a database config file is a different event from the same request that got a 404. The first one is a successful exploit, and the WAF can stop that response before it leaves. For anyone who sizes or accepts a WAF or NGFW, this matters for one reason: the device now has to hold and inspect traffic in both directions, and most performance numbers you have were measured with only one.

What happened

  • Request plus response. Detections evaluate each request together with the origin response and look for signs that an exploit worked. Cloudflare's own example: `../../config/database.ini` in the URL, HTTP 200 and config-like content in the answer.
  • Response rules. A rule can replace the origin's response with a WAF block page and HTTP 403. It cannot undo what the origin already did: if the exploit wrote a file, the file stays.
  • New fields for paying customers: `cf.waf.signature.response.confidence`, `.categories` and `.ref` (up to 10 signature IDs).
  • Limits today. Every customer gets up to 3 custom response rules with Log or Block actions. Rules on the response body are not available yet.
  • Managed ruleset "Cloudflare Managed Response Firewall Default" runs on every request on all plans, Free included. The first signatures target the php2shell vulnerability.
  • No performance numbers. The announcement says nothing about added latency or buffering.

What this means for the business

The idea is sound and old: a blocked request that did no harm is noise, a response with your customer data inside is an incident. On-premise WAFs and NGFWs have offered outbound data inspection for years. The catch is the price tag nobody prints. A datasheet gives you HTTP throughput with a default profile, and that profile rarely says whether response inspection was on. If your security team plans to turn it on, the box you sized for 10 Gbps of requests may become a smaller box. Switching a feature off after go-live to save performance is the classic outcome. Protection on paper, half of it disabled in production. Ask the vendor for numbers with response inspection enabled, or measure them yourself before the purchase order.

What this means for engineers

  • Response size drives the load. Requests are small, responses are not. RFC 9411 already measures HTTP throughput and transaction latency at several object sizes. Run that matrix twice: response inspection off, then on.
  • Measure latency per transaction. To block a response, the device has to see enough of it first. Check time to first byte and time to last byte on large objects, not only the average.
  • HTTPS: decryption both ways. Response inspection on encrypted traffic means the device decrypts the answer as well as the question. Test with the real share of TLS traffic in your network.
  • Positive and negative cases. Your test needs exploit requests that succeed (the server returns the data) and ones that fail. A WAF that blocks the failed ones and lets the leak through has a hole only a two-sided test will find.
  • False positives on responses break applications quietly: a legitimate export that looks like a config file gets a 403. Replay your real application mix and count broken transactions.
  • Mitigation check. The response is blocked, the exploit on the server still ran. Patching stays mandatory, and Cloudflare says the same.

What to do

Before you enable response inspection on a production WAF or NGFW, get two numbers: throughput and transaction latency with it on, on your traffic profile. TEST4NET will build that profile, run the comparison and show you where the device stops coping. Test. Compare. Decide.

Sources

Written by

Alexander Zemskov

Alexander Zemskov leads network and security testing at TEST4NET, an independent, vendor-neutral testing lab in Yerevan, Armenia. With 19+ years in performance and load testing on IXIA, Spirent, Keysight, Xena and Xinertel platforms, he runs NGFW, WAF, IPS, DLP and SASE evaluations for telecom operators, banks and system integrators.

Industry News

Keep reading