Skip to content

OF-2163: Prevent unexpected stanza modifications to leak information #1770

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

Conversation

guusdk
Copy link
Member

@guusdk guusdk commented Dec 17, 2020

Delivering a stanza to a MUC room occupant changes the addressing of the stanza (the room JID is replaced by the real JID). It is often undesirable that this change is applied to the original stanza (that can be processed further), as such changes can leak the privacy-sensitive real address of the recipient.

This commit creates defensive copies of the stanza that is being sent, to prevent leaking the real address of the recipient.

Delivering a stanza to a MUC room occupant changes the addressing of the stanza (the room JID is replaced by the real JID). It is often undesirable that this change is applied to the original stanza (that can be processed further), as such changes can leak the privacy-sensitive real address of the recipient.

This commit creates defensive copies of the stanza that is being sent, to prevent leaking the real address of the recipient.
@guusdk
Copy link
Member Author

guusdk commented Dec 17, 2020

For four messages exchanged in one MUC room, between two people, this seems to result in sensible output:

Screenshot from 2020-12-17 14-37-34

Note that this was using the Monitoring plugin as being developed in igniterealtime/openfire-monitoring-plugin#144

@Fishbowler
Copy link
Member

Tested with MUC, DMs and 1-2-1s. LGTM 👍

@Fishbowler Fishbowler merged commit 931ed89 into igniterealtime:master Dec 17, 2020
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.

2 participants