<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>135005</bug_id>
          
          <creation_ts>2006-05-31 02:13 0000</creation_ts>
          <short_desc>mail-mta/courier DoS issue (CVE-2006-2659)</short_desc>
          <delta_ts>2006-10-15 05:33:07 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://www.courier-mta.org/beta/patches/verp-fix/</bug_file_loc>
          <status_whiteboard>B3 [glsa] jaervosz</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>140883</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jaervosz@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>bugs--gentoo.org@daniel-faber.net</cc>
    
    <cc>chtekk@gentoo.org</cc>
    
    <cc>iggy@gentoo.org</cc>
    
    <cc>jakub@gentoo.org</cc>
    
    <cc>m.semeniuk@10g.pl</cc>
    
    <cc>net-mail@gentoo.org</cc>
    
    <cc>swtaylor@gentoo.org</cc>
    
    <cc>tcort@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-05-31 02:13:15 0000</bug_when>
            <thetext>2006-05-23  Mr. Sam  &lt;mrsam@courier-mta.com&gt;

	* courier/libs/comverp.c (verp_encode): Fix bug in encoding of
	usernames that contain &apos;=&apos;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>m.semeniuk@10g.pl</who>
            <bug_when>2006-06-04 22:13:50 0000</bug_when>
            <thetext>bug 134262 is the same bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2006-06-08 05:03:31 0000</bug_when>
            <thetext>This bug sould be merged with bug 134262 and bug 134262 sould be assigned to security team, so that the security process could be completed, including the final GLSA vote.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2006-06-08 05:05:47 0000</bug_when>
            <thetext>it is 	CVE-2006-2659</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-06-08 05:10:22 0000</bug_when>
            <thetext>*** Bug 134262 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-06-08 05:12:46 0000</bug_when>
            <thetext>swtaylor please advise and patch as necessary.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-06-30 08:55:42 0000</bug_when>
            <thetext>Perhaps someone from net-mail will help on this one?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-07-05 23:26:58 0000</bug_when>
            <thetext>Vapier/Solar/Taviso no response from mail to swtayloer, will you try a bump?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2006-07-10 17:26:44 0000</bug_when>
            <thetext>mail-mta/courier-0.53.2 is in the tree now, which fixes the security issue and a few other bugs, thanks to Marcin Semeniuk (a user) that provided updated ebuilds in another bug. I want to stress that I only did the version bump for security, I won&apos;t maintain mail-mta/courier myself as I don&apos;t use it anywhere.
Best regards, CHTEKK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-07-11 00:51:42 0000</bug_when>
            <thetext>Thx Luca.

Arches please test and mark stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tsunam@gentoo.org</who>
            <bug_when>2006-07-11 21:39:16 0000</bug_when>
            <thetext>forgetting you have courier working locally = doh!

x86 done, as it all worked for me in that reguards. I&apos;m going to take a nap now.

Z_Z</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2006-07-12 15:39:05 0000</bug_when>
            <thetext>courier dies if &quot;test&quot; is in FEATURES because something it does via make check spits out;

Making check in imap
make[1]: Entering directory `/var/tmp/portage/courier-0.53.2/work/courier-0.53.2/imap&apos;
make  check-am
make[2]: Entering directory `/var/tmp/portage/courier-0.53.2/work/courier-0.53.2/imap&apos;
=============================
Do not run make check as root
=============================
make[2]: *** [check-am] Error 1
make[2]: Leaving directory `/var/tmp/portage/courier-0.53.2/work/courier-0.53.2/imap&apos;
make[1]: *** [check] Error 2
make[1]: Leaving directory `/var/tmp/portage/courier-0.53.2/work/courier-0.53.2/imap&apos;
make: *** [check-recursive] Error 1

!!! ERROR: mail-mta/courier-0.53.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_test
  ebuild.sh, line 987:   Called src_test
  ebuild.sh, line 618:   Called die

Will continue testing, but should be disabled.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2006-07-12 17:15:46 0000</bug_when>
            <thetext>Created an attachment (id=91607)
Updated mailer.conf for mailwrapper support

At the request of langthang, I re-built courier with FEATURES=&quot;userpriv test&quot; and the tests run fine.

On another note, the mailer.conf file for USE=&quot;mailwrapper&quot; support provided in ${FILESDIR} is broken.  The path to sendmail.courier has changed from /usr/sbin to /usr/bin.  Attached is an updated version of it with the right pathings.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2006-07-14 10:09:06 0000</bug_when>
            <thetext>mailer.conf was updated as per attachment and the ebuild had a src_test added that will only execute the tests if FEATURES=&quot;userpriv&quot; is present, else it will warn the user about the need of it to make check.
Best regards, CHTEKK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2006-07-16 14:06:15 0000</bug_when>
            <thetext>SPARC sexy</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2006-07-16 15:14:31 0000</bug_when>
            <thetext>This time I&apos;ll even remove SPARC from the CC! :)

Your hourly bug spam brought to you by jforman&apos;s goats.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-07-18 02:12:38 0000</bug_when>
            <thetext>Could someone investigate the missing patch that should (?) get applied w/ USE=&quot;-fam&quot;? (Bug 140883) AFAICS that patch just never existed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2006-07-18 09:15:25 0000</bug_when>
            <thetext>(In reply to comment #16)
&gt; Could someone investigate the missing patch that should (?) get applied w/
&gt; USE=&quot;-fam&quot;? (Bug 140883) AFAICS that patch just never existed.
&gt; 

it looks like swtaylor bumped courier-0.48.2.20050130.ebuild to fix bug #69630 but forgot to commit fam-disable-check.patch.
http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/courier/courier-0.48.2.20050130.ebuild?hideattic=0&amp;rev=1.3&amp;view=markup
one can port that patch from courier-imap but as far as security concern this isn&apos;t a regression.

BTW, tsunam mark 52.2 x86 instead of 53.2. re-add x86.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2006-07-18 09:40:44 0000</bug_when>
            <thetext>(In reply to comment #17)
&gt; as far as security concern this
&gt; isn&apos;t a regression.

I take it back. The last known stable ebuild doesn&apos;t have that fam stuff in there.  Guess we have to yank fam related stuff out and do a revision bump later with fam goodness.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2006-07-18 14:51:03 0000</bug_when>
            <thetext>bug 140883 is fixed. please back to your regular schedule. Sorry for the interruption.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tsunam@gentoo.org</who>
            <bug_when>2006-07-20 00:02:06 0000</bug_when>
            <thetext>perhaps its the right version this time.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2006-07-22 02:03:37 0000</bug_when>
            <thetext>Already ppc stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tcort@gentoo.org</who>
            <bug_when>2006-07-22 08:40:10 0000</bug_when>
            <thetext>alpha stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>killerfox@gentoo.org</who>
            <bug_when>2006-07-29 02:01:38 0000</bug_when>
            <thetext>forgot to remove us.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blubb@gentoo.org</who>
            <bug_when>2006-07-31 01:33:29 0000</bug_when>
            <thetext>amd64 done, sorry for the delay.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-07-31 02:48:06 0000</bug_when>
            <thetext>I tend to vote YES.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2006-07-31 13:43:50 0000</bug_when>
            <thetext>usernames containing &apos;=&apos; ?? Voting no.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vorlon@gentoo.org</who>
            <bug_when>2006-07-31 14:42:16 0000</bug_when>
            <thetext>recipients with = seem pretty uncommon... nevertheless i tend to vote yes on this one (a really small yes though)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>frilled@gentoo.org</who>
            <bug_when>2006-07-31 22:07:43 0000</bug_when>
            <thetext>I&apos;d say it would depend on whether usernames would have to be *valid*. If NOT, I&apos;d vote YES. But I couldn&apos;t find info that anywhere.

Can somebody who actually worked on the code tell?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-08-01 00:45:22 0000</bug_when>
            <thetext>Mail gateways or mailing list servers usually don&apos;t have any chance of validating the username.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2006-08-01 10:32:08 0000</bug_when>
            <thetext>i vote no; username with &quot;=&quot; is rather uncommon, isn&apos;t it ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>frilled@gentoo.org</who>
            <bug_when>2006-08-02 00:07:50 0000</bug_when>
            <thetext>Sune is right IMHO (#29), and I vote &quot;yes&quot;, too, because of that.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2006-08-02 06:22:19 0000</bug_when>
            <thetext>Reverting to yes.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-08-03 22:05:30 0000</bug_when>
            <thetext>ia64 don&apos;t forget to mark stable to benifit from the GLSA.

GLSA 200608-06</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>91607</attachid>
            <date>2006-07-12 17:15 0000</date>
            <desc>Updated mailer.conf for mailwrapper support</desc>
            <filename>mailer.conf</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBFeGVjdXRlIHRoZSAicmVhbCIgc2VuZG1haWwgcHJvZ3JhbSwgbmFtZWQgL3Vzci9zYmluL3Nl
bmRtYWlsCiMKc2VuZG1haWwJL3Vzci9iaW4vc2VuZG1haWwuY291cmllcgpzZW5kLW1haWwJL3Vz
ci9iaW4vc2VuZG1haWwuY291cmllcgptYWlscQkJL3Vzci9iaW4vbWFpbHEuY291cmllcgpybWFp
bAkJL3Vzci9iaW4vcm1haWwuY291cmllcgo=
</data>        

          </attachment>
    </bug>

</bugzilla>