Bad encrypted message recieved
Successfully exchanged a few push messages with a TextSecure 2 user. However, then messages stopped being correctly received by my client. They say "Bad encrypted message...". The same is happening on their end; my messages are being received but showing the same error message.
I'm on Nexus 5 running Android 4.4.2, with TextSecure 2.0.1 and now TextSecure 2.0.2. The bad encrypted message was seen with both version of TS.
A pastebin that includes at most one bad transfer is at http://hastebin.com/mobiqikegi
The other user used the padlock to end the session, and once the re-keying took place messages are flowing successfully again. Will close this one for now.
Hey @shenki could you tell me exactly how many messages you successfully exchanged before this started? In each direction? Thanks!
I've been able to reproduce this. It happens if two contacts simultaneously send each-other their first-ever encrypted message with each-other. That message will come through fine, but the next won't.
Hey @moxie0, sounds like you're on top of it, but in case you still wanted know how many messages we sent it looked something like this:
A -> B A <- B (B may have just installed a new version before sending this) A -> B A <- B A <- B A <- B this was the first busted one, and from then on it failed until B ended the session and we rekeyed
Here's a poor quality photograph of the message exchange: http://imgur.com/ShWCSxL
@SevenFactors Does it seem plausible to you that the messages you exchanged after upgrading to 2.0 were sent near simultaneously?
Same error and possibly for the same reason when sending a message to yourself. First one works, successive messages fail.
Hi, same for me (in german "Fehlerhaft verschlüsselte Nachricht"). I can confirm the scenario moxie0 described above. We were both "first timers" and now can't see each others messages.
@moxie0 Is there are workaround in the meantime? It seems for the contact in question, neither of us can get any messages through that don't turn up bad on the other end.
Otherwise: what is the estimated arrival for a fix?
I send my 1st message to the contact at 17:11:50, the contact send hers to me at 9:58:43, aka many hours before. But I did never receive this message. The next message was sent by the contact at 17:13:16. That is the 1st message I received and it was fine. So was the next one. All messages afterwards where bad.
@SevenFactors Not sure I understand. Are you suggesting that you uninstalled the app, reinstalled the app, and then got a message that was left in flight from a session belonging to your first install?
I don't know if this is related, but I am currently facing a similar issue:
Me (Sent: 13:00): blue bubble with readable text She (Sent: 15:21 / Rcvd: 16:02:12): Bad encrypted message ("Fehlerhaft verschlüsselte Nachricht...") She (Sent: 15:23 / Rcvd: 16:02:13): Bad encrypted message ("Fehlerhaft verschlüsselte Nachricht...") Me (Sent 16:05): blue bubble with readable text
(I'll add more info here once I have access to her phone)
This is NOT a new session. The session started yesterday afternoon, successfully served some messages and has not been interrupted.
I had the idea that maybe the messages arrived in the wrong order, and this lead to some forward secrecy conflict - but they didn't, the timestamps are in order.
Log from MY phone, taken via settings menu at 17:05: http://hastebin.com/posoferiqa.vhdl (phone numbers obfuscated; do you have to put them in the debug log?)
Got more info.
There is a message from yesterday 22:39 which is stuck as "Sending..." ("Wird gesendet...") Hours later (the message still stuck), I sent a picture, which the rcpt. has received just fine. Then I received two messages: one of it was sent a minute ago, the other one (displayed below!) was dated ("Sent") 17 hours ago. Both were decrypted correctly.
After that, the "bad encrypted messages" began.
Also noteworthy: I kept receiving a notification as described in bug #814. This has now vanished.
I'm sorry I can't give more precise info. But I'm quite sure there is a bug, and it is probably related to stuck messages and/or receipt in wrong order. Maybe someone can reproduce.
I am also experiencing this issue on 2.0.3. I sent one "bad encrypted message" on a newly-encrypted session, and received two on an older session begun on an older version. Both were push transport.
I get "bad encrypted message..." with the contacts I text a lot with at least once a day. In most cases we later found out that nothing was lost, the "bad encrypted message..." just seems to show up randomly.
Sounds like duplicate messages. Debug logs would be helpful.
I had a similar issue #972, closing the session (via the padlock icon) and reestablishing it by sending a message fixed it.
I've got the same problem without identifying from what it's coming though it happened in the conversation at a random moment. Android 4.3.1 CyanogenMod 10.2 on Samsung galaxy i9300
Hi all,
please pay attention to the timestamps: on several occasions, the first "bad encrypted" message carries the same sent timestamp as the one before. The sender states they haven't sent it. It seems to be an "echo message", maybe double delivery caused by gcm?
Just a theory...
On 3. März 2014 22:26:39 MEZ, jocelynthode [email protected] wrote:
I've got the same problem without identifying from what it's coming though it happened in the conversation at a random moment. Android 4.3.1 CyanogenMod 10.2 on Samsung galaxy i9300
Reply to this email directly or view it on GitHub: https://github.com/WhisperSystems/TextSecure/issues/763#issuecomment-36561728
Yeah @vascorppor , you're right I just checked both of the messages have exactly the same timestamp.
Moxie seems to be on this trail as well in #951.