title: CI/CD and app-server control-plane trust boundaries: GitLab variable scope, Octopus feed traversal, Ash filter oracle, ZenHive payment dedup¶
CI/CD and app-server control-plane trust boundaries¶
A September 16 late GitHub wave (published 2026-09-16T09:30Z) adds four durable devops/app-server operator checks:
- GitLab EE: a developer-role user could run a policy test pipeline on group projects and read protected CI/CD variables restricted to higher-privileged roles, due to insufficient scope validation, the classic "variable scope is checked on the wrong pipeline type" drift (CVSS 8.5).
- Octopus Server: a user permitted to modify non-built-in external feeds could path-traverse to overwrite arbitrary server files, RCE in some configurations, a low-privilege CI/CD write primitive.
- Ash (Elixir): field-policy nil-ing applied to attributes but not to calculations/aggregates, so a forbidden value still acts as a boolean filter oracle, a framework-level authorization-by-implication miss.
- ZenHive mpp (Elixir payment plug): duplicate-submission dedup keyed on caller-supplied raw hex while the deserializer accepts both recovery-id encodings, letting one signed transaction pass the gate twice; plus a paid-response cache leak because the library's
cache-control: privateis overwritten by the mounting app.
Sources:
- GitLab protected-variable scope: GHSA-4gg6-pm69-gwm2 / CVE-2026-79708 (fixed 19.1.8 / 19.2.6 / 19.3.2)
- GitLab adjacent: Markdown JSON-table renderer CSRF (8.2) GHSA-3xqm-9h96-4cr4 / CVE-2026-78252; GraphQL complexity-limit DoS GHSA-8c2h-q92r-2j66 / CVE-2026-1168; plus the routine CE/EE patch-tuesday singles (GHSA-9pgf-qvj2-p23v, GHSA-prpx-9q78-g4hg, GHSA-4793-7rmv-288c, GHSA-22cc-9j92-vx92, GHSA-mvcm-rmq8-7vvx, GHSA-q86m-h56q-9rjq, GHSA-cgh2-rmr4-c8fm, GHSA-74fm-x674-6p6m)
- Octopus Server: GHSA-7f5m-mqg8-7jjg / CVE-2026-92355, vendor bulletin sa2026-09
- Ash: GHSA-h9mg-hh48-hrwv / CVE-2026-86338
- ZenHive mpp: dedup bypass GHSA-p7v4-jpp9-2m3q / CVE-2026-88255; cache leak GHSA-4h6w-pvrh-g28p / CVE-2026-89186
Authorized validation only
Disposable GitLab/Octopus instances, synthetic groups/projects/feeds/users, fake secrets and marker files only. Never read real protected variables, never overwrite files outside a disposable root, never broadcast a real signed transaction, and never serve paid content to third parties as proof.
GitLab: variable scope is enforced per-pipeline-type, and every alternate pipeline trigger needs its own check¶
Protected CI/CD variables (protected/release variables) are supposed to reach only runners on pipelines matching the protection rules. The advisory shape: a developer-role user triggers a policy test pipeline on in-group projects; the test pipeline path skips the scope validation, so higher-privilege-restricted variables are exposed to the developer's job log/artifacts.
This is a repeat of a durable GitLab audit axis: each pipeline-creation route (push, MR, web, API, schedule, child pipeline, policy test, merge train) re-declares which variable set it materializes. On an authorized GitLab engagement:
- Enumerate every pipeline-trigger route reachable at your current role, including low-visibility ones: policy/test pipelines,
pipeline.createfor protected refs, external-status-check re-runs, and child-pipeline triggers. - For each route, run a job that dumps only a marker-presence projection (
test -n "$PROTECTED_VAR" && echo present), never the value. Presence of a variable restricted above your role is the finding. - Compare the same variable's presence across pipeline types with one project and two synthetic variables (one unprotected canary, one protected canary restricted to maintainer). A protected variable present in a developer-triggered test pipeline but absent in the developer's normal pipeline proves scope drift without touching real secrets.
- On the fixed series (19.1.8 / 19.2.6 / 19.3.2), require the negative for every trigger route re-tested, one patched route does not fix the family.
Adjacent GitLab items worth keeping in the methodology: the Markdown JSON table renderer record is a state-change CSRF via unsanitized user-controlled data in a renderer, when testing GitLab markdown, include table/JSON-embedded payloads against state-changing endpoints with a second synthetic account, and treat the GraphQL complexity-limit DoS as availability hygiene (tracked, not promoted).
Octopus Server: feed-modification permission is a server filesystem write primitive¶
External feeds store package/artifact sources. The advisory: modify a non-built-in external feed → path traversal → arbitrary file overwrite on the Octopus Server → possible RCE. The operator lesson generalizes past Octopus: any "source/registry/feed" CRUD permission that lets you control a stored name or URI becomes a server-side file operation later (download, cache, extract, index).
Authorized harness:
- Two synthetic users: one with only the feed-modification permission, one full admin for the control. Confirm the low-privilege principal genuinely can edit a non-built-in feed.
- Point the feed at an owned no-content peer first (route-level evidence: does the server fetch? where does it cache?).
- For the traversal edge, supply only inert traversal-shaped names and record the canonical proposed write path from a patched/observed sink or file-existence deltas on a pre-seeded disposable marker, never overwrite a real file to prove the bug.
- RCE is configuration-dependent per the vendor; treat "arbitrary overwrite reaches a trusted path (plugins, startup directories)" as a separate, explicitly authorized chain step, not an automatic escalation claim.
Ash: authorization nil-ing must cover every expression node type¶
Ash's documented guarantee, a field the actor cannot see is replaced by a nil expression in filters, so filters can't be used as read oracles, applied to Ash.Resource.* structs but not Ash.Query.Calculation / Ash.Query.Aggregate structs. Result: filter(secret_calc == "x") runs against the real value, and row-match/no-match responses recover the forbidden value bit by bit.
Reusable checks for any framework with attribute-level authorization:
- Build the expression-node inventory: attribute, association path, calculation, aggregate, fragment, expression, literal. Test a forbidden value through each node type as a filter predicate, not just plain attributes.
- Prove with a boolean-observable predicate against one known synthetic row (match/no-match differential), never bulk extraction.
- Generalize beyond Ash: GraphQL/ORM layers that redact fields in selections but pass them through filters/order/aggregates are the same class (cf. the existing field-masking differential patterns).
October 5 follow-up: the same filter path interns permanent atoms (CVE-2026-94201)¶
GHSA-hh99-hqg5-6646 / CVE-2026-94201 (high): Ash 3.5.1-3.34.3 stores :atom-typed attributes as strings but the type defined no coerce/2, so filter comparison values fell back to cast_input/2 → String.to_atom/1 whenever the attribute carried unsafe_to_atom?: true. Every distinct attacker-supplied filter value interns a permanent, never-GC'd atom; the BEAM atom table caps out and the whole node crashes. AshPaperTrail shipped the exploitable shape by default: a public, filterable version_action_name atom attribute with unsafe_to_atom?: true.
- Durable rule: on BEAM targets, any attacker-controlled string that reaches an atom-conversion path is a node-wide DoS primitive, the resource is permanent and shared, so one request per distinct value wins. Grep server-side Elixir for
to_atom|String.to_atom|unsafe_to_atomand check whether the call sits on a filter/query coercion path rather than only action input; the Sept 16 lesson generalizes again: the read/compare leg of a type lacks the hardening the write leg has. - Operator probe (authorized lab only): one request with a fresh random string per request against a public filterable atom attribute; rising-memory/fixed-error-then-node-restart is the proof. Same "coercion path ≠ storage path" audit as the Airflow int-vs-NonNegativeInt discrepancy: test the comparison leg with adversarial values, not just persistence.
- Tracked without separate publication from the same 21:31Z wave: Apache Struts legacy-RESTful-mapper OGNL injection gated on mapper/allowlist config (GHSA-wfm5-pq4p-gff9, fingerprint mapper config before claiming),
BigDecimalparam→tag-library render amplification (GHSA-8536-jvj9-v78f, sibling of the May 121eNDecimal DoS), REST-plugin unbounded body read + localized-date formatter cross-request bleed (GHSA-3fxc-fh79-w9fr, GHSA-5fhf-r6vm-6wj7, the formatter item is a stateful-render cross-user leak class, thin PoC), O2OAupload/with/urlSSRF + Feehi UEditorcatchimagedeny-list missing loopback/link-local (GHSA-94mc-96pm-mv7j, GHSA-hggc-x5gr-37ph, incomplete-denylist SSRF class already covered), Maestro unauthenticated REST write endpoints (GHSA-q53x-4qpm-q53m), DYMO working-directory DLL load-on-open (GHSA-gmvp-63rm-744w, local phishable-client class), and the routine WordPress object-injection/XSS/missing-authorization singles.
ZenHive mpp: dedup keying, transaction malleability, and library-vs-app header authority¶
Two Elixir payment-library edges with general applicability:
- Reserve-key malleability: the duplicate-submission gate keys on the caller-supplied raw hex (
tx.raw) while the deserializer accepts both recovery-id encodings (v=27andv=0), so one signed transaction passes the gate twice via two byte representations; the post-broadcast mark uses the canonical hash the reserve never reads. Audit rule: any replay/dedup/idempotency gate must be keyed on the canonicalized form the business logic consumes, and tested with equivalent-representation pairs (case, encoding variants, normalization aliases), not just byte-identical replays. - Library guarantee defeated by the consumer: the payment plug sets
cache-control: privatebefore the wrapped app runs;put_resp_headerreplaces, so an app setting its owncache-control: publicon the paid route silently voids the protection, and a shared CDN caches the paid response, receipt and all, for unpaid clients. Audit rule: prove trust guarantees through the full response chain (app → proxy → cache), not at the library boundary; headers set pre-handler are advisory, and aregister_before_send-style last-write authority is the correct shape. Also note the receipt-on-error variant: verify that success-only artifacts are stripped from non-2xx final responses.
November 16 follow-up: Octopus Server four-leg authorization-drift wave (CVE-2026-123745, CVE-2026-124629, CVE-2026-124631, CVE-2026-116288; GHSA package version fields empty, vendor-advisory band fingerprinting required)¶
A second Octopus wave landed in the Nov 16 12:31Z GitHub batch, all four legs on the permission-declaration-vs-sink axis this page's feed-traversal leg established:
- Runbook execution on offline package-drop targets (GHSA-869x-hqr3-mpg8 / CVE-2026-123745, medium): improper path validation let a user with scoped runbook permissions execute runbooks against offline package-drop targets, exposing and deleting Server working-directory files outside their permitted scope. Rule: an offline drop target is a file-operand sink reachable from a deployment permission most teams consider benign; pair every "can execute runbook/deploy" grant with a check on which storage targets it can steer.
- Scheduled trigger = release creation the user lacks permission for (GHSA-87pv-728w-pg58 / CVE-2026-124629, medium): users permitted to deploy existing releases but not create new ones could configure a scheduled project trigger that created and deployed new releases. The audit events were attributed to the system account, not the configuring user. Rule: schedule/automation objects are permission proxies, test whether creating one confers any capability you yourself lack; and attribution-to-system is an anti-forensics tell to report, it means the trigger path executes as a service principal with no per-action delegator check.
- Low-privilege Argo CD gateway registration (GHSA-p2fr-x5h8-2q59 / CVE-2026-124631, medium): a low-privileged authenticated user could register an Argo CD gateway, yielding unauthorized changes to Argo CD Application data for projects/environments outside their permissions within the same Space. Rule: external-CD/cluster integration registration is a write primitive against the external system with the server's credentials; enumerate integration-registration routes and test them as the lowest authenticated role (sibling of this page's feed-modification-is-a-write-primitive leg, and of the May 4 Argo ProxyCommand chain's "repo permission = credential-pod execution" shape).
- Team-scoped role edit to deploy privilege escalation (GHSA-3vcr-85fp-jc59 / CVE-2026-116288, high): permission to edit team-scoped roles was enough to escalate to deploying to projects/environments the user was not authorized for. Rule: on any RBAC admin surface, test the role-editor permission against the scoped objects it can write; "can edit roles in scope X" must not admit grants beyond scope X (self-grant family, cf. this page's Ash and the Sept 21 role-self-grant legs).
Operator battery for CI/CD platforms from this wave: (1) enumerate automation/proxy objects (triggers, schedules, runbook definitions, integration registrations, gateways) and ask per object type whether creation rights exceed the creator's action rights; (2) who does the automation execute as, and does the audit log know the delegator; (3) validate all of it with synthetic projects/spaces and fake targets, never real deployments. Empty GHSA version fields again here: fingerprint bands from the Octopus vendor advisories rather than the GitHub records.
Reporting notes¶
- For GitLab, report trigger route × variable-scope as a matrix with presence-only projections; never include variable values.
- For Octopus, state the exact permission held, feed type, canonical write path, and whether RCE configuration (trusted path reachable) was independently confirmed or left as vendor-stated possibility.
- For Ash and ZenHive, the finding is the boundary drift (node-type miss, representation-keyed gate, overwritten guarantee header), demonstrated by differential response or recorder evidence; do not escalate to "data breach" or "double spend" without the downstream sink proven in an owned environment.
November 26 follow-up: GitLab merge-request approval-reset bypass via weak hash in change detection (CVE-2026-17194 / GHSA-m427-mcvq-q52f, medium, 16.7.0 before 19.4.11 / 19.5.9 / 19.6.2)¶
A developer-role user could merge into protected branches without triggering approval resets because the merge-request approval change-detection mechanism used a weak hash function: new pushes whose change fingerprint collided with the approved state left the old approvals standing. Rule for every approval/sign-off gate on any review platform (GitLab MRs, GitHub PR rulesets, Gerrit, Gitea): the gate compares a fingerprint of what was approved against what is merging, so the hash input set and the collision behavior are themselves the security boundary. Operator battery: (1) enumerate what the fingerprint covers (file list? hunk content? commit SHAs? only timestamps?), push changes that should obviously invalidate approvals (add a line to an approved file) and check whether approvals reset; (2) hunt fingerprint-invariant edits, renames/whitespace/line-ending shifts or reordered files that a weak hash or content-ignoring digest may call unchanged; (3) test the merge button as the lowest role that can push (developer) with approvals already granted by a disposable approver account. Frame the finding as integrity-gate bypass via fingerprint collision, keep proofs to disposable projects on self-hosted instances, and record the exact pre/post approval-state diff rather than claiming code made it to production branches.