]> Pileus Git - ~andy/fetchmail/blob - fetchmail-SA-2006-02.txt
Minor bug fixes for socket.c
[~andy/fetchmail] / fetchmail-SA-2006-02.txt
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 fetchmail-SA-2006-02: TLS enforcement problem/MITM attack/password exposure
5
6 Topics:         fetchmail cannot enforce TLS
7
8 Author:         Matthias Andree
9 Version:        1.1
10 Announced:      2007-01-04
11 Type:           secret information disclosure
12 Impact:         fetchmail can expose cleartext password over unsecure link
13                 fetchmail may not detect man in the middle attacks
14 Danger:         medium
15 Credits:        Isaac Wilcox (bug report, testing, collaboration on fix)
16 CVE Name:       CVE-2006-5867
17 URL:            http://fetchmail.berlios.de/fetchmail-SA-2006-02.txt
18 Project URL:    http://fetchmail.berlios.de/
19
20 Affects:        fetchmail releases <= 6.3.5
21                 fetchmail release candidates 6.3.6-rc1, -rc2, -rc3
22
23 Not affected:   fetchmail release candidates 6.3.6-rc4, -rc5
24                 fetchmail release 6.3.6
25                 fetchmail release 6.3.7
26
27 Corrected:      2006-11-26 fetchmail 6.3.6-rc4
28
29
30 0. Release history
31 ==================
32
33 2006-11-16      v0.01 internal review draft
34 2006-11-26      v0.02 revise failure cases, workaround, add acknowledgments
35 2006-11-27      v0.03 add more vulnerabilities
36 2007-01-04      v1.0  ready for release
37 2007-02-18      v1.1  mention 6.3.7 that fixes two regressions
38
39
40 1. Background
41 =============
42
43 fetchmail is a software package to retrieve mail from remote POP2, POP3,
44 IMAP, ETRN or ODMR servers and forward it to local SMTP, LMTP servers or
45 message delivery agents.
46
47 fetchmail ships with a graphical, Python/Tkinter based configuration
48 utility named "fetchmailconf" to help the user create configuration (run
49 control) files for fetchmail.
50
51
52 2. Problem description and Impact
53 =================================
54
55 Fetchmail has had several nasty password disclosure vulnerabilities for
56 a long time. It was only recently that these have been found.
57
58 V1. sslcertck/sslfingerprint options should have implied "sslproto tls1"
59     in order to enforce TLS negotiation, but did not.
60
61 V2. Even with "sslproto tls1" in the config, fetches would go ahead
62     in plain text if STLS/STARTTLS wasn't available (not advertised,
63     or advertised but rejected).
64
65 V3. POP3 fetches could completely ignore all TLS options whether
66     available or not because it didn't reliably issue CAPA before
67     checking for STLS support - but CAPA is a requisite for STLS.
68     Whether or not CAPAbilities were probed, depended on the "auth"
69     option. (Fetchmail only tried CAPA if the auth option was not set at
70     all, was set to gssapi, kerberos, kerberos_v4, otp, or cram-md5.)
71
72 V4. POP3 could fall back to using plain text passwords, even if strong
73     authentication had been configured.
74
75 V5. POP2 would not complain if strong authentication or TLS had been
76     requested.
77
78 This can cause eavesdroppers to obtain the password, depending on the
79 authentication scheme that is configured or auto-selected, and
80 subsequently impersonate somebody else when logging into the upstream
81 server.
82
83
84 3. Workaround
85 =============
86
87 If your upstream offers SSLv3-wrapped service on a dedicated port,
88 use   fetchmail --ssl --sslcertck --sslproto ssl3   on the command line,
89 or equivalent in the run control file.  This encrypts the whole session.
90
91
92 4. Solution
93 ===========
94
95   The earlier recommendation to install 6.3.6 is hereby updated, since
96   version 6.3.6 introduced two new regressions fixed in 6.3.7: one broke
97   KPOP altogether and one broke the automatic POP3 retries without TLS
98   if a server advertised TLS but then closed the connection and TLS
99   wasn't enforced.
100
101 Download and install fetchmail 6.3.7 or a newer stable release from
102 fetchmail's project site at
103 <http://developer.berlios.de/project/showfiles.php?group_id=1824>.
104
105
106 5. Acknowledgments
107 ==================
108
109 Isaac Wilcox has been a great help with testing the fixes and getting
110 them right.
111
112
113 A. Copyright, License and Warranty
114 ==================================
115
116 (C) Copyright 2007 by Matthias Andree, <matthias.andree@gmx.de>.
117 Some rights reserved.
118
119 This work is licensed under the
120 Creative Commons Attribution-NoDerivs 3.0 Germany License (CC BY-ND 3.0).
121
122 To view a copy of this license, visit
123 http://creativecommons.org/licenses/by-nd/3.0/de/deed.en
124 or send a letter to:
125
126 Creative Commons
127 444 Castro Street
128 Suite 900
129 MOUNTAIN VIEW, CALIFORNIA 94041
130 USA
131
132
133 THIS WORK IS PROVIDED FREE OF CHARGE AND WITHOUT ANY WARRANTIES.
134 Use the information herein at your own risk.
135
136 END OF fetchmail-SA-2006-02.txt
137
138 -----BEGIN PGP SIGNATURE-----
139 Version: GnuPG v1.4.11 (GNU/Linux)
140
141 iEYEARECAAYFAk9/Yg4ACgkQvmGDOQUufZVAlACglBU+3L80GdwXRplGD0jLEPYp
142 C8QAoJHEGU8xtgurUjt/mYiwz8u85vYY
143 =Io6N
144 -----END PGP SIGNATURE-----