#2033 Configured stanza child-element limit is never enabled, and byte limit updates clear it
Reporter
MattJ
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Milestone-13.0
Status-Fixed
Priority-High
Type-Defect
Security
MattJ
on
**Description**
Due to coding errors, c2s_max_child_elements and s2s_max_child_elements (added in 13.0.5) failed to limit streams as intended. Other mitigations added in that release masked the failure of this code during final testing.
**Affected configurations**
All configurations are affected. The issue was introduced in Prosody 13.0.5, but earlier versions are vulnerable to the problems the code was intended to fix.
**Mitigation**
It is recommended to upgrade to Prosody 13.0.8.
**Fixes**
The code has been corrected to initialize the stream handlers with the correct child element limits, and to preserve the child elements limits post-authentication.
Commits: 8359d7507c21 (fix initialization), 34ba66db7c81 (preserve limit after authentication), 05edaab108ee (correct handling of abort conditions)
**Attribution**
This issue was reported in an external security review.
**Description** Due to coding errors, c2s_max_child_elements and s2s_max_child_elements (added in 13.0.5) failed to limit streams as intended. Other mitigations added in that release masked the failure of this code during final testing. **Affected configurations** All configurations are affected. The issue was introduced in Prosody 13.0.5, but earlier versions are vulnerable to the problems the code was intended to fix. **Mitigation** It is recommended to upgrade to Prosody 13.0.8. **Fixes** The code has been corrected to initialize the stream handlers with the correct child element limits, and to preserve the child elements limits post-authentication. Commits: 8359d7507c21 (fix initialization), 34ba66db7c81 (preserve limit after authentication), 05edaab108ee (correct handling of abort conditions) **Attribution** This issue was reported in an external security review.
Hidden