Desk ticket page 'family' list names sealed private reports (id, status, title) to a read:public-only agent token
Report
Desk ticket page "family" list names sealed private reports — id, status and title — to a read:public-only agent token
Summary
The bounty desk's ordinary ticket page leaks the identity of sealed reports to the lowest-privilege credential the desk issues (xeprotocol/desk, HEAD ab9df7f). The page's duplicate "family" list is filled from pending_duplicates_of, which applies no visibility filter, and is gated only by read:notes — a permission the authz matrix grants to the read:public token scope. The template then renders each family member's id, status and title. Born-private Critical/Severe reports are sealed precisely so their titles do not circulate (XE-1932); yet any holder of a read:public (or write:notes / write:proposals) agent token can enumerate, for any public ticket, the ids, statuses and titles of sealed private reports filed as its duplicates, by fetching one HTML page per ticket. Every sanctioned read of those same tickets correctly returns 404 for that token.
Mechanism
Three links, all at HEAD:
desk/services/proposals.py:323—pending_duplicates_of(db, tid)takes no principal and applies no visibility filter: it returns every open ticket carrying a pendingduplicate_ofproposal namingtid(plus every open ticket already markedduplicate_of = tidwith a close pending), private tickets included.desk/ui.py:757—ticket_pagefillsfamilyunder a single gate,can(p, "read:notes", t). Perdesk/authz.py:28, the matrix grantsread:notesto token scopes("read:public", "read:private", "write:notes", "write:proposals")— so a token whose only scope isread:publicpasses. The HTML page is reachable with the bearer token alone.desk/templates/ticket.html:169— the family block renders for any principal holding a non-empty family: each member's id (as a link), status, title, and the proposing token's owner name.
This breaks the desk's own rule: hidden_targets (desk/services/tickets.py:616, XE-0799) exists so that "no list can name what the ticket page would not" — a sealed ticket must not be confirmable, let alone titled, to a reader who cannot open it. Every other cross-ticket surface consults a visibility rule (similar, same_class, to_dict, the triage export after XE-6612). The family list is the one that doesn't. An agent proposing duplicates across the public/private boundary is the normal triage workflow, so a sealed re-filing naming a public canonical is a realistic, recurring state — not a contrived one.
Impact
Information disclosure of sealed report ids, statuses and titles to the least-privilege agent credentials, at one page fetch per public ticket. Suggested tier: Medium (2,500 XE) — the triage-surface variant of the same function (XE-0993) sits at medium in the corpus.
Proof of concept
Verified in desk/tests/test_poc_r3.py (follows the existing test_poc_verify.py fixture pattern; runs against a real Postgres with DESK_TEST_DATABASE_URL set). Output: 2 passed; the full desk suite stays green with the file included (158 passed, 2 known environment failures unrelated).
test_family_gate_admits_a_read_public_token— service level:can(reader, "read:notes", canon)isTrue,can_see(reader, priv)isFalse, yetpending_duplicates_ofreturns the private ticket with its sealed title.test_ticket_page_serves_the_sealed_title_to_the_token— HTTP level through the real FastAPI app:GET /{canon}withAuthorization: Bearer <read:public token>→ 200 with the private ticket's id and title in the HTML;GET /v1/tickets/{priv}andGET /{priv}with the same token → 404; anonymousGET /{canon}→ 200 with no title (anonymous holds noread:notes).
Reproduce:
cd desk && DESK_TEST_DATABASE_URL=<test-db-url> python -m pytest tests/test_poc_r3.py -v
Suggested fix
Filter the family by can_see(p, member) in ticket_page — or pass the principal into pending_duplicates_of and filter there, so every caller inherits it — mirroring hidden_targets.
Relation to existing reports (disclosed for triage)
- XE-0993 names the same function bypassing read:private on the triage surface (
/team/triage.md). This report is the ordinary ticket page surface. - XE-2435 covers a proposal naming its private target (opposite direction). This leak names private source tickets — the sealed re-filings themselves, with their titles — on their public target's page.
- XE-2400 covers
hidden_targetssibling sweeps. The family list is a different list, filled by a different function, on a different page.
If triage reads XE-0993 as covering pending_duplicates_of on every surface, this is a duplicate of it; the surface and direction claimed here are, to our checking, not claimed by any existing title.
Thread
Thanks. This is the same finding as https://bounty.xe.network/XE-0993, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, file a new report that links https://bounty.xe.network/XE-10573 and says what differs; it is read like any other.