[omemo] XHTML-IM leaks cleartext when using reStructuredText markup
If rst_formatting_outgoing_messages
is activated and used, the message content is sent unencrypted in a <html/>
element:
<message xmlns="jabber:client" to="announ@example.net" type="chat" id="a168fb3f-f337-4e05-9954-31ead29d2618" from="announ@example.net/shiori">
<html xmlns="http://jabber.org/protocol/xhtml-im">
<body xmlns="http://www.w3.org/1999/xhtml">
<p>Secret message.</p>
</body>
</html>
<active xmlns="http://jabber.org/protocol/chatstates" />
<request xmlns="urn:xmpp:receipts" />
<thread>yOJcFkUjnDLNeayDMMLIZldbbzTYQRVC</thread>
<encrypted xmlns="eu.siacs.conversations.axolotl">
<header sid="708714532">
<key rid="1239530696" prekey="true">Mwjnl6IGEiEFr7v88rQU6pxvuU41YpgQAzVJsKCoeNtxe9EyrAk6NC8aIQV3C4rBZ58QOd8rs38RHYEupa3Dipd5QpOIrPVr73TUbCJiMwohBcxwxiWFFyjffb+sIud6vmR+vtupHmgPnwZr2SS+IIsfEAIYACIwU+D2nFrkR8Mc7VHQMdPXLucu/PpVlmQgvdChq6VIQrei5lqkjrDfz7ejxSc7jJ/U7dlH2F+mNNUoocD40QowrhM=</key>
<iv>HdI+gTeAOzoNcr+1I/H2xw==</iv>
</header>
<payload>zkn2xX14xcj38hg2QoBc</payload>
</encrypted>
<encryption xmlns="urn:xmpp:eme:0" namespace="eu.siacs.conversations.axolotl" name="OMEMO" />
<store xmlns="urn:xmpp:hints" />
</message>
Tested with Gajim 0.16.8 (with python-nbxmpp 0.5.6) and OMEMO 1.2.1 on Ubuntu 16.04.2 LTS.