Disclosure does not restore a disclosed ticket's pre-disclosure log history
Report
Severity: Minor
CVSS 3.1 vector: AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N — 0.0. Reasoning: this is a functional-correctness defect in a public read-only log path, not a security vulnerability. No data is disclosed to unauthorized parties (the hidden events contain nothing beyond what the public ticket already shows — a born-private ticket's ticket.created event carries an empty title, and status-event reasons are already held from public payloads), no stored data is modified, and nothing becomes unavailable. The impact is that the public History of every disclosed ticket starts mid-flight with no creation record, contradicting the desk's own stated rule.
Summary: When a ticket that was private is disclosed, the desk promises its history "comes back" (served_public, desk/log.py:185-189: "a ticket's history goes with it when it is made private, and comes back when it is disclosed"). It does not. Event public flags are frozen at write time and are part of the event hash, and _unseal flips no flags, so every event written while the ticket was private stays hidden forever. Of 178 tickets with disclosed_at set, a systematic 20-ticket sample shows 20/20 with no ticket.created event in the public log, a status chain that begins mid-flight, and no ticket.sealed marker — while 31/31 sampled non-disclosed tickets reconcile exactly.
Steps to reproduce:
- Open https://bounty.xe.network/XE-0116 (public, awarded) and read its History section: the oldest entry is #30053 ticket.disclosed, 2026-11-08 11:32 UTC. There is no creation record and no new → triaging → accepted → fixing → patched history.
- curl -s "https://bounty.xe.network/v1/tickets/XE-0116/log?limit=500" — 6 events, all with index ≥ 30053; no ticket.created, no ticket.sealed; the two ticket.status events are patched → disclosed (#30054) and disclosed → awarded (#30098).
- Compare with any non-disclosed public ticket, e.g. XE-12717: its log opens with ticket.created (#197589) with "status": "new", and its status chain runs continuously from new.
- Repeat for any other disclosed ticket (e.g. XE-0200, XE-0300, XE-0455): same shape — log starts at ticket.disclosed, no created event.
PoC evidence (commands/outputs): raw responses saved in phase83/t2-ticket-.bin, t2-log-.bin, t2b-, t2c- (sample summary t2c-summary.json: 20/20 disclosed tickets missing created, 0/20 with ticket.sealed); HTML page t2-html-XE-0116.bin (History lists 6 events from #30053); control t2-html-XE-12717.bin (shows ticket.created); global log query /v1/log?kind=ticket.sealed&limit=1000 returns {"events": [], "offset": 0} (saved t2-sealed.bin); log head index 197,717 at probe time.
Mitigation: Decide the intended rule and implement it in one place. If history is meant to come back on disclosure (as served_public states), the read path must serve the pre-disclosure events of a ticket that is public now — e.g. in _public_rows/served_public, treat non-admin events of a currently-public ticket as servable when their payload contains nothing sealed (creation titles are already blanked for private tickets at write time; status reasons are already held by public_payload), rather than trusting only the frozen stored flag. Note the stored flag cannot simply be rewritten: it is hashed into each event (event_hash(..., public=...)), so a write-time flag flip would break the chain. If instead pre-disclosure history is meant to stay sealed, say so in the served_public docstring and render a marker on the public History (the ticket.sealed event was designed for exactly this, but no ticket ever got one).
Dup-check evidence: live q searches for "disclosed log history", "ticket.disclosed history", "public log missing created", "sealed history disclosure", "log history comes back", "disclosure log incomplete", "unseal log", "history gone private" — all total 0; /similar on XE-0116 and XE-0200 shows no log-history report. Adjacent filed reports XE-0350 (sealing does not seal history while private) and XE-0410 (sealed marker written non-public) cover the sealing direction only, not post-disclosure restoration.
Thread
Thanks. This is the same finding as an earlier report that is not public, 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-12723 and says what differs; it is read like any other.