hermes-agent/locales
claudlos c4f278c021 security(gateway): scope /resume and /sessions to the caller's origin (IDOR)
/resume resolved a persisted session id/title with no ownership check on any
adapter except Matrix, so an authorized caller could bind their gateway session
to another user's/room's transcript and read it. The titled-session listing and
numeric index were also globally enumerable on non-Matrix platforms, exposing
the ids and previews needed to target the IDOR.

Generalize the Matrix-only room guard to an adapter-agnostic ownership check
(live origin when active; DB row source + user_id for persisted-only sessions,
the only fields available), applied to the direct-id/title path and the
listing/numeric paths on every platform. An explicit admin --all override is
honored. The Matrix path is preserved unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 05:38:03 -07:00
..
af.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
de.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
en.yaml security(gateway): scope /resume and /sessions to the caller's origin (IDOR) 2026-07-01 05:38:03 -07:00
es.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
fr.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
ga.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
hu.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
it.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
ja.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
ko.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
pt.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
ru.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
tr.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
uk.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
zh-hant.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00
zh.yaml feat(gateway): show per-category context breakdown in /usage (#55204) 2026-06-29 20:42:19 -07:00