This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
/createRoom
: "UnicodeEncodeError" and Internal server error when having specific garbage in id_access_token
of a 3pid invite
#13512
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
When sending some unicode characters in a 3pid invite on
/_matrix/client/v3/createRoom
the server returns an "Internal server error".Such an invalid invite can be:
{"invite_3pid":[{"address":"localhost","id_access_token":"c��","id_server":"","medium":""}],"name":""}
Confusing enough, the room actually will be created. However, no invite is issued.
Steps to reproduce
Homeserver
localhost
Synapse Version
{"server_version":"1.64.0","python_version":"3.9.13"}
Installation Method
Docker (matrixdotorg/synapse)
Platform
Kubernetes with postgres and the official docker image
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: