Quay mirror-fetch and VuFind handler-termination authority boundaries¶
Two August 6 feed records expose a reusable operator pattern: an early control appears to approve or deny a request, but a later worker or controller retains more authority than that decision represents.
- Red Hat Quay repository-level mirror configuration accepts
external_referenceand can pass it to a Skopeo-backed mirror worker without the URL validation used by the organization-level mirror handlers: CVE-2026-15927, Red Hat Bugzilla 2501256, and GHSA-9rpm-rwwc-xw43. - VuFind's controller-level access check can produce an access-denied response without stopping the requested controller function from executing: CVE-2026-52466 and GHSA-4m6p-2r8v-vvqp.
The GitHub records were unreviewed mirrors when this page was written. Red Hat's primary record confirms the Quay repository-mirror URL-validation boundary. Treat the VuFind item as a validation seed until the exact route, affected revision, and corrected control flow are confirmed in upstream source; do not invent affected or fixed version ranges.
Owned peers and denied side-effect sinks only
Use a disposable Quay deployment, an owned no-content registry recorder, synthetic repositories, a disposable VuFind instance, synthetic users and records, and patched controller side-effect sinks. Never point mirror configuration at metadata, loopback, private production services, or an unowned host. Never create, alter, export, email, or delete real VuFind data.
1. Map policy parity across Quay mirror route families¶
Start from authenticated route metadata or the exact deployed source revision. Inventory repository- and organization-level mirror handlers independently:
| Dimension | Capture |
|---|---|
| caller | authenticated principal and repository/organization role |
| route | method, normalized path, handler, object scope |
| input | raw external_reference, parsed scheme, authority, path |
| validation | validator name, allow/deny result, resolved addresses |
| handoff | queued task type and normalized registry reference |
| worker | Skopeo argv/config or patched connector arguments |
| network | redirect hop, DNS answer, final socket peer, denied decision |
Do not assume that equivalent UI forms share equivalent server controls. Compare create and update methods, repository and organization scopes, API and UI-backed handlers, and immediate validation versus asynchronous worker execution.
A useful parity matrix is:
| Case | Repository mirror | Organization mirror | Expected invariant |
|---|---|---|---|
| ordinary owned registry | accepted | accepted | same canonical authority reaches the worker |
| malformed authority | rejected | rejected | no job queued |
| userinfo / alternate port | same policy | same policy | parser cannot hide the final authority |
| redirect to owned denied peer | denied before connect | denied before connect | every hop is revalidated |
| owned DNS name with changed answer | denied at final peer | denied at final peer | validation and connection cannot diverge |
Use only two owned listeners: an ordinary registry-shaped control and an isolated denied canary. Return no credentials, manifests, or image layers. Instrument the connector so it records the final authority tuple and refuses the socket.
A bounded positive is:
repository administrator sets synthetic external_reference
-> repository handler omits or disagrees with URL validation
-> mirror job is queued
-> patched worker selects the owned denied peer
-> equivalent organization handler rejects before queueing
This proves route-family validation drift and worker-side outbound authority without contacting an internal service. An accepted URL alone is insufficient; preserve the queue handoff and final-peer decision.
2. Test the asynchronous final-peer boundary¶
Quay's worker handoff matters because request-time parsing, queue serialization, Skopeo normalization, DNS, redirects, and the final connection may each see a different authority. Record the value at every transition:
raw API field
-> parsed URL/registry reference
-> validated authority and DNS set
-> queued representation
-> worker/Skopeo input
-> redirect authority
-> final DNS answer and socket peer
Exercise harmless canonicalization classes: hostname case and trailing dot, userinfo, explicit default ports, IPv4/IPv6 textual forms, redirects between the two owned peers, and controlled DNS answer changes. Do not test real private, link-local, loopback, or metadata addresses.
Report separate claims:
- validator parity failure: the repository route accepts a canary rejected by the organization route;
- queue drift: the queued reference differs materially from the validated reference;
- final-peer failure: the patched connector would select an owned peer outside the approved policy; and
- response relay: only if synthetic response metadata is actually returned to the caller.
Do not infer cloud credential access or internal-service reachability from missing request-time validation alone.
3. Verify that VuFind denial terminates dispatch¶
For VuFind, derive affected controllers and actions from the exact source revision or upstream patch. Do not brute-force route names. Build a route matrix with one synthetic object and patched sinks:
| Credential state | Controller policy | Response | Handler entry | Side-effect sink |
|---|---|---|---|---|
| none | denied | access denied | must not occur | must not occur |
| authenticated wrong role | denied | access denied | must not occur | must not occur |
| intended role | allowed | normal result | occurs | recorder only |
| fixed build, wrong role | denied | access denied | must not occur | must not occur |
Place recorders at four points: validateAccessPermission, the selected action's first line, object resolution, and every read/export/mutation/message sink. A denial response is not proof of safety if handler execution continues after the response object is created.
Use action classes rather than destructive examples:
- read/detail rendering of a synthetic marker;
- export/download selection with a fake record ID;
- create/update/delete routed to a no-op transaction recorder;
- email, webhook, or job scheduling routed to a denied queue; and
- batch or alternate-format siblings, if present in source.
A bounded positive is:
unauthorized synthetic request
-> access validator records DENY
-> response is marked access denied
-> controller action entry recorder still fires
-> patched sink receives only the synthetic object ID
-> fixed build returns before action entry
This proves non-terminating authorization control flow. It does not prove disclosure or mutation unless the corresponding sink is reached with an object outside the caller's authority.
4. Separate response semantics from server-side effects¶
Preserve both the client-visible response and server-side trace. Frameworks may discard a later handler response, roll back a transaction, or suppress rendering while still performing reads, logging, queueing, or other side effects.
For each action, capture:
- policy decision and reason;
- response object/status created by the validator;
- whether dispatch continues;
- resolved synthetic object and owner;
- transaction state;
- denied sink invocation;
- final client-visible status/body hash; and
- affected-versus-fixed control-flow difference.
Use precise outcomes:
| Evidence | Supported claim |
|---|---|
| denial response plus action entry | authorization guard fails to terminate dispatch |
| foreign synthetic object reaches read recorder | object disclosure path, with data access denied |
| no-op mutation recorder receives foreign ID | unauthorized mutation path, without mutation |
| queue recorder receives synthetic job | unauthorized asynchronous side-effect path |
| only generic error timing differs | insufficient; investigate before reporting |
October 5 follow-up: build-trigger config hands read-only admins a repository write token (CVE-2026-105447)¶
GHSA-wr22-68gv-32xw / CVE-2026-105447: Quay's build-trigger API returns trigger configuration details, including the embedded repository write delegate token, to global read-only administrative users. A restricted principal reads the token from a GET response, then uses it to push arbitrary images to private repositories: read-only becomes write by way of a config endpoint that leaks the credential its own write path uses.
- Durable rule: a config/webhook/trigger read endpoint that returns a stored secret is a write-capability disclosure, and least-privilege review usually covers the mutation verb but not the config GET. Enumerate every endpoint that stores then replays credentials (build triggers, webhooks, replication/mirror config, robot accounts, OAuth client secrets) and fetch each one with the lowest-privilege principal.
- Operator check on an authorized Quay (or any registry/CI platform): authenticate as read-only,
GETtrigger/mirror/webhook configs for a synthetic repo, and record whether raw token material appears in any response body, compare against what the same principal is allowed to do. Token bytes in the body = escalation proven; redact the token itself from evidence, keep only the field-presence decision. - Same sibling doctrine as the Airflow
connections/testcross-team credential-USE oracle (Oct 2 page): separation of duties fails when read surfaces relay write credentials.
November 11 follow-up: the anonymous token picks its own audience, and the key-rotation endpoint trusts it (CVE-2026-123710 / GHSA-jw94-v4wp-236w, critical)¶
Red Hat Quay lets an unauthenticated client obtain an anonymous registry token with an audience the caller controls, present that token to the service key rotation endpoint, and install its own signing key with no expiry. Every registry token subsequently signed with the attacker's key is accepted for any repository: read and write of private images plus tag replacement, from zero credentials.
- Durable rule: if a token your service mints is accepted as authority at the key-management endpoint, token issuance is key management. The bootstrap cycle here is fully attacker-driven: request anonymous token (audience self-chosen) -> call rotation endpoint with it -> sign your own tokens -> full registry authority. Audit every platform that mints tokens: enumerate the endpoints that accept your token as auth (not just as the object being acted on), and check whether any admin/mutation route (key rotation, webhook secret reset, certificate upload, robot-account creation) sits behind that same gate. Token audience/service mismatch at the gate is the finding.
- Operator probe on an authorized Quay: request a token from the auth endpoint with a modified
service/audiencevalue, replay it against key-rotation/admin routes, and record the accept/reject decision table (do NOT install a key on shared infrastructure; in your own lab, prove installation, then sign a token for a synthetic private repo and read it). Fixed-build differential is the negative control. - Genealogy on this page: the October 5 leg (build-trigger config leaks a write token to read-only admins) and the August 6 mirror-fetch legs are the same thesis at different layers: the registry's own credential plumbing (mirror workers, trigger configs, token audiences) is the attack surface, not the repository data plane. Anonymous-token audience control is the most severe sighting yet because it needs no principal at all.
- Tag replacement completes the supply-chain story: with attacker-signed tokens you can repoint tags on private images, i.e., CI consumers pull attacker layers. Treat any Quay below the fix as a build-system compromise vector, not just a data leak.
November 21 follow-up: a namespace name you register is a LIKE pattern, and the robot-account list returns decrypted tokens through it (CVE-2026-110697 / GHSA-cxc6-5mg7-78wq, critical 9.9)¶
Red Hat enrichment landed 2026-11-21 on the Nov 11 advisory: Quay's robot account listing function builds a SQL LIKE pattern from user-controlled namespace names without escaping wildcard metacharacters. An attacker self-creates a namespace containing _ (single-char wildcard) and the resulting pattern over-matches robot accounts in other tenants' namespaces, returning those accounts and their decrypted authentication tokens. Cross-tenant credential theft plus unauthorized image push/pull/tag-replace, from an ordinary low-privilege create-namespace action.
- Durable rule: a registration-time name field that reaches a LIKE pattern is not just an ACL broadener (the YesWiki leg of this class), it is a credential-retrieval selector when the matched list function returns secrets. The two axes to test separately: (1) does a wildcard-laden name change which objects the query returns, and (2) does the returned object carry token/key material. Axis 1 is usually fuzzed by now; axis 2 almost never is. Standing battery on any multi-tenant product with self-serve namespaces/orgs/teams/usernames: register
%-laden and_-laden names, then call every list endpoint that plausibly string-concatenates that field intoLIKE '%...%', and check response bodies for token bytes (redact from evidence, keep field-presence decisions). - Why namespace-name entry is the better trigger than username: namespace creation is typically open to any logged-in user, the name is free-form, and namespace-scoped listing routes (
/robot/{namespace}-family) are usually authorized at the caller level, not per matched row. Escaping checks get added to the WHERE clause people think about (auth), not the one in a convenience list query. - Enrichment-arrival pattern: Red Hat advisories often publish with empty/boilerplate descriptions and the real mechanism lands days later via the updated feed. This leg was unremarkable at Nov 11 publication and only became promotable at Nov 21 00:32Z. Always re-check the updated feed for Red Hat items previously dispositioned as sparse, not just the published feed.
- Operator probe on an authorized Quay: create a synthetic namespace with
_and%shapes, list robot accounts for a synthetic victim namespace under a different account, and record whether foreign robot tokens appear in your response. Fixed-build differential is the negative control. Never push attacker images to shared registries to prove write; token presence in your body is the proof. - Genealogy on this page: mirror worker URL validation (Aug 6), trigger-config write-token disclosure (Oct 5), anonymous-token audience self-selection (Nov 11), and now wildcard-in-list-query cross-tenant token disclosure. Same thesis, fourth layer: the registry's credential plumbing is the attack surface; the repository data plane is just the payoff.
November 22 follow-up: your short-lived scoped bearer token IS a robot password, so revocation never revokes (CVE-2026-134651 / GHSA-vh39-75ff-8h6q, medium, Red Hat Quay)¶
Red Hat published a fourth Quay credential-plumbing leg: Quay accepts a scoped, short-lived registry bearer JWT as a valid robot account password. An authenticated attacker holding any restricted token authenticates directly as the robot account via basic auth, inheriting the robot's broader permissions instead of the token's narrow scope, and because the robot credential path never consults the password, fresh tokens keep minting even after an admin resets the robot account's password.
- Durable rule: two credential families sharing one validation path is one credential family. The scoped token and the robot password are separate authority objects with separate lifecycles (token: minutes, scoped, server-signed; robot password: long-lived, unscoped, admin-rotatable), yet the robot auth path treats a token string as a matchable password. Audit every platform that mints both ephemeral tokens and static secrets: for each credential-checking endpoint, replay each credential family at every other family's gate (token at password fields, password at token endpoints, expired token where live token accepted, other-tenant token at same gate). Any cell where a revocable artifact authenticates as an irrevocable one is the finding.
- Revocation-state audit, the credential-type variant: the admin "reset password" control is the documented revocation primitive for robot accounts. When the attacker's entry credential is a token the reset doesn't touch, the revocation control is decoration. Battery: obtain low-privilege token, escalate via password-as-token path, admin-reset the robot password, re-run the whole chain; persistence past the reset is the reportable proof. Same doctrine as this page's November 11 anonymous-audience leg and the pyLoad auth-cache leg: administrative lifecycle actions must invalidate every path that derives authority from the mutated object.
- Operator probe on an authorized Quay: pull a scoped token from the token endpoint for a synthetic repo, replay it as the password half of robot-account basic auth against a synthetic robot with broader grants, record the scope delta in the decision table, then reset the robot password in the UI and repeat. Never test against shared registries with real robot accounts; token-as-password acceptance on your own lab robot is the proof.
- Genealogy on this page: mirror worker URL validation (Aug 6), trigger-config write-token disclosure (Oct 5), anonymous-token audience self-selection (Nov 11), wildcard LIKE token disclosure (Nov 21), and now bearer-token-as-robot-password. Fifth layer, same thesis: the registry's credential plumbing is the attack surface; the repository data plane is just the payoff.
Evidence bundle¶
Product and exact revision/build:
Caller role and object scope:
Route family / method / handler:
Raw-to-canonical URL or request trace:
Policy decision:
Queue or dispatch continuation:
Final-peer or object identity:
Patched sink result:
Affected-build result:
Fixed-build result:
Supported claim:
Explicitly excluded stronger claims:
Keep registry credentials, image metadata, user records, search history, email addresses, and session material out of evidence. Hash synthetic bodies where content is unnecessary.