mirror of
https://github.com/element-hq/synapse.git
synced 2026-09-26 22:29:03 +00:00
Fixes: https://github.com/element-hq/synapse/security/advisories/GHSA-qcjr-46gf-7f4r Fixes: https://github.com/matrix-org/internal-config/issues/1714 The `/event_auth` endpoint could be tricked to give you the auth chain for an event in a foreign room, because it trusted the requester to provide the correct `room_id` for the event. Now we pass the `room_id` through all the way to `get_event`'s `check_room_id`, which (correctly IMO) treats mismatches as unknown events (seems correct as it prevents divulging what events we know about). The `test_event_auth_wrong_room_returns_404` test failed before the fix. ----- Reviewed-on: https://github.com/element-hq/synapse-private/pull/147