<!-- XE-16423 · Public API publishes the internal tracker link (internal_ref + internal_url) for every non-held ticket · testnet -->
*Markdown view of <https://bounty.xe.network/XE-16423>. The page is the record; this is the same page for reading.*

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

Verdict
:   Invalid

Tier
:   —

Claimed
:   Minor

Area
:   Other

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-22 23:42 UTC

Told
:   2026-11-22 23:42 UTC

### Patches

None linked.

### History

- [770612](https://bounty.xe.network/log/770612) 2026-11-22 23:42 UTC reply.sent
- [770242](https://bounty.xe.network/log/770242) 2026-11-22 23:26 UTC proposal.adopted
- [770067](https://bounty.xe.network/log/770067) 2026-11-22 23:26 UTC proposal.adopted
- [770066](https://bounty.xe.network/log/770066) 2026-11-22 23:26 UTC ticket.status new → closed
- [769265](https://bounty.xe.network/log/769265) 2026-11-22 23:26 UTC proposal.adopted
- [769264](https://bounty.xe.network/log/769264) 2026-11-22 23:26 UTC ticket.facts area
- [769263](https://bounty.xe.network/log/769263) 2026-11-22 23:26 UTC proposal.adopted
- [769262](https://bounty.xe.network/log/769262) 2026-11-22 23:26 UTC ticket.facts
- [766185](https://bounty.xe.network/log/766185) 2026-11-22 23:17 UTC note.added
- [766170](https://bounty.xe.network/log/766170) 2026-11-22 23:17 UTC proposal.created
- [766169](https://bounty.xe.network/log/766169) 2026-11-22 23:17 UTC proposal.created
- [766168](https://bounty.xe.network/log/766168) 2026-11-22 23:17 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-16423) · [JSON](https://bounty.xe.network/v1/tickets/XE-16423) · [markdown](https://bounty.xe.network/XE-16423.md)

### 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 desk**team2026-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.
