
One chain needs a shared session cache and a guess about uninitialised
memory. Another needs an HTTP/3 client and a proxy in the middle. The memory
bugs need a directive. All end at the process that holds the keys.
Chain one: the forged TLS session
The target is an nginx ingress requiring client certificates —
ssl_verify_client on or optional — with ssl_session_cache shared:... and
no static ssl_session_ticket_key.
- Observe the surface. A ClientHello and a resumed handshake attempt reveal
whether tickets are issued, with no credentials. - Construct a ticket for the uninitialised slot. The ticket carries a
16-byte key name: sixteen zero bytes if the slot is zeroed pool memory, a
guess if it is stale heap. This is the non-deterministic step F5 describes. - Let the server verify it. The decrypt callback scans all three slots by
name; a match in the uninitialised slot means the HMAC and AES operations
use material that was never a key. If it is zero, the attacker can compute
both. - Resume as an authenticated client. The resumed session carries the
previous handshake's state, including the client-certificate decision. No
certificate is presented; no verification failure is logged. - Send requests as the internal client. The application sees a request
from the trusted proxy and trusts its authentication.
The chain is silent: a resumed session is normal, and no authentication event
occurs to log.
Chain two: HTTP/3 request body injection
The target runs HTTP/3 with proxy_pass and request buffering on (the default).
- The attacker sends a request body containing an unknown extension frame.
- The frame is split across two QUIC reads; the parser stores the skip
remainder inst->length. - On the next buffer the body filter sees
st->length != 0, treats the
remainder as DATA and forwards it upstream. - The upstream receives bytes never framed as body: parsed as a new request
they are smuggling; appended, they are a body-size bypass. - In a proxy chain the front end polices the framed request and the back end
the smuggled one; the disagreement is the vulnerability.
client_max_body_size is enforced on the DATA path only, so the injected bytes
bypass it. F5's workaround is proxy_request_buffering off, which moves the
buffering but does not fix the parser.
Chain three: the memory bugs
Alias and rewrite. Request a path under a location using alias plus a
rewrite that changes the URI, with $request_filename read before the next
location is chosen. The path buffer is sized for a shorter string, and the copy
overflows. The worker crashes, or the overflow becomes code execution — F5's
worst case for the 9.2 score. That is code execution where the TLS keys and
upstream credentials live.
AIO and SSI. Request an SSI page with many include virtual commands. Each
adds a pending operation; at 256 the 8-bit blocked counter wraps, and the
request is freed while operations still reference its pool. The use-after-free
corrupts worker memory.
String evaluation. A regex map's numbered captures feed root or
log_format, and the string exceeds its allocation by up to the reserved area:
smaller than the alias bug, still a heap write in the worker.
What detection can and cannot see
- Worker respawns. A burst of exits signals all three memory bugs; a single
respawn looks like a crash. - TLS resumption telemetry. Log resumed versus full handshakes and alert
when a resumed session has no client certificate but the host requires one.
Most deployments do not log this. - HTTP/3 parsing anomalies. Requires a proxy that parses HTTP/3; most WAFs
do not. - Configuration inventory. Which virtual hosts use
aliasplusrewrite,
regex maps inroot,aiowith SSI, or HTTP/3 with proxy buffering? Only
those are exposed to four of the five. - What is silent. The forged session, indistinguishable from a legitimate
one.

Next: Part 10 — the way out: the fixed releases, the configuration guards,
the mTLS redesign, and the upstream diffs that prove the fix.

Comments (0)