mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 01:02:10 -04:00
Improve validation for send_{join,leave,knock}
(#10225)
The idea here is to stop people sending things that aren't joins/leaves/knocks through these endpoints: previously you could send anything you liked through them. I wasn't able to find any security holes from doing so, but it doesn't sound like a good thing.
This commit is contained in:
parent
bd4919fb72
commit
6e8fb42be7
6 changed files with 136 additions and 187 deletions
|
@ -251,7 +251,7 @@ class FederationTestCase(unittest.HomeserverTestCase):
|
|||
join_event.signatures[other_server] = {"x": "y"}
|
||||
with LoggingContext("send_join"):
|
||||
d = run_in_background(
|
||||
self.handler.on_send_join_request, other_server, join_event
|
||||
self.handler.on_send_membership_event, other_server, join_event
|
||||
)
|
||||
self.get_success(d)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue