Validation for events/rooms in fed requests

When we get a federation request which refers to an event id, make sure that
said event is in the room the caller claims it is in.

(patch supplied by @turt2live)
This commit is contained in:
Richard van der Hoff 2018-08-02 11:53:52 +01:00
parent 6284f579bf
commit 0a65450d04
3 changed files with 64 additions and 1 deletions

View file

@ -425,6 +425,7 @@ class FederationServer(FederationBase):
ret = yield self.handler.on_query_auth(
origin,
event_id,
room_id,
signed_auth,
content.get("rejects", []),
content.get("missing", []),