chunkloris: vert.x
on this page
part of the chunkloris per-chunk amplification survey. this page is the per-server record for Vert.x under http/1.1 chunked transfer encoding.
at a glance
- server: Vert.x
4.5.10 - runtime: jdk-21
- ecosystem: jvm
- concurrency model: event-loop
- parser: Netty HttpObjectDecoder
- delivery granularity:
per-chunk - chunk-limit helper: none exposed by the framework
- verdict: per-chunk — the parser/dispatcher boundary delivers one event per wire chunk. cpu cost under paced mode b is measurable per chunk.
- scaling exponent (mode a): -0.23 (wall time vs N, log-log slope across common cells)
- scaling exponent (mode b): 0.99
measurements
all cells run on a 1-vcpu docker container. cpu cost is derived from the target container’s cgroup v2 cpu.stat usage_usec delta around each cell.
| mode | N | wall (s) | server cpu % | µs / chunk | basis | ok |
|---|---|---|---|---|---|---|
A-bridge-coalesced | 50,000 | 0.060 | 408.9 | 4.889 | server-cpu-cgroup | ✓ |
A-bridge-coalesced | 100,000 | 0.034 | 350.4 | 1.177 | server-cpu-cgroup | ✓ |
A-bridge-coalesced | 250,000 | 0.040 | 227.9 | 0.362 | server-cpu-cgroup | ✓ |
B-paced-100us | 50,000 | 5.171 | 9.1 | 9.390 | server-cpu-cgroup | ✓ |
B-paced-100us | 100,000 | 10.237 | 5.2 | 5.330 | server-cpu-cgroup | ✓ |
B-paced-100us | 250,000 | 25.565 | 4.2 | 4.309 | server-cpu-cgroup | ✓ |
what this means
the parser/dispatcher path on this server delivers one event per chunked-transfer-encoding chunk, so an attacker who sends a body as N one-byte chunks consumes roughly N × (mode-b µs/chunk) of server cpu on a single core. amplification scales linearly with N until the framework’s max_request_body_size (or equivalent) is hit.
what to do today
- if this server runs as an origin behind nginx with the default
proxy_request_buffering on, the per-chunk attack shape does not reach this server — nginx delivers one content-length-framed body to the upstream in a singlerecv(). - if deployed direct-exposed, behind haproxy with default streaming, or behind any reverse proxy with
proxy_request_buffering off, the per-chunk cost reaches this server. - there is no framework-level chunk-count limit in the default config; use a frontend buffer, transport-layer rate limiting, or a wrapping middleware that imposes a chunk-count cap before draining the body.
reproducer
the full reproducer for this server is in the paper repo. the docker container pins Vert.x 4.5.10 and constrains the test container to a single cpu (--cpus=1). the prober script implements mode a (bridge-coalesced) and mode b (paced 100 µs) per the methodology section.
see the draft pdf for the full per-framework discussion.