Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

"End Secure Session" doesn't always end secure session

Open Fuzion24 opened this issue 12 years ago • 22 comments

Sometimes the app continues to send encrypted messages after attempting to end the secure session.

Fuzion24 avatar Apr 06 '14 01:04 Fuzion24

IMHO "end secure session" does not mean that you end encryption at all. It only ends the current session, so that a new session key is negotiated when you start texting again.

exploide avatar Apr 06 '14 08:04 exploide

Yep, this is the intended behaviour, as long as "sometimes" means every push conversation and the case where it works the way you want it to is with sms.

generalmanager avatar Apr 06 '14 11:04 generalmanager

This wording is confusing. Maybe something like "Reset Secure Session" or "Reestablish Secure Session" would be more appropriate.

kstrel avatar Apr 06 '14 11:04 kstrel

@kstrel But that would be incorrect. The session is ended, but if you are using push a new one starts when you are writing another message. And for SMS your proposal would be way more confusing, because those sessions are not restarted automatically if you write another message.

generalmanager avatar Apr 06 '14 11:04 generalmanager

Personally, I'd like to eliminate the option all together. This is a great example of something that, regardless of what we name it, users don't (and shouldn't!) need to understand.

moxie0 avatar Apr 07 '14 05:04 moxie0

@moxie0 I agree with you that it's a no-go from a usability perspective. But there are still several cases where it's vital for users to be able to do this. The most important ones I can think if right now are the "bad encrypted message" errors that are fixed in 2.0.6, but need a new session. And for SMS this could certainly be of use in some edge cases. So I don't see that we can simply omit it, but maybe we can hide it a bit better. If it were one of the long-click options in the conversation list view, users won't see it until the FAQ or somebody here tells them to do it.

Or we introduce a setting, where we can restart all (push-)sessions at once. Not sure what to do about the SMS sessions though.

generalmanager avatar Apr 07 '14 08:04 generalmanager

@generalmanager @moxie0 +1

Bastelbursche avatar Apr 07 '14 17:04 Bastelbursche

It wasn't originally visible when we shipped 2.0. We re-enabled it as a result of the protocol errors, which should now be fixed. The original plan was that we'd offer a tap-action (similar to sms fallback) to end the secure session for every unencrypted SMS received in a conversation that has a valid session.

moxie0 avatar Apr 07 '14 20:04 moxie0

Sounds like a sane default, but I'd wait a month or two until everybody who experienced "bad encrypted messages" had the time to restart those. Or we disable it on the next release and forcibly restart every existing push conversation on the first start after the update.

And should someone with SMS get a plaintext or "bad encrypted" message, the option to end the secure session pops up.

generalmanager avatar Apr 07 '14 20:04 generalmanager

I personally would like the option to downgrade the connection back to an unsecured channel.

Fuzion24 avatar Apr 09 '14 22:04 Fuzion24

@Fuzion24 In which case would this be useful? The data channel is encrypted by default and the SMS channel would open a little box, asking you if you want to downgrade, if something goes wrong with the encryption.

generalmanager avatar Apr 09 '14 22:04 generalmanager

I have, on a handful of occasions, been stuck in state where I am not able to send a message. Although, downgrading to plaintext communication would be a hack and the real solution would be to work out any underlying issues causing these types of state.

A more valid use-case for downgrading a channel would be:
A person may send a plaintext SMS to me, say via Google voice. I would want to respond to them in plaintext assuming they are on a platform not capable of the upgrading to a secure communication channel. I current have no way to do so, so long as I'm using TextSecure.

Fuzion24 avatar Apr 10 '14 04:04 Fuzion24

@Fuzion24 The protocol errors causing these problems should be a thing of the past now.

The second use case is exactly what moxie proposed: If you receive an unencrypted message, a little tap-action like the one asking you for sms fallback would ask if you would like to continue in plaintext.

I think that's as smooth and hasslefree as it can get.

generalmanager avatar Apr 10 '14 10:04 generalmanager

How about calling it "Initialise secure session"?

This makes it clear that future messages are still secure, while also implying that the current session is over/the slate is clean/the new session hasn't started yet.

ykarm avatar Apr 21 '14 15:04 ykarm

@ykarm This would simply be wrong on push and wrong and misleading on SMS. Also the whole option can be removed, because there isn't any use for it anymore after people have switched to a later version of TS without the protocol errors.

generalmanager avatar Apr 21 '14 21:04 generalmanager

This is totally unclear to a uninformed user (I had to read the issue comments to find out the real behaviour) and should be really removed or at least reworded. I of course expected that this would reset the encrypted conversation to a non-encrypted one, because I now did run into #845 and am stuck with a user which is no longer using TextSecure. To get rid of this situation I tried to use this function, but with no avail. Now I know why.

nebulon42 avatar Dec 08 '14 09:12 nebulon42

@wp9015362 Keep doing this and we'll ban you from the repo.

moxie0 avatar Feb 16 '15 20:02 moxie0

The Option is still placed pretty prominently in the UI, which lead me here (Because I wanted to know what it does). I would suggest hiding it way lower in the settings with something like "End all secure Sessions" for users experiencing problems. That way, no one will be irritated by the option, while it stays accessible for specific use cases.

ApolloLV avatar Mar 17 '15 12:03 ApolloLV

I actually had this option come in handy a couple weeks ago when the session with my mom went wacky. This solved the issue and it hasn't returned. Yes, I have my mom using TS. :smile:

jeremymasters avatar Mar 17 '15 14:03 jeremymasters

@moxie0 wrote:

Personally, I'd like to eliminate the option all together. This is a great example of something that, regardless of what we name it, users don't (and shouldn't!) need to understand.

Could you please eliminate the "End secure session" option now?

I still don't know what it actually does and when to use it and when not.

Also, from reading the comments here, it might have had to do something with encrypted SMS?

So, since the encrypted SMS feature has been removed, the option could be removed as well?

And if you won't remove the option (for whatever reason) then could you please at least explain the option somewhere? Like in the Wiki for example:

https://github.com/WhisperSystems/TextSecure/wiki/Using-TextSecure

?

ghost avatar Apr 05 '15 20:04 ghost