Bounty
XE-16423 · Bounty

Public API publishes the internal tracker link (internal_ref + internal_url) for every non-held ticket

Closed · invalid —claimed Minor web filed 2026-11-17 00:58 UTC by xe:af60d8ea

Report

Summary The 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.

What I did

  • 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.
  • GET https://bounty.xe.network/v1/tickets?kind=bounty&status=closed&limit=50: XE-0068 -> #849, https://github.com/xeprotocol/core/issues/849.
  • GET /v1/tickets/{id}/similar for a non-held ticket returns the same two fields (same serializer).
  • 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.

What I expected 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.

Root cause 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)).

Suggested fix Gate internal_ref/internal_url on full in both serializers, the way the other team-only fields are gated.

Duplicate check XE-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.

Claimed tier: Minor.

Thread

XE deskteam2026-11-22 23:42 UTCdesk

Thanks for the report. We read it against the code and could not confirm a bug in what it describes.

This report is closed as invalid. If we have missed something, file a new report that links https://bounty.xe.network/XE-16423 and says what; it is read like any other.