#2029 Server-to-server policy bypass

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

    **Description** Prosody checked whether server-to-server communication was enabled only for the host named in the stream header. After a remote server authenticated to a permitted host, it could deliver stanzas to another local virtual host on the same stream even when that second host had mod_s2s disabled with modules_disabled = {"s2s"}. **Affected configurations** Multi-host deployments that disable s2s for only some virtual hosts or components are affected. A single-host deployment that disables s2s everywhere is not affected by the cross-host delivery issue. **Mitigation** Operators who cannot upgrade immediately should avoid relying on per-host mod_s2s disablement for security boundaries. If a host must not accept server-to-server traffic, isolate it on a separate Prosody instance or use a module such as mod_firewall to reject traffic. **Fixes** Stanzas and dialback results addressed to a host without mod_s2s now close the stream with policy-violation. Commits: 33d9a7d2cbc4 (mod_dialback), ff9472b07769 (stanza_router). **Attribution** The issue was identified in an external security review.

  2. MattJ on

    Changes
    • tags Hidden

New comment

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