Files
haproxy-manager-base/.gitea
rootandClaude Opus 5.5 4a453df83e
Build and push coraza-spoa / Build-and-Push (push) Successful in 5m42s
coraza-spoa: Coraza engine v3.8.1 (security), SecArgumentsLimit 65536, RC-only publish branch
Security update of the WAF engine. coraza-spoa v0.7.1 pins
github.com/corazawaf/coraza/v3 v3.7.0, which is affected by the v3.8.x
advisories; several are bypasses of rules WHP enforces, reproduced in WHP's
WAF regression net on v3.7.0:

- GHSA-pc5q-qfxp-ggqv jsDecode octal: Log4Shell with ${ } as \44\173 ... \175
  escapes is not seen by the enforced 944150.
- GHSA-5gj4-9gm7-2fx2 JSON key collision: LFI in {"a.b":..} shadowed by a
  later {"a":{"b":..}} (or a case/duplicate collision) is not seen by 930120.
- GHSA-x26q-wvhg-fh4m ProcessURI: a raw 0x7f in the query drops ALL ARGS_GET.
- GHSA-w253-m66g-rx24: the LAST Content-Type picked the body processor.

Dockerfile: keep coraza-spoa v0.7.1 and CRS (coraza-coreruleset v4.25.0)
unchanged; upgrade only the engine in place (ARG CORAZA_VERSION=v3.8.1,
go get, verified against go.sum/sum.golang.org). The build fails unless
`go version -m` shows exactly that version in the binary.

config.yaml: Coraza 3.8 enforces SecArgumentsLimit (default 1000) on
urlencoded/JSON bodies and the query string and never inspects arguments
past it. With the default, "1000 filler args + LFI in arg 1001" bypassed
930120 on 3.8.1 (it is blocked on 3.7.0). Upstream's mitigation (deny rules
200004/200005) is in Coraza's own coraza.conf-recommended, not in the one
coraza-coreruleset v4.25.0 embeds (the @coraza.conf-recommended we load).
Set SecArgumentsLimit 65536 (= SecRequestBodyLimit / 2: no accepted body can
reach it, so every argument is inspected as on 3.7) and add 209620/209621:
deny in enforce / log in detect_only if arguments were ever dropped
(ARGUMENTS_LIMIT_REACHED, 3.8-only variable, so it lives in the image).

Workflow: a push to coraza-release/** publishes ONLY :<coraza-spoa/VERSION>-rc
and :<sha> (never :latest), for a staged per-host rollout through WHP's coraza
image pin. Not release/**: that prefix also triggers the edge image build.
main keeps publishing :latest (+ :<version> + :<sha>). New coraza-spoa/VERSION
2026.11.1.

Do not merge until the staged rollout is done: merging moves :latest, which
apply-coraza-waf-mode.sh pulls on every unpinned host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
2026-11-27 21:38:57 -08:00
..