bug: Rejected events can end up in the current room state #2616
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2616
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is the bug?
A rejected event can end up in the current room state. After that, every event that uses it as an auth event gets rejected, including our own make_join template, so the user is stuck in the room.
iterative_auth_check never checks whether an event was rejected (see the two TODOs in state_res/mod.rs). Synapse skips rejected events there.
Steps to reproduce
Server name and version
plz.pet 26.9.4 (
dda4bdc)Additional context
Seen in a restricted v12 room. A remote join through plz.pet failed with:
send_join failed: [403 / M_FORBIDDEN] Event has rejected auth event: $DauUuWJTE19VSdh1niXN2MwGg_PYsMCf0Fv616mqn3s
This can probably be patched in our site-local event auth. Readers may also wish to see !2408