summaryrefslogtreecommitdiff
blob: 268a9c4c9b141bad672c295f46dc41dd80cb0855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200408-19">
  <title>courier-imap: Remote Format String Vulnerability</title>
  <synopsis>
    There is a format string vulnerability in non-standard configurations of
    courier-imapd which may be exploited remotely. An attacker may be able to
    execute arbitrary code as the user running courier-imapd (oftentimes root).
  </synopsis>
  <product type="ebuild">courier-imap</product>
  <announced>2004-08-19</announced>
  <revised count="02">2006-05-22</revised>
  <bug>60865</bug>
  <access>remote</access>
  <affected>
    <package name="net-mail/courier-imap" auto="yes" arch="*">
      <unaffected range="ge">3.0.5</unaffected>
      <vulnerable range="le">3.0.2-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    Courier-IMAP is an IMAP server which is part of the Courier mail
    system. It provides access only to maildirs.
    </p>
  </background>
  <description>
    <p>
    There is a format string vulnerability in the auth_debug() function
    which can be exploited remotely, potentially leading to arbitrary code
    execution as the user running the IMAP daemon (oftentimes root). A
    remote attacker may send username or password information containing
    printf() format tokens (such as "%s"), which will crash the server or
    cause it to execute arbitrary code.
    </p>
    <p>
    This vulnerability can only be exploited if DEBUG_LOGIN is set to
    something other than 0 in the imapd config file.
    </p>
  </description>
  <impact type="high">
    <p>
    If DEBUG_LOGIN is enabled in the imapd configuration, a remote attacker
    may execute arbitrary code as the root user.
    </p>
  </impact>
  <workaround>
    <p>
    Set the DEBUG_LOGIN option in /etc/courier-imap/imapd to 0. (This is
    the default value.)
    </p>
  </workaround>
  <resolution>
    <p>
    All courier-imap users should upgrade to the latest version:
    </p>
    <code>
    # emerge sync
    
    # emerge -pv "&gt;=net-mail/courier-imap-3.0.5"
    # emerge "&gt;=net-mail/courier-imap-3.0.5"</code>
  </resolution>
  <references>
    <uri link="http://www.idefense.com/application/poi/display?id=131&amp;type=vulnerabilities&amp;flashstatus=true">iDEFENSE Advisory</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-0777">CVE-2004-0777</uri>
  </references>
  <metadata tag="submitter" timestamp="2004-08-19T18:47:27Z">
    condordes
  </metadata>
</glsa>