← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / low / low 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 / low / low effort answer

## Conditional finding: video resolution bypasses certification read authorization

**The supplied code establishes a read-bypass path, conditional on control of `review_manifest.json`; it does not establish how an attacker obtains that control.** Confidence: high in the bypass, uncertain in attacker reachability. Assessment was direct and independent.

### Evidence and reproducible trigger

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

- Certification access requires the assigned reviewer’s home organization, slot, and email (1368–1427).
- Generic file serving explicitly blocks the `certification` directory (4058–4066).
- However, `GET /review-pack/{inspection_id}/video` reads `video_path` from the manifest and serves the corresponding pack-relative object without that private-path check (2638–2655). `_validate_path` only rejects absolute paths and `..` components (1163–1179).

**Required preconditions:**
1. A local certification pack contains another reviewer’s draft or locked packet.
2. The requester passes ordinary media authentication and inspection tenant checks, but is not the assigned reviewer.
3. Someone can author or alter that pack’s manifest.
4. No `.mp4` under `video/` takes precedence.

Set:
```json
{"video_path":"certification/stage1/<slot>.draft.json"}
```

Then request:
```http
GET /api/v1/review-pack/<inspection_id>/video
```

The route serves the draft bytes labeled `video/mp4`, bypassing reviewer assignment checks. The same path applies to an existing locked packet. This is an **unauthorized same-tenant read**, not an established cross-tenant exploit.

### Minimal mitigation and regression coverage

Reject private certification paths before **either** manifest-directed storage lookup in the video route. Apply the check to the resolved pack-relative destination, including direct-key resolution.

Regression tests:
- An unassigned, otherwise authorized media reader cannot retrieve drafts, locks, or manifests through `/video`.
- Mixed-case `Certification` and direct storage-key variants are also denied.
- Legitimate pack-relative and tenant-confined video references still work.

### Limits and discarded hypotheses

- The packet does **not** demonstrate that a worker-job bearer can write this manifest. Its allowlist excludes review-pack routes (`worker_job_tokens.py`:78–93, 207–216).
- Cross-tenant media/job associations and unscoped boot writes require caller, model, or RLS evidence outside this packet; they are not demonstrated exploits.
- JWT decoding and downstream enforcement dependencies are outside the packet, so no token-confusion finding is established.

**Next useful action:** add the video-path privacy regression test, then separately verify who can author manifests to determine practical exposure.

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 a more actionable authorization regression: verify that an ordinary inspection reader cannot obtain reviewer-private artifacts through video resolution. The clear preference concerns the stronger source-grounded review and reproducible conditional path, not proof of deployed exploitability or a merely forced slight preference.

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_beeadaa4a66b2e66a3f9a687881427c98c89b4d27e655ba3f706779ce6da6aa6. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.