{"id":"XE-16423","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2899,"title":"Public API publishes the internal tracker link (internal_ref + internal_url) for every non-held ticket","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-17T00:58:57.670095+00:00","updated_at":"2026-11-22T23:42:11.180998+00:00","source_created_at":null,"told_at":"2026-11-22T23:42:11.182332+00:00","status_changed_at":"2026-11-22T23:26:16.619673+00:00","url":"https://bounty.xe.network/XE-16423","body":"Summary\nThe public ticket API returns the internal engineering-tracker link (`internal_ref` and `internal_url`) for every ticket whose assessment is no longer held — to anonymous callers with no session at all. The desk's own rule is that the internal tracker link is team-only: the HTML list and ticket pages show non-team readers only a \"Tracked: internally\" pill, the signed log scrubs `internal_ref` from public `ticket.facts` payloads, and the list API refuses `has_internal` to public callers. The two API serializers miss the gate.\n\nWhat I did\n- `GET https://bounty.xe.network/v1/tickets?kind=bounty&status=awarded&limit=50` with no credentials. 20 of the 50 rows carry a non-empty `internal_ref` and `internal_url`, e.g. XE-0006 -> `#1028`, `https://github.com/xeprotocol/core/issues/1028`; XE-0021 -> `#954`; XE-0023 -> `#1053`.\n- `GET https://bounty.xe.network/v1/tickets?kind=bounty&status=closed&limit=50`: XE-0068 -> `#849`, `https://github.com/xeprotocol/core/issues/849`.\n- `GET /v1/tickets/{id}/similar` for a non-held ticket returns the same two fields (same serializer).\n- The linked tracker is the private `xeprotocol/core` repo: the issue URLs return 404 for an anonymous visitor (control: a public `xeprotocol/xe` issue returns 200), so no internal content leaks — this is linkage/numbering disclosure only.\n\nWhat I expected\n`internal_ref`/`internal_url` to be empty for anonymous callers, as they are on the HTML pages and in the public log, and as `has_internal` already is for public list queries.\n\nRoot cause\n`desk/services/tickets.py`: `to_dict` gates the two fields on `shown = full or not assessment_held(t)`, and `similar_dict` repeats the same gate. `assessment_held` is only true for statuses new/triaging/needs-info/accepted/fixing, so for any patched/disclosed/awarded/paid/closed ticket an anonymous reader gets the internal number and its direct URL. The same file already gates `mainnet_gate`/`effort_eng`/`assignee_id`/`draft` on `full` (`sees_assessment(p)`).\n\nSuggested fix\nGate `internal_ref`/`internal_url` on `full` in both serializers, the way the other team-only fields are gated.\n\nDuplicate check\nXE-0612 covers the log `via` scrub (and the OG tier label), not the API serializers; no XE- reference exists at `to_dict`/`similar_dict` for this gate. I checked the public board for the same root cause before filing.\n\nClaimed tier: Minor.","patch_refs":[],"thread":[{"id":18933,"source":"desk","source_ref":"reply:16610","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-16423 and says what; it is read like any other.","created_at":"2026-11-22T23:42:11.180998+00:00"}]}