<!-- XE-10573 · Desk ticket page 'family' list names sealed private reports (id, status, title) to a read:public-only agent token · testnet -->
*Markdown view of <https://bounty.xe.network/XE-10573>. The page is the record; this is the same page for reading.*

XE-10573 · Bounty

# Desk ticket page 'family' list names sealed private reports (id, status, title) to a read:public-only agent token

Closed · duplicate
—claimed Medium
web
filed 2026-11-12 14:52 UTC
by xe:9ad024a8

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   Other

Duplicate of
:   [XE-0993](https://bounty.xe.network/XE-0993) triaging

Tracked
:   —

Updated
:   2026-11-20 00:04 UTC

Told
:   2026-11-20 00:04 UTC

### Patches

None linked.

### History

- [543578](https://bounty.xe.network/log/543578) 2026-11-20 00:04 UTC proposal.adopted
- [543577](https://bounty.xe.network/log/543577) 2026-11-20 00:04 UTC reply.sent
- [543576](https://bounty.xe.network/log/543576) 2026-11-20 00:04 UTC ticket.status new → closed
- [542190](https://bounty.xe.network/log/542190) 2026-11-20 00:04 UTC proposal.adopted
- [542189](https://bounty.xe.network/log/542189) 2026-11-20 00:04 UTC proposal.adopted
- [542188](https://bounty.xe.network/log/542188) 2026-11-20 00:04 UTC ticket.facts
- [542187](https://bounty.xe.network/log/542187) 2026-11-20 00:04 UTC proposal.adopted
- [542186](https://bounty.xe.network/log/542186) 2026-11-20 00:04 UTC ticket.facts
- [536359](https://bounty.xe.network/log/536359) 2026-11-19 23:41 UTC note.added
- [536357](https://bounty.xe.network/log/536357) 2026-11-19 23:41 UTC proposal.created
- [536356](https://bounty.xe.network/log/536356) 2026-11-19 23:41 UTC proposal.created
- [536355](https://bounty.xe.network/log/536355) 2026-11-19 23:41 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-10573) · [JSON](https://bounty.xe.network/v1/tickets/XE-10573) · [markdown](https://bounty.xe.network/XE-10573.md)

### 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:

1. `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 pending `duplicate_of` proposal naming `tid` (plus every open ticket already marked `duplicate_of = tid` with a close pending), private tickets included.
2. `desk/ui.py:757` — `ticket_page` fills `family` under a single gate, `can(p, "read:notes", t)`. Per `desk/authz.py:28`, the matrix grants `read:notes` to token scopes `("read:public", "read:private", "write:notes", "write:proposals")` — so a token whose **only** scope is `read:public` passes. The HTML page is reachable with the bearer token alone.
3. `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)` is `True`, `can_see(reader, priv)` is `False`, yet `pending_duplicates_of` returns 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}` with `Authorization: Bearer <read:public token>` → 200 with the private ticket's id **and title** in the HTML; `GET /v1/tickets/{priv}` and `GET /{priv}` with the same token → 404; anonymous `GET /{canon}` → 200 with no title (anonymous holds no `read: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_targets` sibling 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

**Joseph Denne**team2026-11-20 00:04 UTCdesk

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.
