#2034 Completed stanzas bypass byte-size limit when they fit in a single feed
Reporter
MattJ
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Milestone-13.0
Status-Fixed
Priority-High
Type-Defect
Security
MattJ
on
**Description**
Due to logic bugs in the byte accounting of Prosody's xmppstream library, it was possible to send stanzas that were not counted against the stream's byte limits, if the stanza fit within a single read/feed cycle in Prosody's event loop. This could lead to connections sending more data than permitted by the server's configuration.
**Affected configurations**
All configurations are affected.
**Mitigation**
The fix is code only, the recommended mitigation is to upgrade to Prosody 13.0.8 or later.
**Fixes**
The byte accounting has been expanded, and now counts every item correctly.
Commits: 0e7850032c49
**Description** Due to logic bugs in the byte accounting of Prosody's xmppstream library, it was possible to send stanzas that were not counted against the stream's byte limits, if the stanza fit within a single read/feed cycle in Prosody's event loop. This could lead to connections sending more data than permitted by the server's configuration. **Affected configurations** All configurations are affected. **Mitigation** The fix is code only, the recommended mitigation is to upgrade to Prosody 13.0.8 or later. **Fixes** The byte accounting has been expanded, and now counts every item correctly. Commits: 0e7850032c49
Hidden