{"id":"XE-7783","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":827,"title":"[desk] /v1/stats per-day counts include sealed reports","area":"other","claimed_tier":"minor","assessed_tier":null,"verdict":"invalid","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"invalid","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-11T18:47:16.018102+00:00","updated_at":"2026-11-17T09:53:55.558503+00:00","source_created_at":null,"told_at":"2026-11-17T09:53:55.559813+00:00","status_changed_at":"2026-11-17T09:38:18.475252+00:00","url":"https://bounty.xe.network/XE-7783","body":"## Summary\n`GET /v1/stats` (and the public /stats page) counts every bounty ticket in its per-day and per-hour filing bars, including sealed (private) reports. An anonymous observer can therefore tell that a sealed report was filed on a given day (and hour) — timing metadata about reports whose existence is supposed to be hidden.\n\n## Severity\nLow. CVSS does not map cleanly to aggregate timing metadata; treating it as limited confidentiality gives ~2.x at most, and a 0.0 reading is also defensible since no report content is exposed. Claimed tier: minor.\n\n## Evidence (observed live, 2026-11-11 ~18:19 UTC)\n- `GET https://bounty.xe.network/v1/stats` returned `reports: 7664` vs `public.reports: 1309` — the difference is sealed reports counted in the totals.\n- Per-day bars, e.g. `2026-11-11: 3297 reports`, `2026-11-10: 1921`.\n- Cross-check against the public log: 18 `ticket.created` events for IDs absent from the open-board list were all `visibility: public` (closed/patched/support tickets) — no private titles leak via the log, so the stats page is the only place this timing signal appears.\n\n## Root cause\n`desk/services/stats.py`, `collect()`: the `per_day` / `by_hour` (\"reports\") counts include every bounty ticket regardless of visibility. Other stats paths already gate on visibility (`by_tier` uses the assessment-held gate; awards use `award_published`).\n\n## Honest note: possibly by design\nThe stats module's own docstring states this deliberately: \"Every bounty report counts here, sealed or public: the total, the reports per day, the hours they arrive. These carry no ticket's state and nobody's name, and the ticket ids already say how many reports there are. This is the one place the desk counts sealed reports for the public.\" And: \"A sealed report that is moved to the support door leaves the count for the day it was filed on; that much of it shows.\" The ticket IDs already reveal the total count, so the team may consider this acceptable. Filing this so the team can confirm it or close the residual either way.\n\n## Impact\nAggregate filing-day (and hour) timing only. No title, tier, reporter identity, or content is exposed. Worst case: an observer correlates a private filing day with an external event (e.g. a public disclosure elsewhere) and guesses a sealed report exists.\n\n## Remediation\nExclude sealed reports from the public per-day/per-hour counts (or count them in a separate, clearly labelled bucket), mirroring the visibility gating the other stats paths already apply.\n\n## Dedup note\nNo board ticket names stats per-day/heat counts of sealed reports. Neighbours already filed: XE-5977 (NULL reporter dropped from leaderboard/stats), XE-6785 (unsorted bucket mismatch).\n\n## Environment\nDesk HEAD `ab9df7f` (verified 2026-11-11). Live endpoint `https://bounty.xe.network/v1/stats`.\n\n## Payout address (XE)\nxe:952f5eaffd7af01d1c452ea68f2b37ed340ab773ed6ae4fb73c18fb2ef4edc8d","patch_refs":[],"thread":[{"id":10005,"source":"desk","source_ref":"reply:8442","author":"XE desk","team":true,"body":"Thanks for the report. We read it against the code and could not confirm a bug in what it describes.\n\nThis report is closed as invalid. If we have missed something, file a new report that links\nhttps://bounty.xe.network/XE-7783 and says what; it is read like any other.","created_at":"2026-11-17T09:53:55.558503+00:00"}]}