Skip to content

Grav coordinated wave

Source: GitHub Security Advisories published 2026-10-12 18:31Z (Grav core 2.0.22-2.1.6, Login plugin 1.2.0-3.9.8, Login OAuth <1.4.3, API plugin <1.0.36, Git Sync 1.0.2-3.4.12, Data Manager 1.4.0-1.4.5, Guestbook/Star Ratings/Reset Route singles).

Why this is worth an operator page. Grav is a flat-file CMS that ships everywhere PHP flat-file hosting lives, marketing sites, intranets, documentation portals, and its plugin ecosystem is where the boundaries actually break. This wave clusters three durable axes: provisioning flows that mint real, derivable passwords from public identifiers, MFA enforced at the login screen but not at the state-change handlers behind it, and debugger/profiler/git surfaces that leak config to roles that "shouldn't care." Several legs are directly replayable bug-bounty patterns.

Boundary map

GHSA / CVE Surface Boundary crossed
GHSA-9qx4-jr52-5c2w / CVE-2026-109321 (critical) Login OAuth plugin Federated account provisioned as normal user: username <provider>.<id>, password = unsalted MD5 of the provider identifier, password login left enabled → unauthenticated login = full admin takeover
GHSA-mp6q-9gmf-c5j2 / CVE-2026-109313 Login plugin remember-me Password-only attacker obtains persistent remember-me cookie after step 1, restores it as a fully authorized post-2FA session
GHSA-m37v-wpv7-2x4p / CVE-2026-109312 Login plugin processUserProfile() Pending-2FA session can invoke update_user (update_user reachable from any published page form without an access rule) and set twofa_enabled off before completing the factor
GHSA-7cwq-9cr7-g8jf / CVE-2026-109314 Login plugin reset route Publisher can author a page that shadows the password-reset route; when the victim opens the emailed reset link, Login::getPage() renders the page with the username + bearer reset token in scope
GHSA-pm6p-v8qr-5mmg / CVE-2026-109325 Clockwork profiler Profiler trusts loopback REMOTE_ADDR; anyone behind a same-host HTTP proxy reads profiler records: system/plugin config, secrets, request metadata, queries
GHSA-r6g3-r4xj-3p43 / CVE-2026-109315 Clockwork token vs editor sandbox Redaction list omits system.debugger.token, page editor renders the token through editor-authored Twig, then reads profiler records with X-Clockwork-Auth (chains with the row above when a proxy is in front)
GHSA-7mh9-rw55-r7vq / CVE-2026-109326 Bundled nginx/lighttpd/IIS/Caddy configs .git blocked only at document root; nested repos such as /user/.git serve config, refs, objects, reconstruct unpublished history and committed secrets
GHSA-cp28-795p-j89g / CVE-2026-109318 Git Sync gravuser/gravfull author mode Editor-controlled username/full-name/email reach git commit --author → shell substitution → PHP exec() as web-server user
GHSA-wcc2-xcpr-vc5h / CVE-2026-109320 API plugin SessionAuthenticator Disabled accounts keep API access via already-authorized browser or remember-me session until expiry, deactivation ≠ revocation
GHSA-7ghm-8q85-6h4j / CVE-2026-109317 API plugin access maps api.users.write holder edits account access maps/invitations with positive scalar admin/api parent grants → inheriting resolver satisfies requireSuper
GHSA-43jm-rfw2-wchv / CVE-2026-109316 Data Manager plugin Missing authorization on record CRUD (low-priv read/write of CMS data)
GHSA-6xrw-24fx-4qcf, GHSA-44rc-569f-hxfg, GHSA-pwp7-4hgc-rjhr / CVE-2026-109319/-109322/-109323 Guestbook / Star Ratings Missing authorization + CSRF + stored XSS in comment plugins (known WP-style comment classes, recorded for inventory)

Derived federated credentials (the critical leg)

The Login OAuth plugin provisions every OAuth login as an ordinary Grav user account with:

  1. username = <provider>.<id> (deterministic from the provider identifier, Google subject, GitHub login, etc.), and
  2. password = unsalted MD5 of the provider identifier, and
  3. password authentication left enabled on that account.

Anyone who learns or guesses a privileged user's provider identifier (public GitHub profile, email-derived subject, a leaked ID in page metadata) can compute both halves of the credential and log in with a password, including admin accounts. The federation path is a credential factory, not a replacement.

Operator pattern that generalizes beyond Grav, audit every federated/SSO provisioning flow for whether it also creates a password-backed account:

  • Does provisioning write a user record with a password hash? If yes, what is the preimage? Provider IDs are usually public or low-entropy.
  • Is local password login disabled on federated accounts? Test: attempt POST login as <provider>.<id> with md5(<provider-id>) on a disposable account you provisioned in a lab IdP you control.
  • Sweep alternate usernames: the deterministic scheme itself (github.someuser, google.10812345) is a username-enumeration oracle when login errors differ.

2FA enforced at the door, not in the house

Two legs share one rule: the second factor gates the login transition, but not the session state behind it.

  • Remember-me cookie restoration after the password step yields a session treated as fully 2FA-complete (GHSA-mp6q-9gmf-c5j2). A stolen or brute-forced password plus one cookie = bypass.
  • A pending 2FA session (password verified, factor outstanding) can already reach update_user from any page form and clear twofa_enabled (GHSA-m37v-wpv7-2x4p).

Replayable check on any CMS/IdP with MFA: enumerate what the pre-factor session can do. The decision battery: can it read profile? update profile? change password/email? invoke plugin actions? A pending session should be a zero-capability placeholder; any writable verb reachable pre-factor is the bypass. Pair it with the cookie/lifecycle battery: capture every credential issued at each login step and replay them independently (the same rule that caught Joomla's pre-MFA rememberme cookie on 2026-10-06).

Route-shadowing leaks reset tokens

Login's getPage() fallback renders whatever page an editor authored at the reset route when the reset flow serves that URL, so a publisher (low-trust content role) plants a page there, waits for a victim to open the emailed link, and harvests username + bearer reset token from the render context (GHSA-7cwq-9cr7-g8jf).

Durable axis: route namespaces are shared between the app's auth flow and user-authored content. For any app with page-author roles, enumerate auth-family routes (login, reset, oauth callback, device approval, magic-link) and test whether a user-authored page/template can shadow or render alongside them. The sink is render-time variable scope leaking flow parameters into page-visible markup.

Debugger and profiler as config-reading surfaces

Clockwork-style profilers are a recurring second-order boundary:

  • Trusting REMOTE_ADDR loopback for the profiler UI means any same-host proxy (SSRF included) is "local", combine with any request-forwarding bug to read recorded config/secrets (GHSA-pm6p-v8qr-5mmg). Loopback-decision-table rule applies: probe with loopback-shaped origins before assuming the profiler is unreachable.
  • The sandbox redaction list omitted the debugger's own token key, so a Twig-capable editor role renders the key that unlocks the profiler API (GHSA-r6g3-r4xj-3p43). Redaction lists are deny-lists of names; enumerate the config tree for keys the list never mentions (config.get() style probes in any sandboxed template engine, then diff what renders).

Nested-git disclosure via root-only deny rules

Bundled web-server configs deny .git at the document root only; flat-file CMS layouts keep nested repositories (e.g. user/.git under Grav) deeper in the tree, fully servable (GHSA-7mh9-rw55-r7vq). Standing recon step for flat-file/static hosts: probe /user/.git/config, /user/.git/HEAD, /backup/.git/refs and siblings, not just /.git/. Committed secrets and unpublished content reconstruct from refs/objects.

Editor-to-shell via VCS metadata (Git Sync)

When Git Sync runs in gravuser/gravfull author mode, the commit --author string carries editor-controlled username/name/email into a shell-backed exec(); $(...)/backtick substitutions in the profile execute as the web-server user (GHSA-cp28-795p-j89g). Generalized rule already on this wiki (metadata-to-command class): identity strings that reach a command line are command injection points, test with inert $(touch marker) markers in every author/committer/label field of any UI-driven VCS automation.

Revocation and privilege-resolution drift

  • Disabled ≠ revoked: the API plugin's SessionAuthenticator never re-checks account state, so disabled users keep calling API endpoints on existing sessions/remember-me cookies (GHSA-wcc2-xcpr-vc5h). Add "disable account → replay every transport" (web, API, WS, remember-me, CLI token) to the revocation battery, the same artifact×path matrix that caught Vikunja's webhook leak.
  • Scalar parent grants satisfy requireSuper: a delegated user-manager (api.users.write) writes positive scalar admin/api grants into access maps the inheriting resolver treats as super-equivalent (GHSA-7ghm-8q85-6h4j). When a permission model supports inheritance, test the shape of grant values (scalar vs map, true vs list), not just the role labels.

Validation boundaries

  • Lab Grav install with disposable users at each tier (admin, editor, publisher, user-manager, disabled user) plus a lab OAuth provider you control.
  • OAuth derived-credential proof: provision your own lab account, compute md5(provider_id), log in over the password form; stop at session confirmation.
  • Pending-2FA capability sweep: enumerate reachable actions on a password-verified, factor-outstanding session against marker-only endpoints; never modify a real account.
  • Nested-git probe is unauthenticated read of .git/config/HEAD only, no object-stream dumping of real content beyond what confirms exposure.
  • Git Sync injection: inert marker substitution in a lab profile field; never run commands on production hosts.
  • Keep tokens, cookies, reset links, and profiler config values out of the wiki and out of reports.

October 12 18:3xZ wave, remainder tracked without publication

  • MarkLogic Server ~16-leg review dump (CVE-2026-85957-85976): XXE-on-by-default across server paths + SAML-parser XXE on 11.x + cleartext transport + Azure-deployment leg. Detail-free vendor mirrors; XXE/transport classes already covered on the May 4 XML/XXE lineage, revisit on vendor-bulletin detail.
  • SurrealDB third wave (10 legs) folded on the June 19 SurrealDB page, same product, third sweep.
  • ZITADEL four-leg wave folded on the Sept 16 IdP authority page.
  • LibreNMS pair (LDAP filter-injection wildcard admin + array-param SQLi to password-hash read) folded on the Sept 7 page.
  • MONAI pair: SENet pretrained weights fetched over plaintext HTTP and load_state_dict_from_url unpickled without weights_only=True (on-path RCE), plus nnUNetV2Runner unpickling a path read from inference_information.json without containment. Model-supply-chain/pickle classes already on the AI pages; watch for KEV.
  • ExLlamaV3 model-supplied CUDA kernel index → out-of-bounds function-pointer dispatch at model load: crash proven, controlled dispatch speculative, tracked under the June 30 model-parser page lineage.
  • OpenShift console Helm-chart URL SSRF from any authenticated console user (blind port-scan + error disclosure): SSRF class covered; tracked.
  • Quarkus REST Data Panache unvalidated sort on generated endpoints (info-disclosure/DoS): ordering-side-channel class covered on the ORM/query-grammar pages.
  • Adminer BOM-prefix ATTACH/VACUUM INTO bypass folded on the Aug 25 Adminer page.
  • better-auth device-approval UI omission folded on the June 4 Better Auth page.
  • Open WebUI 0.11.4 wave (terminal WS revocation gap, disabled-backend index, tools/export source disclosure) folded on the May 16 Open WebUI authz page.
  • Network-AI ClaudeHookBridge deny-pattern first-field bypass + dashboard CSWSH folded on the June 19 developer-control page.
  • SiYuan plugin-handler absolute-path read + Sprig function-map OOM folded on the July 10 SiYuan page.
  • Edimax BR-6208AC detail-free quartet, Semtech LR11xx SPI OOB, WP singles (WP-Members, Forminator, Patreon CSRF pair, Booktics, Salevo, VillaTheme), Zebra gossip/DoS pack, Contrast coordinator legs, Grav remainder, DOMPurify 3.4.16 pair (mutable-config class covered), vLLM PyAV audio fallback (media-pipeline class), Craft DOM XSS, known classes or detail-free.

October 24 follow-up: page editor reaches arbitrary public static methods, data-*@ directive allowlist defeated by key relocation (CVE-2026-116019 / GHSA-8xfc-f7mm-8g34, high 8.8, Grav 2.0.15-<2.2.13)

Second Grav wave after this page's October 12 dump. A page-edit-permission user embeds crafted fields in Flex form overrides inside page frontmatter: the blueprints allowlist validates the data-*@ directive name, but unset-name@ or integer array keys relocate the field's effective key after the check, the crafted key survives to the rendering layer, which invokes any public static method (Folder::delete, Utils::download named in the advisory) → delete directories, overwrite files, read files outside the page tree.

Operator rules:

  • Prefix/directive allowlists are only as strong as their position in the normalization order. If name-mutating directives (unset-name@, integer keys, merge operators) are processed after the allowlist check, the check inspects a key that never reaches the sink. Probe battery for any "safe-prefixed key" gate: submit the same payload (a) with a name-removal directive, (b) wrapped in integer keys, (c) paired with sibling merge/override directives, and diff the key that got checked vs the key that reaches the sink. Validation-target-vs-execution-target on the key axis, the September 19 shortcode page's validated-GIF-path-vs-attacker-.php-url pair, generalized from values to keys.
  • In flat-file CMSes, frontmatter is configuration-as-code. Editor capability → frontmatter → engine directives → method invocation is a full privilege ladder. Enumerate the engine's directive grammar (@-suffixed keys in blueprints/docs/templates) and fuzz editor-reachable override surfaces with the grammar, not just value payloads; every key-rewriting directive is an allowlist-bypass candidate.
  • Band note: 2.0.15-<2.2.13 overlaps but is not identical to this page's Oct 12 bands (core 2.0.22-2.1.6), "older Grav" fingerprints two distinct bug families; retest both per install.

Validation boundary: lab Grav with a disposable editor account, marker-only files under a disposable root, synthetic canary files outside the page tree for read proof; no destructive Folder::delete shapes outside the lab.

November 18 follow-up: third Grav wave, an unescaped glob in the account-count gate hands anonymous visitors super admin, and the Flex field-name-to-method dispatch deletes every account (17 GHSAs, < 1.7.53.7 / < 2.2.18)

The third coordinated Grav release inside five weeks (2026-11-18 12:31Z, CVE-2026-130733 through CVE-2026-130749). The same-product re-sweep rule keeps paying: this wave adds boundaries the Oct 12 and Oct 24 dumps did not touch, and several legs are generic flat-file-CMS probes rather than Grav trivia.

Crown legs:

  • Anonymous super-admin creation when the install path contains glob metacharacters (GHSA-9wxr-j34r-qpfw / CVE-2026-130747, critical): UserCollection::count() passes the account-directory path through glob() unescaped, so installs whose path contains [, ], or a backslash (Windows drive prefixes qualify) get a count of zero, the "no users yet, reopen setup" branch fires, and POST /api/v1/auth/setup or the classic admin registration form creates or overwrites administrator accounts. Rules: (1) metacharacter-in-path is an authorization input when any count/exists/existence gate is filesystem-regex-backed, fingerprint installs by path shape (bracketed web routes, Windows mounts, CI checkouts) and re-run the first-run bootstrap battery there; (2) "bootstrap-complete" gates that consult a fallible counter must be re-verified against a second source (database row, lock file) before granting admin mint.
  • Flex sort/filter parameter resolves field names as public methods: ?sort=delete wipes every account (GHSA-q88m-rfpx-2w96 / CVE-2026-130742, high): Flex resolves sort and filter field names by calling them as methods first, so GET /api/v1/flex-objects/user-accounts?sort=delete invokes FlexObject::delete() with no permission check; list-access users delete all accounts, then the reopened API first-run setup mints a super admin. Rules: (1) any sort/filter/group-by/order parameter that is interpolated into a dispatch (method name, column expression, callable) must be fuzzed against the receiver's method inventory, not just the declared field list; (2) wipe-then-rebootstrap is a full-takeover lifecycle chain even when the delete primitive looks like the destructive leg: probe whether deletion reopens a provisioning gate.
  • Host: pages header selects a config context, media .meta.yaml sidecars write YAML to page folders (GHSA-chpm-qp64-6f93 / CVE-2026-130744, high): page editors escape the Twig sandbox by registering an unsandboxed Twig namespace, reached by writing configuration YAML through page folders and media .meta.yaml sidecars, then shell commands run as the web-server user; the header picks the context. Rules: (1) header values that name a subsystem/context (Host-like virtualization headers, X-Route, tenant slugs) are authorization inputs, run the header-name battery on any multi-context renderer; (2) in flat-file apps, every "sidecar metadata" format (.meta.yaml, .ini, per-file JSON) is a configuration write channel reachable through the media/upload path, enumerate sidecar extensions and test whether their parsed keys reach config loaders.
  • Session cookie on cacheable media responses: shared cache stores the victim's session for the attacker to collect (GHSA-hgmr-q2rq-fmf4 / CVE-2026-130746, high): page media (and rendered pages under lazy sessions) serve with the visitor's session cookie and a shared-cacheable Cache-Control; lure a signed-in user to a media URL with a unique query string, then request the same URL and receive the cached session cookie. Rule: on any authenticated CMS behind a shared cache (mod_cache, Varnish, CDN), check Cache-Control/Set-Cookie co-occurrence on media/download/preview routes; a cacheable response that carries a session is a session-theft queue.
  • Admin and site scopes share the page cache key (GHSA-pr99-rvqq-q7gq / CVE-2026-130745, high): routine editor activity through the API plugin rebuilds the page index without frontmatter.yaml access rules, exposing members-only page content until the next proper rebuild. Rule: cache-key scope inventory, for every cache class ask which authorization scopes are encoded in the key, and drive rebuild-triggering activity from the lower privilege tier to see whether the rebuilt artifact lost the higher tier's filters.
  • Password-reset link host poisoned by CloudFront-Forwarded-Proto (GHSA-3qwj-cvhh-9v6r / CVE-2026-130748, high): the reset email builds its link URL honoring the forged scheme header, delivering the super-admin token to the attacker host. Rule: extend the reset/verify/invite link battery beyond X-Forwarded-Host to the CDN pseudo-header family (CloudFront-Forwarded-Proto, Fastly-SSL, X-Forwarded-Proto/Port, Forwarded); the vendor-faithful-but-forgotten header is the usual miss.
  • Per-Host-value config compile = unauthenticated disk fill (GHSA-jvw6-jg2r-9rjg / CVE-2026-130749, high): distinct Host values each create per-host compiled configuration, blueprint, language, and page-index caches. Rule: any client-controlled string that becomes a cache-key directory name is a disk-fill amplification primitive; count created files per 100 distinct header values before dismissing header fuzzing as noise.

Privilege-ladder legs (publisher/user-manager tier to takeover):

  • Unfiltered account serialization leaks hashes, 2FA secrets, reset tokens (GHSA-m4w8-43ph-2ccr / CVE-2026-130740): publishers and read-only user managers embed a Flex form for the user-accounts directory (or query the Flex API with admin.users.read) and receive super-admin password hashes, 2FA secrets, and reset tokens. Rule: for every read tier, diff the serialized field set against the model; secrets surviving on a low-tier read = one crack or one token replay from admin.
  • Twig sandbox bypass through "allowlisted" callables that are setters (GHSA-rqp9-4m9f-fv8f / CVE-2026-130741): publishers abuse allowlisted array_key_value() and page accessor setters such as filePath() to repoint page objects or overwrite the assets collection, rendering private keys and the API signing secret, then forge a super-admin API token. Rule: sandbox allowlists must classify callables by side effect, name-only allowlisting treats a setter as a getter; probe every allowlisted function for object-mutation behavior.
  • Group disable then password reset (GHSA-fmpg-2c3j-wgjr / CVE-2026-130738): admin.users.update sets the super-granting group's enabled to false via the Flex user-groups form, then the victim's password is reset through the user-accounts form. Rule: authorization derived from group membership must recompute on group state changes; run the disable-group, re-enable, recompute lifecycle on every group-based RBAC.
  • YAML merge key << slips super-grant maps past filtering (GHSA-gchh-pq2q-8xrj / CVE-2026-130737): admin.users.create or api.users.write submits << nested keys via PATCH /api/v1/users/<self> and the super-grant filter never sees the merged entries. Rule: every "deny-list the dangerous keys" pass over parsed YAML/JSON must account for merge keys, anchors/aliases, and duplicate-key folds before the filter runs, fuzz with <<, &anchor/*alias, and integer-key shapes (Oct 24 unset-name@ family generalized).
  • Client-controlled storage keys across account CRUD (GHSA-6c5r-fphq-43v5 / CVE-2026-130739, high): create-form username, cross-type form flash replay, and __META storage-key rename let user managers and Flex editors overwrite, create, or delete any account. Rule: if the storage key (filename/path) comes from the request body, cross-entity-type write testing (__META, flash replay between form types) is mandatory; the identity field and the storage key must be derived from the same authenticated value.
  • Blueprint trust: attacker-named YAML as the template config (GHSA-9hrq-9p5w-qh7j / CVE-2026-130743): publishers plant or select blueprint files (the import@ directive, uploaded YAML media named as the page template, form.flash_folder) to leak password hashes and keys or invoke static PHP methods. Rule: framework config file selection by content-derived names (template name, page type) is a file-inclusion boundary; name collision tests between user-writable media trees and config-search paths are cheap and high-yield.
  • Media action allowlist accepts scoped static calls (GHSA-2hm5-q8qp-pcc2 / CVE-2026-130736): Markdown image URLs carry actions like self::addMetaFile that chain into static calls such as Process::fromShellCommandline. Rule: allowlist membership checks on callables must reject Class::, self::, static::, and new class spellings, name-only membership is trivially escaped by scoping syntax; the Oct 24 arbitrary-public-static-method leg plus this one = enumerate the full callable grammar.
  • Folder key delimiter collisions outrank per-page denies (GHSA-jv3q-4597-xjg7 / CVE-2026-130733, critical): FolderStorage key delimiters and PageStorage folder reconstruction let publishers rename a folder or save from an unusual prefix width to replace protected pages and their permissions. Rule: when storage keys are derived by string-splitting paths, collide the delimiter (/, //, encoded variants) between the authorization view and the storage view; authorization path-parse vs storage path-parse differential, same family as the canonicalization page.
  • Fail-open upload sanitizer and alternate-extension rendering (GHSA-2rqg-gmwx-8f9j / CVE-2026-130734, medium): .svg.defaults inner extensions, payloads that crash the fail-open sanitizer, and unblocked .xml/.xhtm run script when admins open the raw file URL. Rule: every sanitizer gets a crash-the-sanitizer test (crash must mean reject, not pass); inner-extension chains (name.ext.suffix) and rarely-blocked renderer extensions belong in the battery.

Validation boundary: disposable Grav install (also one whose path contains brackets and one on a Windows-style path with backslashes, both shapes feed the setup-gate leg), synthetic editor/publisher/user-manager accounts, marker-only YAML writes under the lab tree, owned callbacks for reset-link poisoning; never exercise account deletion or folder-rename legs outside the lab.

November 26 follow-up: fourth Grav wave, plugin-tier legs, a forgot-password form that ignores its own Trusted Host setting and a form destination pointed at the Twig template folder (2 GHSAs)

The 03:30Z batch adds two plugin legs (Admin < 1.10.65, Form < 9.2.4) that sit beside the Nov 18 core wave and extend the same-product re-sweep: the plugins ship on their own version cadence, so a core patched to 2.2.18 can still carry both bugs.

  • Password-reset poisoning when Require Trusted Host is ON but never consulted (GHSA-5gpq-9xpr-crwm / CVE-2026-137306, high): LoginController::taskForgot() builds the reset link from the request Host header while ignoring the product's own Require Trusted Host setting, so an unauthenticated attacker who knows an admin username submits the forgot form with a forged Host and harvests the token when the admin clicks. Rules: (1) security-setting-vs-enforcement battery: for every hardening toggle a product documents, find the code path that reads it, then exercise the feature the toggle claims to protect; a setting stored but never consulted is a false-sense-of-security finding on its own; (2) the Nov 18 CloudFront-Forwarded-Proto leg generalized: run the entire link-origin forgery battery (Host, X-Forwarded-Host/Proto/Port, Forwarded, CDN pseudo-headers) against every email-minting endpoint (forgot-password, verify-email, invite, magic-link, MFA-recovery), per endpoint, not per product.
  • Form file-field destination unchecked: uploads land in Twig template folders and render unsandboxed (GHSA-fjr8-4mf4-7wvw / CVE-2026-137305, high): Form::uploadFiles() honors an attacker-set destination, page authors upload .txt/.svg containing Twig, which the theme engine then renders as trusted templates outside the sandbox, code execution as the web-server user. Rules: (1) destination-parameter sweep: every file field whose target directory is request-influenced (explicit path param, folder name field, or an inferrable form definition key) gets a write-target check against sensitive render/config directories (template dirs, config dirs, cache/, upload dirs served with exec handlers); this is the validation-target-vs-write-target mismatch on the destination axis, same family as the Sept 19 validated-GIF-plus-attacker-url pair and the TastyIgniter client-supplied upload path; (2) in template-engine CMSes, rendered-template provenance is the sandbox boundary: anything the engine loads from a writable path is trusted code, so enumerate every writable path the engine globs (theme folders, user/pages/**, media sidecars, plugin overrides) and test write reach from lower-priv roles.
  • Validation boundary: disposable Grav with the Admin and Form plugins at pre-fix versions, a page-author-tier test account, marker-only template files under a disposable theme copy, owned callback for reset-link capture; never point the destination sweep at a live install's real template tree.