Description: Correction: Ignore messages where message id == replace id
Author: lovetox <philipp@hoerist.com>
Origin: upstream
Bug: https://dev.gajim.org/gajim/gajim/-/issues/10638
Bug-Debian: https://security-tracker.debian.org/tracker/CVE-2021-41055
Applied-Upstream: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/8a626829d7c4b14077f76
Last-Update: 2022-01-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/nbxmpp/modules/correction.py
+++ b/nbxmpp/modules/correction.py
@@ -44,4 +44,9 @@
             self._log.warning(stanza)
             return
 
+        if stanza.getID() == id_:
+            self._log.warning('correcton id == message id')
+            self._log.warning(stanza)
+            return
+
         properties.correction = CorrectionData(id_)
