This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Event auth allows booleans as power levels #14940
Labels
A-Spec-Compliance
places where synapse does not conform to the spec
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
Synapse validates power levels in event authorization using
isinstance(v, int)
. However, booleans in Python are also instances ofint
. Therefore, Synapse allows booleans as power levels, even though v10 rooms should only allow ints.Steps to reproduce
true
orfalse
) where there should be an integerHomeserver
maunium.net → matrix.org
Synapse Version
1.76.0rc2
Anything else that would be useful to know?
Power level event received and accepted by matrix.org:
The text was updated successfully, but these errors were encountered: