Bounty
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

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 Denneteam2026-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.