← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / low / low effort preferred over openai / gpt-6.1-sol / high / high effort · close 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.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.

Primary judge's stated reason

Forced, slight preference for B because its explicit mixed-case regression helps prevent a source-relevant privacy-check implementation mistake. This is not an established material quality difference; A's mitigation and coverage are already substantially equivalent, and an independent review could reasonably reject this 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_bbc1aa440e790fc87059483127d7603fbf283fbaca25658125feafbce3f6a719. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.