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

Don't leak the real JIDs of participants when using mentions in semi-anonymous rooms. #1451

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lumi-me-not
Copy link

Converse is leaking real JIDs of participants in semi-anonymous MUCs when a moderator mentions anyone, it also will sometimes not include a "uri" attribute, even though the XEP states that this is required.

I've fixed both of these issues, though I'm not sure if this is a good way of doing so.

lumi added 2 commits February 21, 2019 13:46
…or in a semi-anonymous or anonymous MUC.

Always add the "uri" attribute, as it is required according to the XEP.
@jcbrand
Copy link
Member

jcbrand commented Mar 23, 2019

Thank you for this PR @lumi-me-not

I wrote to the standards list about this PR.
https://mail.jabber.org/pipermail/standards/2019-March/035856.html

@iNPUTmice prefers to use real JIDs as far as possible, because nicknames aren't stable in MUCs. Anybody can take a nickname and thereby impersonate other users, or receive notifications for messages that were meant for someone else who used that nickname before them.

There is a workarounds for this, for example registering nicknames with MUCs, which @mwild1 and I worked on in the context of Prosody and Converse, see auto_register_muc_nickname, but it's not widely deployed.

I think in light of all this, this change should be made configurable, with the current behavior being the default. The configuration setting can be called something like muc_references' with the default value being jidand the other option beingnickname`.

(On a different, but related note, we should add validation for configuration settings to check that valid values are supplied).

Setting auto_register_muc_nickname to true and muc_references to nickname would solve the problem of unstable MUC nicknames (if the XMPP server supports MUC nickname registrations).

@mwild1
Copy link

mwild1 commented Mar 23, 2019

Wondering aloud if we could just add stable ids to MUC participants...

@jcbrand
Copy link
Member

jcbrand commented Nov 8, 2022

Wondering aloud if we could just add stable ids to MUC participants...

It's probably worthwhile revisiting this MR now that we have stable MUC participant ids via XEP-0421 (which Converse already supports)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants