-
-
Notifications
You must be signed in to change notification settings - Fork 120
Description
Hello,
we reviewed our homeserver and reverse proxy logs and discovered the following issues that may effect integrity of matrix.
At first we figured out that the element client calls the endpoint preview_url
with GET method for encrypted rooms even if the endpoint was disabled on synapse server. This happens every time a user sends a message that only contains a url.
We reported that behavior as an issue under matrix-org/synapse#11591.
While discussing this @squahtx told that the the synapse homeserver replaces (redact) sensitive data like access_token
and clients_access
within the logging string.
In our opinion, redacting these events in homeserver isn't the solution. Sensitive data like access_token, client_access or urls shouldn't have to send with GET, because this will expose potential sensible data to the synapse server, the reverse proxy and every services that parse these logs.
First thoughts:
- change GET /_matrix/media/v3/preview_url to POST
- promote activated features to clients (aka smtp ehlo)
- remove endpoint preview_url endpoint
- disable support of sending access_token via get
best regards