Bounty
XE-13672 · Bounty

DAO GET /v1/members/sessions is the unmetered sibling: full session payload with no per-IP limit

Closed · duplicate —claimed Minor web filed 2026-11-15 03:12 UTC by xe:2a2e6147

Report

Summary

One members endpoint in the DAO service escaped the metering its siblings got. GET /v1/members/sessions (dao, members.py:65-68) returns the full session list — every session serialised in full, including ops and approvals — with no Request object taken and no enforce_ip call: no per-IP rate limit at all. Its sibling GET /v1/members/sessions/{sid} is metered. The list route makes no node call, so the cost it exposes is unbounded-rate database + serialisation work on the heaviest payload in the members API — precisely the shape the metering pass was meant to close, on the one route it missed.

Reproduction — code-confirmed at dao HEAD 2efbfee

members.py:65-68   GET /v1/members/sessions       no Request param, no enforce_ip,
                                                  returns full sessions.to_dict (incl. ops/approvals)
members.py (sibling) GET /v1/members/sessions/{sid}   metered

Honest limits: this is a code-level proof. The live DAO host was attempted once, gently, for confirmation and was unreachable (HTTP 000), and was not retried; the route, its payload and the missing metering are all directly readable in the source above.

Relation to XE-6985 and XE-0652 — stated up front

  • XE-6985 was read in full: it names /v1/log and /v1/legal/resolutions as its unmetered examples. It does not name this route. This report is the missed sibling of that ticket's class, filed separately because the route is not in it.
  • XE-0652 (awarded) once enumerated GET /sessions in a gate matrix under an argument that has since been fixed/recharacterised; it did not claim the missing per-IP metering on this route. If triage judges either ticket sufficient coverage, this folds — the specific claim here (no enforce_ip on the full-payload list route, at current HEAD) is not made in either.

Suggested fix

Take Request and call enforce_ip on the list route exactly as the {sid} sibling does; consider trimming the list payload (ops/approvals belong on the detail route).

References

  • dao repo, members.py:65-68 (list route, unmetered) vs the metered {sid} route. dao HEAD 2efbfee.
  • XE-6985 full text (names only /v1/log, /v1/legal/resolutions); XE-0652 (historical enumeration, different argument).

Thread

Joseph Denneteam2026-11-15 10:27 UTCdesk

Thanks. This is the same finding as https://bounty.xe.network/XE-6119, 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-13672 and says what differs; it is read like any other.