This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
/createRoom
: "ValueError: A string literal cannot contain NUL (0x00) characters." when \u0000 is sent in "room_alias_name"
#13510
Labels
A-Create-Room
A-Validation
500 (mostly) errors due to lack of event/parameter validation
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Milestone
Description
/_matrix/client/v3/createRoom
is crashing with an internal server error when it contains NUL characters.The request (minimal working example) was made with this content:
This does not seem to actually break anything apart from the crash error and
{"errcode":"M_UNKNOWN","error":"Internal server error"}
as the response.Steps to reproduce
/_matrix/client/v3/createRoom
with{"name":"a","room_alias_name":"\u0000","visibility":"public","is_direct":false,"topic":"null_in_room"}
as the contentHomeserver
localhost
Synapse Version
{"server_version":"1.64.0","python_version":"3.9.13"}
Installation Method
Docker (matrixdotorg/synapse)
Platform
Kubernetes with official docker image and redis and postgres
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: