Tier filter in desk ticket list omits unassessed tickets the desk displays with a claimed tier
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 filter predicate, not a security vulnerability. No data is disclosed to unauthorized parties (the tickets and their claimed tiers are public and visible in unfiltered views), no stored data is modified, and nothing becomes unavailable. The impact is that tier-filtered views — and the severity ordering, which ranks on the same column — silently omit tickets. Scored as low integrity impact it would read 5.3, but that overstates a presentation-layer inconsistency with no data corruption; Minor is the honest assessment.
Summary: The desk ticket list's tier filter is documented (and named) as filtering on the shown tier — the assessment once published, the reporter's claim while it is held or absent (shown_tier(), desk/services/tickets.py:368-372). The SQL spelling of that rule, _shown_tier_col() (tickets.py:375-376), returns assessed_tier for every unheld ticket — including the 195 unheld tickets that have NO assessed tier but DO have a claimed tier. Those tickets match no tier value, so ?tier=<their claimed tier> silently drops them, even though the desk's own list page (templates/list.html:81) and detail page (templates/ticket.html:12) render them with that claimed tier ("claimed High"). 195 of 1,967 bounty tickets (~10%) are affected, including XE-0131, a claimed-critical report closed as duplicate.
Steps to reproduce:
- GET https://bounty.xe.network/v1/tickets/XE-0036 → status: closed, closed_reason: stale, claimed_tier: high, assessed_tier: null.
- GET https://bounty.xe.network/v1/tickets?status=all&tier=high&limit=500 → total 163; XE-0036 is not among them (same for XE-0131 under ?tier=critical, total 2: XE-0001, XE-0012 only).
- Open https://bounty.xe.network/XE-0036 in a browser → the page shows "claimed High".
- Enumerate all tickets (?status=all&limit=500, offsets 0/500/1000/1500): shown-tier counts (assessed if set else claimed) sum to 1645; the six ?tier= totals sum to 1450. The 195 gap is exactly the unheld, unassessed, claimed-tier tickets (critical 1, severe 1, high 64, medium 76, minor 53).
PoC evidence: live API responses saved as raw bytes in phase81 (t2-single-XE-0036.bin, t2-tier-high-full.bin (163 ids, XE-0036/XE-0131 absent), t2-tier-critical-full.bin (XE-0001, XE-0012 only), t2-html-XE-0036.bin (renders "claimed High"), t1-all-.bin (full 1967-ticket enumeration), t2-tier-.bin (per-tier filter totals). Code: desk/services/tickets.py:368-376 (shown_tier vs _shown_tier_col), :434-435 (filter), :482 (severity sort ranks on the same column); desk/templates/list.html:81, desk/templates/ticket.html:12 (display fallback to claimed tier).
Mitigation: make the SQL spelling match the row spelling — fall back to the claimed tier when there is no assessed tier: _shown_tier_col() should be case((held(), Ticket.claimed_tier), else=func.coalesce(Ticket.assessed_tier, Ticket.claimed_tier)). The severity sort inherits the fix automatically since it ranks on the same column. Per the desk fix doctrine, the test should assert the rule (filter returns every ticket whose displayed tier matches, across held/unheld/assessed/unassessed), not just the reported examples.
Dup-check evidence: live desk search 2026-11-14: q="tier filter" → 0 tickets; q="shown tier" → 0; q="claimed tier" → 129, closest XE-1932 (case-sensitive claimed_tier matching — different bug); q="unassessed" → 12, all unrelated; /v1/tickets/XE-1932/similar → 10 unrelated; xe-reported-index.md has no entry on this divergence; Phase 40 validated only that returned tickets carry the requested tier, never the completeness cross-check.
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-12717 and says what differs; it is read like any other.