← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / high / high effort preferred over openai / gpt-6-luna / xhigh / xhigh effort · clear win.

Primary judge: Sol 6.1, requested Low. Effective provider effort and internal attempts were not verified. A close win is still a scored preference; it does not establish a material defect.

Reviewed public evidence

Task goal

Perform a source-grounded authorization and tenant-isolation review of review-pack access and worker-job token boundaries. Identify only a concrete cross-tenant, unauthorized-read/write, or token-confusion path supported by the code; give required preconditions, affected data/action, minimal mitigation, and regression coverage. Do not infer exploitability from names alone.

openai / gpt-6.1-sol / high / high effort answer

## Finding: manifest-directed video serving can bypass certification read authorization

**Conditional, source-grounded unauthorized-read path; high confidence in the routing behavior.**

In `[REDACTED: private project name]/backend/app/routers/review_pack.py`:

- Certification access checks the assigned reviewer’s email and slot (`1368–1427`).
- Generic file serving explicitly blocks `certification/` artifacts (`4058–4066`).
- However, `/review-pack/{inspection_id}/video` reads `review_manifest.json["video_path"]`, checks only for absolute paths/traversal, then serves the referenced object without certification authorization (`2638–2655`). `_validate_path` does not reject certification paths (`1163–1179`).

### Required preconditions and reproducible trigger

1. A caller passes ordinary media authentication and `_get_inspection` for inspection **I**, but is not its assigned certification reviewer.
2. I has a pack containing a restricted certification artifact, for example `certification/stage1/reviewer.draft.json`.
3. No `.mp4` is selected from the pack’s `video/` directory.
4. The pack’s manifest contains:
   ```json
   {"video_path": "certification/stage1/reviewer.draft.json"}
   ```
5. Request `GET /api/v1/review-pack/I/video`.

The endpoint passes path validation and returns the restricted artifact through `storage.get_response`. Labelling its contents `video/mp4` does not enforce authorization.

**Affected data:** certification assignments, reviewer drafts, or locked packets referenced by the manifest. This establishes an unauthorized-read path, not a demonstrated cross-tenant write.

### Minimal mitigation

Apply certification-object exclusion to **both** manifest resolution branches before storage access (`2650–2666`). For direct storage keys, authorize and classify the resolved object; checking only the raw path’s first component is insufficient.

### Regression coverage

- An ordinary media reader who is not assigned to certification cannot retrieve a draft, manifest, or locked packet through `/video`, using either pack-relative or direct-key manifest references.
- Assert restricted keys are never passed to `storage.get_response`.
- Normal published videos still work, and assigned reviewers retain access through the certification API.

## Limits and discarded hypotheses

The packet does **not** establish who can create or change `review_manifest.json`; therefore, it does not prove an ordinary user or leaked worker token can arrange the prerequisite reference.

No additional concrete worker-token confusion path is established: the supplied validator checks route/method, tenant, terminal status, and immutable resource binding (`worker_job_tokens.py:193–305`). Its dependency integration and downstream enforcement remain outside the packet.

Likewise, `review_boot.py:170,196` loads inspections by ID without an explicit tenant predicate, but no supplied caller establishes attacker-controlled IDs or unauthorized invocation; that alone is not a finding.

**Next useful action:** add the manifest-reference regression test and close the alternate-serving authorization gap. This assessment was performed directly and independently on the supplied snapshot.

openai / gpt-6-luna / xhigh / xhigh effort answer

## Findings

1. **Conditional cross-tenant read through progressive review-pack serving.** `_get_inspection` scopes the inspection to the tenant (lines 1242–1273), but when no finalized pack path exists, the generic file route selects a `ProcessingJob` by media ID, type, and status—without checking its municipality (lines 4073–4097). It then serves the requested key under that job’s `output_path` (lines 4120–4121). The in-progress routes also select jobs without a tenant predicate (for example, lines 2433–2475).

   **Preconditions:** An accessible tenant A inspection has no finalized pack, and a job referencing its media has tenant B’s `output_path` and readable objects. A tenant A user could then request a non-certification file under that path. The supplied evidence does not establish whether database constraints or job creation code make this mismatched association possible.

   **Minimal mitigation and regression:** Require the job and linked media to match `scope.own_org_id` in every progressive-job query; verify the output path is tenant-scoped before storage access. Test that a mismatched job is not served to tenant A, while a correctly tenant-bound job still works.

2. **Conditional cross-tenant write in review-boot helpers.** `stamp_review_boot` and `persist_review_boot_from_bytes` load `Inspection` using only `inspection_id` (`review_boot.py`, lines 169–175 and 195–202), then write review-boot fields. A caller supplying another tenant’s inspection ID and pack bytes can update that row. These are internal helpers; the packet does not show whether an untrusted caller can supply those values.

   **Minimal mitigation and regression:** Verify the inspection-to-pack/tenant association at the call boundary or in a tenant-aware helper. Test that a mismatched pack/inspection pair does not alter review-boot fields.

## Token-boundary assessment and uncertainty

The supplied worker-token code requires the expected token type’s job binding and scope, applies a method/path allowlist, checks the active job’s tenant and resource snapshot, and records worker-job state (`worker_job_tokens.py`, lines 193–306). However, the dependencies and endpoint call sites that resolve tenant scope and enforce resource bindings are outside the packet. **This evidence cannot establish whether those downstream checks are consistently applied**, so it does not support a confirmed worker-token bypass or token-confusion finding.

The key uncertainty is whether database constraints/job creation prevent cross-tenant job-to-media associations, and whether callers can mismatch review-boot inspection IDs and pack bytes. Neither is established by the supplied snapshot.

Primary judge's stated reason

A provides the better-supported authorization review: its trigger, affected restricted artifacts, mitigation across both manifest branches, and regression assertions directly address an explicit access boundary. This is a clear comparative advantage in finding selection and actionability, not proof that A established a deployable exploit.

This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.

Battle wave: 527c366a-0a3f-41a8-8ff5-f886f8eadb49. Pair: brp1_25af2397e1639475bf4a197b66944756b5b37ebbd8022578cd39892ba3f28504. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.