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