You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gate-7 Pattern 8 is blind to the raw-body family: a parameterless #[PublicPage] SOAP/webhook handler carries its selector in the body (2 live in procest, one queried persons by BSN) #413
Pattern 8 (#[PublicPage] handlers, added in #373/#398) decides scope by asking
whether a caller-supplied SCALAR reaches a selection call, and explicitly
discounts payloads — from check_no_admin_idor.py:
in scope — a caller-supplied SCALAR value reaches a selection call
(array $data is a payload, not a selector; a $token / $secret IS the
authorisation … and neither is a selector).
That is right for REST. It is structurally blind to the SOAP / webhook /
raw-body family, where the method takes no parameters at all and the
selector arrives inside the request body.
StufController::zaken() and ::personen() are #[PublicPage] + #[NoCSRFRequired] and reached StufZknMessageResponder::respond() with no
authentication of any kind — no token, no JWT, no signature. That responder
dispatches zakLk01 (case create/update), zakLv01 (case query), npsLv01
(person query by BSN) and edcLk01 (document create/update).
gate-7 reports zero findings on procest's 79 @PublicPage methods, these two
included. Every finding in the app carries rule=no-auth-guard-in-body; not one
carries rule=publicpage-unscoped-object-lookup.
The silence is correct for the other 77 — the ZGW controllers all call validateJwtAuth(), the share routes are $token-gated, and the zaakeigenschappen* / publish* one-liners are cleared by clear (e), the
resolved delegation hop. Clear (e) in particular did better than my own body
grep, which called nine guarded delegations unguarded. The gap is narrow and
specific: a parameterless method whose selector is in the body.
Fixed app-side in ConductionNL/dossiq#828 — the guard is the WSSE verification
the same controller's third public route already performed.
Why it matters more than one app
The shape is common in this fleet's integration surface: StUF, notification
webhooks, NrcController::notificatieCreate(), payment callbacks. All of them
are legitimately #[PublicPage] (the caller has no Nextcloud session) and all
of them carry their identifiers in the body.
⚠️And it is exactly the failure mode Pattern 8's own commentary warns about,
one level up. The comment says the repaired failure mode "is DISTRUST" and that
the fleet "came to trust its silences". A zero on 79 methods is a very loud
silence, and here it was right 77 times and wrong twice — which is precisely the
ratio that makes a silence persuasive.
Suggested predicate
Treat a #[PublicPage] method that reads the raw request body
(file_get_contents('php://input'), $this->request->getContent(), or a
collaborator call passing one of those) as in scope, with the same clears
already defined — a signature/WSSE/HMAC verification, a JWT validation, or a
resolved delegation hop reaching one, should clear it.
The two-directional control is available in-tree: StufController::inkomend()
verified WSSE beforeConductionNL/dossiq#828 and ::zaken() did not, in the
same file, same commit, same checker.
What I did not do
I did not write a fixture or run the arms. This is a report from a per-app
audit, not a verified gate change — the shape above is a suggestion and needs
the usual both-arms fixture before it lands.
Measured — the isolate is clean, and it changes this from a suggestion to a result
I said above that I had built no fixture. I have now, and the arms differ in exactly one thing: where the selector comes from. Same file, same commit,
same checker, same body — only the source of $id changes.
Tree: ConductionNL/procest @ 55280c070, checker scripts/lib/check_no_admin_idor.py at .github@main923f57d, invoked
directly on lib/Controller/*.php.
arm
publicpage-unscoped-object-lookup
total findings
shipped tree, untouched
0
31
A — plant carries string $id, body does find($id)
1
32
B — identical body, $id = (string)file_get_contents('php://input'), method takes no parameters
0
31
plant removed
0
31
The plant, in both arms, is a @PublicPage + @NoCSRFRequired method on SubsidieRegisterController with no @NoAdminRequired, resolving a
caller-controlled id through SettingsService::getObjectService()->find() with
no register, no schema and no scope.
Arm A is the positive control this issue needed: the rule is live in this
tree, so procest's zero across 79 @PublicPage methods is a live zero and not
a dead rule. Arm B is the defect: the identical unscoped lookup, reached
through the request body instead of a parameter, is silent.
Arm B is the shape of the two live routes — StufController::zaken() and ::personen() — which reached a responder dispatching zakLk01, zakLv01, npsLv01 (person query by BSN) and edcLk01 with no authentication at all.
Both handlers were stubs, so nothing leaked; the guard landed in ConductionNL/dossiq#828 before anyone writes the body the comments promise.
⚠️Arm B is the more useful arm and it is the one that looks like nothing
happened.0 → 0 and 31 → 31 is exactly what a plant that failed to compile,
or a checker that never read the file, would also print. Arm A is what rules
that out: same file, same run, same plant location, and it moved. Neither arm
means anything without the other.
Activity
rubenvdlinde commentedon Aug 12, 2026
Measured — the isolate is clean, and it changes this from a suggestion to a result
I said above that I had built no fixture. I have now, and the arms differ in
exactly one thing: where the selector comes from. Same file, same commit,
same checker, same body — only the source of
$idchanges.Tree:
ConductionNL/procest@55280c070, checkerscripts/lib/check_no_admin_idor.pyat.github@main923f57d, invokeddirectly on
lib/Controller/*.php.publicpage-unscoped-object-lookupstring $id, body doesfind($id)$id = (string)file_get_contents('php://input'), method takes no parametersThe plant, in both arms, is a
@PublicPage+@NoCSRFRequiredmethod onSubsidieRegisterControllerwith no@NoAdminRequired, resolving acaller-controlled id through
SettingsService::getObjectService()->find()withno register, no schema and no scope.
Arm A is the positive control this issue needed: the rule is live in this
tree, so procest's zero across 79
@PublicPagemethods is a live zero and nota dead rule. Arm B is the defect: the identical unscoped lookup, reached
through the request body instead of a parameter, is silent.
Arm B is the shape of the two live routes —
StufController::zaken()and::personen()— which reached a responder dispatchingzakLk01,zakLv01,npsLv01(person query by BSN) andedcLk01with no authentication at all.Both handlers were stubs, so nothing leaked; the guard landed in
ConductionNL/dossiq#828 before anyone writes the body the comments promise.
happened.
0 → 0and31 → 31is exactly what a plant that failed to compile,or a checker that never read the file, would also print. Arm A is what rules
that out: same file, same run, same plant location, and it moved. Neither arm
means anything without the other.
fix(gate-7): Pattern 8 is keyed on the signature, so a SOAP endpoint …