This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
prune_event
strips keys needed for authentication from events. #1831
Open
Description
It looks like we've been using keys in the event authentication checks without making sure they won't be removed when an event is redacted:
third_party_invite
JSON keys in invitem.room.member
event content.(fixed by msc2716, Implement MSC2176: Updated redaction rules #8984)redacts
JSON keys inm.room.redaction
events(fixed by msc2716, Implement MSC2176: Updated redaction rules #8984)m.federate
JSON keys inm.room.create
events
https://github.com/matrix-org/synapse/blob/v0.18.7/synapse/events/utils.py#L41-L57
https://github.com/matrix-org/synapse/blob/v0.18.7/synapse/events/utils.py#L69
https://github.com/matrix-org/synapse/blob/v0.18.7/synapse/events/utils.py#L71
Unfortunately fixing this will break the event signature checks for those events.