#2040 MUC mediated invites and declines relay arbitrary message children

Reporter MattJ
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Milestone-13.0
  • Status-Fixed
  • Priority-High
  • Type-Defect
  • Security
  1. MattJ on

    **Description** In the mediated invite and mediated decline flows described in XEP-0045, the MUC is responsible for sending the invitation stanza and the decline stanza to the invitee/inviter respectively. In both cases Prosody relayed the full original stanza with some metadata added. However, this caused the MUC to effectively act as a relay for fairly arbitrary message stanzas, and in a public MUC access to mediated invites is unrestricted. As mediated invites/declines originate from the MUC's own bare JID, this could enable spoofing certain stanzas which could confuse receiving clients. **Affected configurations** Prosody prior to 13.0.8 is affected, if a MUC component is enabled. It is especially vulnerable to abuse if it hosts public channels. **Mitigation** The best mitigation is to upgrade to Prosody 13.0.8. Alternatively, only host members-only channels for trusted users. **Fixes** Prosody now generates a clean stanza with only the necessary metadata in it, it does not relay the original stanza from the sender of the invite/decline. Commit: 55cca0f03076

  2. MattJ on

    Changes
    • tags Hidden

New comment

Not published. Used for spam prevention and optional update notifications.