risk-nexus/findings/RISK-F-0004-tenant-engine-unfiltered-event-read.md
tegwick 7f1424dbcf Sweep risk inbox and reconcile findings
Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a058f3-8ba0-7692-a042-9a870fc3d663
2026-09-01 02:41:32 +02:00

6.5 KiB
Raw Permalink Blame History

id type title status owner reported_by reported_via routed_by date_reported date_filed system environment fix_owner fix_tracking related severity severity_at_production severity_superseded impact likelihood fidelity_modifier production_rescore disclosure publication publication_id publication_path publication_subtitle revision last_reviewed review_interval embargo_lifted embargo_was_since escalation date_fixed last_checked next_check cadence clean_streak graded_by ruling checked_by
RISK-F-0004 finding tenant-engine events() returns the entire event log unfiltered fixed risk-nexus tenant-engine flex-auth risk-nexus 2026-08-17 2026-08-19 tenant-engine production tenant-engine TEN-WP-0011-T05 (finished 2026-08-29)
RISK-F-0001
medium high high (2026-08-19), graded on a live network-reachable read that does not exist I3 L1 false true public pending-handover risk-f-0004-tenant-engine-unfiltered-event-read findings/tenant-engine-unfiltered-event-read/v1/index.html Tenant Engine's production store protocol exposed an unfiltered event-list method; it now exposes tenant-scoped reads only. fixed-1 2026-09-01 6m 2026-08-29 — unfiltered events() removed from the production protocol and tenant-scoped negative tests landed 2026-08-19 none 2026-08-29 2026-09-01T00:32:44Z 2026-09-01T00:32:44Z instant 0 risk-nexus RISK-RULING-2026-08-19-B codex/risk-nexus

RISK-F-0004 — the tenant event log is readable across tenants

What is true, as reported

tenant-engine's events() returns the entire event log with no tenant filter. Reported by tenant-engine as a live cross-tenant read at E2 on the Tenancy Posture E ladder, surfaced in the same review round as RISK-F-0001 and recorded inside that finding as visible-but-unfiled.

This repo has not verified it and does not own the code. It is filed on the owning repo's own self-report. tenant-engine confirms or corrects it.

Why it is being filed now

It was held back pending the precedent this register set for what warrants a record of its own. That precedent now exists (docs/method/severity.md), and "still waiting on the precedent" has stopped being an available answer. This finding clears the floor on both tests: tenant-engine can act, and recording it changes when they act.

What is not established

  • Whether any caller other than tenant-engine itself currently reaches events().
  • What the log contains — whether the rows are metadata or carry tenant payload. The grade assumes cross-tenant visibility, not payload disclosure, and would rise if it is the latter.
  • Whether a fix is tracked anywhere. fix_tracking is unset and this repo has asked.

Register ruling — 2026-08-19

high today (I3 × L3), critical at production, embargoed until the read path filters in code, no escalation.

I3: a cross-tenant read crosses a tenant boundary inside one system. L3: no additional step is needed by anything that can already call the method, and the authorization that would otherwise constrain the caller is RISK-F-0001, which authenticates nobody.

production_rescore: true. Today the log holds no real counterparty's events, which lowers what one occurrence costs; it does not lower what the defect is. At production the same read is I4 — real tenant data crossing a boundary that nothing verifies — and the re-score is owed before any production declaration completes.

No escalation: no real tenant data yet (trigger 1 reads real), owned, and not yet stalled. It becomes an escalation on the day the estate takes real tenant data, and that is what production_rescore is for.

Reviews

  • 2026-08-19 — filed and graded from RISK-F-0001's unfiled list. Open at review: does tenant-engine confirm; is a fix tracked; what does the log actually contain.
  • 2026-08-20 — clean check: checked against the inbox and the owner's record; nothing moved. Cadence instant → 1h (1 clean in a row); next check 2026-08-20 11:02Z.

Check — 2026-08-21: confirmed, with a correction that cuts both ways

tenant-engine answered, and the answer changes the grade in both directions.

Worse than recorded: TenantStore.events() returns the complete event list and payloads without a tenant argument. The original grading assumed cross-tenant visibility and said explicitly that it would rise if payloads were involved. They are — payloads carry mutation evidence.

Much less reachable than recorded: it is an in-process store protocol method used by repository tests. tenant-engine exposes no HTTP event-read route, so there is no live network-reachable cross-tenant read, which is what this register wrote down and what L3 was scored on. That was a reachability claim the register inherited from a summary and never tested.

L3 → L1. I3 holds — the payload correction and the boundary crossing offset each other rather than compounding. high → medium, high at production, because the latent interface is still too broad and any future export route inherits it.

Fix tracking is now TEN-IN-0002: remove it from the production protocol, or replace it with an authorized, deliberately scoped export interface plus cross-tenant negatives. Their separate TEN-IN-0001 covers a tamper-evident audit emission gap and is not this finding.

The correction is the useful part of the exchange, and it is the direction reporters are usually reluctant to push: this register had overstated their exposure for two days, in public-facing language, and they said so plainly.

  • 2026-08-21 — not clean: owner replied; see the dated check section Cadence 1h → instant; checked again immediately.

Closure — 2026-09-01: the broad method is gone

Tenant Engine reports TEN-WP-0011-T05 complete: TenantStore.events() was removed from the production protocol and replaced by events_for(tenant_id). Risk Nexus read the current in-memory, SQLite, and PostgreSQL implementations, confirmed that all resolve and query by tenant, and ran the dedicated negative suite: 3 passed, including absence of the broad method and cross-tenant isolation.

That is concrete source and regression evidence for the precise defect. The finding is fixed; the embargo condition is met and publication is handed over.

  • 2026-09-01 — not clean: TEN-WP-0011-T05 removed the broad protocol method and the focused tenant-scope suite passes; status fixed and embargo lifted. Cadence instant → instant; checked again immediately.