-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
synapse includes profile data in invite
events, bypassing require_auth_for_profile_requests
#6809
Comments
would you be able to figure out where riot-web is getting this info from? It's going to be hard to fix from the synapse side without more information. |
As per the spec, Riot is getting this info from the member invite event that Synapse generates upon receiving a The problem is that Synapse always populates the This happens in
This means that the impact of A more privacy-conscious approach would be to not populate the Relying on the |
right, thanks. |
invite
events, bypassing require_auth_for_profile_requests
invite
events, bypassing require_auth_for_profile_requestsinvite
events, bypassing require_auth_for_profile_requests
This seems to be mitigated by the addition of the |
let's close it. |
Description
Even when setting
require_auth_for_profile_requests
to true, when a user is invited to a room by someone they don't yet share a room with, clients (or at least Riot Web) will display the profile info (name & avatar) of the invitee to the inviter, even before the invite is accepted.However, if the inviter attempts to fetch invitee's profile info via the API (
r0/profile/<mxid>/...
),M_FORBIDDEN
is returned as expected.I haven't yet tested this with other clients, though. Maybe it is specific to Riot Web.
Steps to reproduce
require_auth_for_profile_requests
to true in homeserver.yamlActual results (in Riot Web): account B will see account A's name and/or avatar before A accepts the invite. For Riot Web, this info appears in the right sidebar of users and as a status message of "B invited <A's display name>".
Expected results: The displayed name & avatar for account A should be empty / a placeholder, as if account A did not set a custom name or avatar. Only if A accepts the invite should their name/avatar be shown.
Version information
The text was updated successfully, but these errors were encountered: