{"id":"XE-13014","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2401,"title":"api: GET /reputation copies + sorts the whole reputation map per request — ?limit= does not bound the work","area":"node-api","claimed_tier":"minor","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":true,"internal_ref":"#1030","internal_url":"https://github.com/xeprotocol/core/issues/1030","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T15:20:15.940179+00:00","updated_at":"2026-11-20T19:46:11.703116+00:00","source_created_at":null,"told_at":"2026-11-20T19:46:11.715171+00:00","status_changed_at":"2026-11-20T19:46:11.708487+00:00","url":"https://bounty.xe.network/XE-13014","body":"### Summary\n`GET /reputation` copies + sorts the whole reputation map per request:\n`api/handler.go:823` → `core/reputation.go:241` (`paginateMap`) — every request\ncopies the entire reputation map and sorts all keys before slicing the page;\n`?limit=` does not bound the work.\n\n### PoC\nLocal PoC (attached, `TestPoCReputationLimitDoesNotBoundWork`): 20,000 entries,\n`?limit=1` → 8.3 ms of copy/sort per request, unauthenticated; the map grows\nmonotonically with distinct lease participants.\n\n### Why this is not a duplicate\nNo per-endpoint filing exists for /reputation. It is the same family as the\n/conflicts full-materialisation defect but a distinct endpoint/read path, filed\nseparately per the desk's per-endpoint convention; a possibly lower assessment\nis expected given /conflicts is the stronger sibling.","patch_refs":[],"thread":[{"id":15641,"source":"desk","source_ref":"reply:13532","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-13014 and says what differs; it is read like any other.","created_at":"2026-11-20T19:46:11.703116+00:00"}]}