Skip to content
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.

Synapse doesn't accept m.room.power_level events with string values even though it sends them #12538

@t3chguy

Description

@t3chguy

Description

Synapse will happily send clients malformed m.room.power_level events with string power levels yet will not accept them, causing stuck PLs in a room where the client shouldn't be expected to have to sanitise the event which it was sent.

Steps to reproduce

  • Have a room with a power level event giving someone PL "0"
  • Try to update the power level of someone else

More context element-hq/element-web#19751 (comment)
Related #12537 (same cause)

Version information

  • Homeserver: matrix.org

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions