Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invite failed to warn me that the invited user might not exist #22219

Open
DMRobertson opened this issue May 16, 2022 · 4 comments
Open

Invite failed to warn me that the invited user might not exist #22219

DMRobertson opened this issue May 16, 2022 · 4 comments
Labels
A-Invite O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@DMRobertson
Copy link

DMRobertson commented May 16, 2022

Moved from matrix-org/synapse#12735. The original reporter was @felixx9.

Steps to reproduce

  • User A wants to invite User B, but accidentially invites User C (which does not have an account / does not exist yet)
  • User A does write a lot of confidential stuff into the newly created room
  • User C (which might be a completely different person than User B) creates his account
  • he sees the invitation & accepts it

Outcome

What did you expect?

  • I would expect, that
    • I see this warning (but I didn't): Invites should check more thoroughly if a user exists #7137 within Client (e.g. Element)._
    • einladung-ohne-user
    • the room is encrypted
    • if not possible due to missing public key (?) of User C: Do not create the room
    • if created an encrypted: User C is not allowed to join, (unless invited again after account creation.)

What happened instead?

  • User C can read the whole history, which was meant for User B
  • the room is not encrpyted (even though the servers default setting says: encrypt all rooms)

Operating system

No response

Application version

Element Desktop 1.10.8

How did you install the app?

No response

Homeserver

matrix.yatrix.org, Synapse > 1.58.1

Will you send logs?

No

@DMRobertson
Copy link
Author

In matrix-org/synapse#12735 (comment) I responded with:

  • User A wants to invite User B, but accidentally invites User C (which does not have an account / does not exist yet)

This isn't a mistake that Matrix-the-protocol can prevent. Imagine user A had emailed a bunch of secret documents to user C --- there's no way to take those emails back once they've been sent.

However: the fact that you didn't see the warning sounds like a problem in Element Desktop.

the room is not encrpyted (even though the servers default setting says: encrypt all rooms)

Again, this sounds like it might be a bug in the client. Clients are responsible for sending an m.room.encrypted state event, which marks the room as encrypted (telling other clients which encryption algorithm to use).

I'm going to move this issue to the Element-web repo for them to investigate more.

@t3chguy
Copy link
Member

t3chguy commented May 16, 2022

Again, this sounds like it might be a bug in the client. Clients are responsible for sending an m.room.encrypted state event, which marks the room as encrypted (telling other clients which encryption algorithm to use).

@DMRobertson not if the Synapse config option encryption_enabled_by_default_for_room_type is in play

(even though the servers default setting says: encrypt all rooms)

@DMRobertson
Copy link
Author

@DMRobertson not if the Synapse config option encryption_enabled_by_default_for_room_type is in play

That's fair. Shall we repurpose this issue for the report of the missing warning? I'll reopen the synapse one for the report of that config option not applying.

@DMRobertson DMRobertson changed the title Element web doesn't warn that a user doesn't exist when inviting them, and doesn't set m.room.encryption when making a room. Room was created withouot m.room.encryption set, despite the config saying otherwise May 16, 2022
@robintown
Copy link
Member

robintown commented May 16, 2022

The lack of encryption is expected behavior whenever we encounter a user without encryption keys. There is currently a large red warning at the top of the timeline when the room is unexpectedly unencrypted:

Screenshot 2022-05-16 at 10-08-38 Element toashuaq

However, the rest of the report still holds. I'm going to repurpose this issue (again, sorry 🙂) to track the lack of warning that the user might not exist, which looks like a possible regression.

@robintown robintown changed the title Room was created withouot m.room.encryption set, despite the config saying otherwise Invite failed to warn me that the invited user might not exist May 16, 2022
@robintown robintown added X-Regression S-Minor Impairs non-critical functionality or suitable workarounds exist A-Invite O-Uncommon Most users are unlikely to come across this or unexpected workflow labels May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Invite O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

No branches or pull requests

4 participants