<!-- XE-13014 · api: GET /reputation copies + sorts the whole reputation map per request — ?limit= does not bound the work · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13014>. The page is the record; this is the same page for reading.*

XE-13014 · Bounty

# api: GET /reputation copies \+ sorts the whole reputation map per request — ?limit\= does not bound the work

Closed · duplicate
—claimed Minor
web
filed 2026-11-14 15:20 UTC
by xe:352fe8fc

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Minor

Area
:   Node / API

Duplicate of
:   —

Tracked
:   internally

Updated
:   2026-11-20 19:46 UTC

Told
:   2026-11-20 19:46 UTC

### Patches

None linked.

### History

- [627167](https://bounty.xe.network/log/627167) 2026-11-20 19:46 UTC proposal.adopted
- [627166](https://bounty.xe.network/log/627166) 2026-11-20 19:46 UTC reply.sent
- [627165](https://bounty.xe.network/log/627165) 2026-11-20 19:46 UTC ticket.status new → closed
- [624646](https://bounty.xe.network/log/624646) 2026-11-20 19:45 UTC proposal.adopted
- [624643](https://bounty.xe.network/log/624643) 2026-11-20 19:45 UTC proposal.adopted
- [624642](https://bounty.xe.network/log/624642) 2026-11-20 19:45 UTC ticket.facts
- [624639](https://bounty.xe.network/log/624639) 2026-11-20 19:45 UTC proposal.adopted
- [624638](https://bounty.xe.network/log/624638) 2026-11-20 19:45 UTC ticket.facts
- [624637](https://bounty.xe.network/log/624637) 2026-11-20 19:45 UTC proposal.adopted
- [624636](https://bounty.xe.network/log/624636) 2026-11-20 19:45 UTC ticket.facts
- [606486](https://bounty.xe.network/log/606486) 2026-11-20 14:44 UTC note.added
- [606485](https://bounty.xe.network/log/606485) 2026-11-20 14:44 UTC proposal.created

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

### Report

### Summary

`GET /reputation` copies \+ sorts the whole reputation map per request:
`api/handler.go:823` → `core/reputation.go:241` (`paginateMap`) — every request
copies the entire reputation map and sorts all keys before slicing the page;
`?limit=` does not bound the work.

### PoC

Local PoC (attached, `TestPoCReputationLimitDoesNotBoundWork`): 20,000 entries,
`?limit=1` → 8.3 ms of copy/sort per request, unauthenticated; the map grows
monotonically with distinct lease participants.

### Why this is not a duplicate

No per-endpoint filing exists for /reputation. It is the same family as the
/conflicts full-materialisation defect but a distinct endpoint/read path, filed
separately per the desk's per-endpoint convention; a possibly lower assessment
is expected given /conflicts is the stronger sibling.

### Thread

**Joseph Denne**team2026-11-20 19:46 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-13014 and says what differs; it is read like any other.
