k-9/src/com/fsck/k9/controller
Joe Steele 583d1d403f Fix inadequate certificate validation
Proper host name validation was not being performed for certificates
kept in the local keystore.  If an attacker could convince a user to
accept and store an attacker's certificate, then that certificate
could be used for MITM attacks, giving the attacker access to all
connections to all servers in all accounts in K-9.

This commit changes how the certificates are stored.  Previously, an
entire certificate chain was stored for a server (and any of those
certificates in the chain were available for validating signatures on
certificates received when connecting).  Now just the single
certificate for the server is stored.

This commit changes how locally stored certificates are retrieved.
They can only be retrieved using the host:port that the user
configured for the server.

This also fixes issue 1326.  Users can now use different certificates
for different servers on the same host (listening to different ports).

The above changes mean that users might have to re-accept certificates
that they had previously accepted and are still using (but only if the
certificate's Subject doesn't match the host that they are connecting
to).

This commit modifies AccountSetupBasics so that it now calls
AccountSetupCheckSettings twice -- once for checking the incoming
settings and once for the outgoing settings.  Otherwise, an exception
could occur while checking incoming settings, the user could say
continue (or the user could accept a certificate key), and the
outgoing settings would not be checked.  This also helps with
determining if a certificate exception was for the incoming or
outgoing server, which is needed if the user decides to add the
certificate to the keystore.
2013-12-17 02:35:25 +01:00
..
MessageRemovalListener.java Big, scary massive "ant astyle" to get us back to something 2011-02-06 17:09:48 -05:00
MessageRetrievalListener.java Big, scary massive "ant astyle" to get us back to something 2011-02-06 17:09:48 -05:00
MessagingController.java Fix inadequate certificate validation 2013-12-17 02:35:25 +01:00
MessagingControllerPushReceiver.java Convert OpenMode from an Enum to static ints for perf improvement. 2013-07-30 21:32:35 -04:00
MessagingListener.java Provide a progress indicator while loading remote search results. 2013-01-12 18:02:09 -05:00