{"id":"XE-0612","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":244,"title":"Held assessment still published to anonymous readers: page metadata and public log events leak `assessed_tier` and `internal_ref`","area":"other","claimed_tier":"medium","assessed_tier":"minor","verdict":"valid","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"awarded","closed_reason":null,"github_state":"","disclosed_at":null,"award_xe":50000000,"award_approved":true,"paid_ref":"","created_at":"2026-11-05T06:31:03.514383+00:00","updated_at":"2026-11-09T21:02:13.959020+00:00","source_created_at":null,"told_at":"2026-11-08T21:28:35.960776+00:00","status_changed_at":"2026-11-09T21:02:14.231202+00:00","url":"https://bounty.xe.network/XE-0612","body":"# Held assessment still published to anonymous readers: page metadata and public log events leak `assessed_tier` and `internal_ref`\n\n**Programme:** XE Testnet Bug Bounty — Track 1 (Security findings)\n**Asset:** `bounty.xe.network` (the bounty desk, `xeprotocol/desk`)\n**Class:** Information disclosure — metadata leak (programme tier: Medium; Minor also defensible)\n**Researcher:** beluga\n**Date:** 2026-11-05\n**Status:** reproduced on the live deployment; unauthenticated, read-only\n\n---\n\n## Summary\n\nThe desk now withholds the team's assessment of an open bounty ticket until the fix ships:\n`assessed_tier`, `verdict` and `internal_ref` are blanked in the ticket API, the ticket page says\n\"published when the fix ships\", and the OG **image** no longer carries the tier\n(`desk/og.py:289`). The policy is explicit (`docs/BOUNTY_GUIDE.md:42`): \"a confirmed, unfixed bug with\nthe team's tier on it is a ranked entry on a list of what still works against the network, and the desk\ndoes not publish that list.\"\n\nThe hold is incomplete. The same public ticket page still writes the held tier into its\n`<meta name=\"description\">` and `og:description`, and the anonymous event log still carries the held\ninternal tracker reference in `ticket.status` payloads. Any anonymous reader can recover the assessment\nfor the 171 public bounty tickets that are currently in a held status, including cases where the team\nassessed a ticket **below** the reporter's claim.\n\n> Scope note: a related vector — `ticket.award` events publishing the held `tier` — is filed separately\n> and is deliberately not part of this report.\n\n## Affected asset / version\n\n- Live: `https://bounty.xe.network` (desk version `0.1.0`; manifest `git_commit` is `unknown`).\n- Source: `xeprotocol/desk`. The hold was introduced by commit `f323a99` (\"publish the assessment with\n  the fix, not before...\"). The deployed page shows that commit's copy\n  (`assessment_held: \"published when the fix ships\"`) and its OG-image behaviour, so the deployment\n  includes the hold. Exact commit-to-deployment mapping cannot be proven from the outside because the\n  manifest leaves `git_commit` unset; the code paths below match observed behaviour.\n\n## Prerequisites\n\nNone. No account, cookie, token or key. Plain HTTPS GETs to the public pages.\n\n## Steps to reproduce\n\nAll commands are read-only and were run on 2026-11-05 (see `evidence/H1_reproduce.sh`).\n\n1. Open a public bounty ticket in a held status, e.g. `XE-0001` (status `accepted`).\n\n   ```\n   curl -s https://bounty.xe.network/XE-0001\n   ```\n\n2. Observe that the page body withholds the assessment while the page metadata publishes it:\n\n   ```\n   <meta name=\"description\" content=\"High · Accepted\">\n   <meta property=\"og:description\" content=\"High · Accepted\">\n   ...\n   Verdict -> published when the fix ships\n   Tier    -> published when the fix ships\n   Claimed -> Critical\n   ```\n\n3. Confirm server-side that the tier really is being withheld, and that \"High\" is not the reporter's\n   claim:\n\n   ```\n   curl -s https://bounty.xe.network/v1/tickets/XE-0001\n   ```\n   ```json\n   {\"id\":\"XE-0001\",\"status\":\"accepted\",\"claimed_tier\":\"critical\",\n    \"assessed_tier\":null,\"verdict\":null,\"internal_ref\":\"\",\"tracked\":true}\n   ```\n\n4. Control: a ticket past `fixing` publishes the tier consistently everywhere, as intended\n   (`XE-0005`, `patched`): `<meta name=\"description\" content=\"High · Patched\">` and the page shows\n   `High`. The OG image for `XE-0001`, generated by the patched code path, correctly shows only\n   `Accepted` (OCR of `evidence/H1_og_XE-0001.png`).\n\n5. Second vector — `ticket.status` payloads publish the held `internal_ref` in `via`:\n\n   ```\n   curl -s 'https://bounty.xe.network/v1/tickets/XE-0001/log?limit=100'\n   ```\n   ```\n   374 ticket.status via=internal:xeprotocol/core#1062\n   373 ticket.status via=internal:xeprotocol/core#1062\n   372 ticket.facts  via=internal:xeprotocol/core#1062\n   ```\n\n   Event 372's own `changes` are redacted and list `internal_ref` under `held`, yet events 373/374\n   disclose the value of that same held field in `via`.\n\n## Observed result\n\n- 171 of the 239 publicly listed bounty tickets are in the held statuses\n  (`new`, `triaging`, `needs-info`, `accepted`, `fixing`).\n- Sample of six held tickets (public list API + page metadata):\n  - `XE-0001` claimed `critical` → meta `High · Accepted`\n  - `XE-0015` claimed `severe`   → meta `High · Fixing`\n  - `XE-0003` claimed `high`     → meta `Medium · Accepted`\n  - `XE-0017` claimed `high`     → meta `High · Accepted`\n  - `XE-0012`, `XE-0131`: no tier in the meta (assessment not set yet)\n- So the leak publishes real decisions, not just an echo of the report: in at least three sampled\n  tickets it reveals that the team assessed the bug higher or lower than the reporter claimed.\n- `ticket.status` events expose the held `internal_ref` (`internal:xeprotocol/core#1062`; that\n  repository is not publicly reachable — `https://github.com/xeprotocol/core` returns 404).\n\n## Impact\n\nAn unauthenticated reader can enumerate ticket ids (`XE-0001` … sequentially), read each page's\n`og:description`, and reconstruct the team's severity ranking of **unfixed, confirmed** vulnerabilities,\nincluding downgrades relative to the reporter's claim. That is precisely the list the desk states it\ndoes not publish, because it tells an attacker which live issues are highest value and where a fix is\nalready in flight. The log additionally discloses the private internal tracker coordinates of the fix\n(`xeprotocol/core#…`).\n\nDemonstrated impact is confidentiality of the team's triage assessment and internal references. No\nfunds, accounts, keys or user data are exposed, and no write or privilege boundary is crossed; the\nreport does not claim that this leak alone enables exploitation.\n\n## Evidence\n\n`evidence/` (hashes in `H1_sha256sums.txt`):\n\n| File | What it is |\n| --- | --- |\n| `H1_reproduce.sh` | the read-only reproduction script |\n| `H1_run_output.txt` | captured output of the script (UTC timestamps in headers) |\n| `H1_held_XE-0001.html` | held ticket page |\n| `H1_api_XE-0001.json` | API response proving `assessed_tier`/`verdict` are held |\n| `H1_control_XE-0005.html` | non-held control ticket (tier published consistently) |\n| `H1_og_XE-0001.png` | OG image for the held ticket (no tier chip) |\n| `H1_log_XE-0001.json` | ticket log showing `internal_ref` in `via` |\n| `H1_prevalence.txt` | sample size and six-ticket sample |\n\n## Root cause (code)\n\n- `desk/ui.py:615-621` — the ticket page builds its `og` description from `t.assessed_tier`\n  unconditionally. The sibling image path was fixed in the same commit\n  (`desk/og.py:289` checks `assessment_held`), but this path was not:\n  ```python\n  bits = [labels.get(t.status, t.status)]\n  if t.kind == \"bounty\" and t.assessed_tier:\n      bits.insert(0, c.config.tier_label(t.assessed_tier))\n  ```\n- `desk/log.py:269-306` — `public_payload()` redacts `ticket.facts` changes and a few payload keys,\n  but not `ticket.status.via`.\n- `desk/services/tickets.py:586` emits `\"via\": via` (which carries `internal:<ref>`) in `ticket.status`.\n\n## Limitations\n\n- The tier was public on these pages before commit `f323a99`; the leak is a gap in the new hold, not a\n  leak of data that never existed publicly. Impact is therefore metadata-only and time-bounded to the\n  hold window. This is why Medium (the programme's \"metadata leak\") is claimed, with Minor\n  acknowledged as a reasonable triage outcome.\n- No `verdict` leak was found in the public surfaces tested; only `assessed_tier` and `internal_ref`\n  are demonstrated.\n- Deployment commit is not exposed (`git_commit: \"unknown\"`); matching to `f323a99` rests on the\n  deployed copy and the partial fix behaviour.\n- Testing was limited to a handful of GETs per host with delays; no enumeration of all 171 held\n  tickets was performed beyond the six-ticket sample.\n\n## Remediation\n\n1. Gate the ticket page's `og`/meta description the same way the image is gated: use the `shown` value\n   (`team or not assessment_held(t)`) and fall back to `claimed_tier`, or to status only.\n2. Extend `public_payload()`: redact the `internal:` prefix from `ticket.status.via` (keep public\n   provenance such as `github:` and `triage`).\n3. Add regression tests that render a held public ticket anonymously and assert `assessed_tier`,\n   `verdict` and `internal_ref` (and any `internal:` via) never appear in HTML, meta tags, the OG image,\n   the JSON API or `/v1/log`.\n4. Consider setting `git_commit` in the deployed manifest so a report can name the exact build.\n\n## AI-assistance disclosure\n\nThis report was prepared with AI assistance. Every claim above was executed or read against the live\nservice on 2026-11-05; the commands and their outputs are in `evidence/`.\n## Evidence hashes (SHA-256)\n\n```\n72003d9707182de838eb097b6c76770f031a93499f260fadbc75affb731cb259  H1_api_XE-0001.json\n4b94d60ce4475724dcbb61588a580a7c01b1f1785936a1d38eeb36ce8317b41d  H1_control_XE-0005.html\nae698bed5e6427d809589137aed868622e703617e50e61944965972e134c61a8  H1_held_XE-0001.html\nb65bab120be709a64a8895141c2dfc27b2953a1fb0e62074a52feef3f9195620  H1_log_XE-0001.json\nb377d04a10ced6e0a84b32cf64c549b2ff3c9e2c65e92ca8922cd7747b74eca4  H1_og_XE-0001.png\n44a91249db1b27f0b01eb3746d715eebe9d3173955dd06b69106a77345a876c9  H1_prevalence.txt\n37557310b009e48b9a1d3513bae0572bd16a1281c526b499bbb8b3e1864f4183  H1_reproduce.sh\ne827b2373d54acfe59eb61443fa56d1261b4f26bc04608e239ccbbe68d1d9e28  H1_run_output.txt\n```","patch_refs":[{"id":402,"repo":"xeprotocol/desk","kind":"commit","ref":"fb93a8aa284bd145bcad9c30266d1aa5a721cdcf","title":"","url":"https://github.com/xeprotocol/desk/commit/fb93a8aa284bd145bcad9c30266d1aa5a721cdcf","note":"","state":"","author":"","added_by":"token:6","created_at":"2026-11-08T21:12:30.165986+00:00"}],"thread":[{"id":1104,"source":"desk","source_ref":"reply:654","author":"Joseph Denne","team":true,"body":"Thanks for the report. We have confirmed both gaps you describe and they are being handled together with a related fix. We will update you here: https://bounty.xe.network/XE-0612","created_at":"2026-11-08T20:17:41.885067+00:00"},{"id":1293,"source":"desk","source_ref":"reply:832","author":"Joseph Denne","team":true,"body":"Thanks for the report. The fix is on the desk now; this ticket moves to patched, and the assessment and any award follow the fix.","created_at":"2026-11-08T21:28:32.357147+00:00"}]}