This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Security advisory: uw-imap - 3 attachments


> uw-imap (whose maintainer, AFAICS, has yet to respond to reply to 
> Corinna's message) is vulnerable to remote overflow of a buffer in the
> IMAP server leading to execution of arbitrary code.
> 
> The only solution is to upgrade to 2004g (current Cygwin release is
> 2002e!). 

I built 2004g and it nearly builds ootb.

The only patch necessary is for CRAM-MD5 auth. This patch is well known
and has been used for the 2002e version also. All other patches that
have been necessary for 2002e have already been integrated in the 2004g
release. 

I could not post to the cygwin applications list via gmane, so I reply
to the main list. Apologies if this not the way it should be done. 

I´d be glad to assist the maintainer in building a 2004g package for
cygwin. 

I´m facing two minor issues:
- the first is described here in detail:
  http://www.cygwin.com/ml/cygwin/2004-11/msg01137.html
  it has always been there for me (even with the 2002e package), so I
  don´t think it is a new problem
- second, when I use dmail from .procmailrc, it causes a stackdump
  at the end of the delivery process. But all logs are written fine and
  all mail gets delivered, so it is more a cosmetic thing (IMHO)

Attached you find 3 patches:
1) imap-2004c1.cram-md5-auth.patch
It is necessary for cram-md5 to work.

2) imap-2004c1.mbx-by-default.patch (optional)
Local mailboxes are created in MBX format by default, which allows
simultanous rw access by multiple sessions. New mail has to be spooled
to a mbox format mailbox in /var/spool/mail/<user>, but is transfered to
~/Mail/INBOX by UW-IMAP immediately. 

3) imap-2004c1.mailsubdir-Mail.patch (optional)
Mail is stored in the users ~/Mail folder. 

The last two patches make uw-imap behave more compliant to modern UNIX
standards and more capable. These are not real patches, but
configuration options for uw-imap. If you migrate from an older version
of uw-imap that has been configured differently, you have to move the
mailbox files to the new folder localtions. 



Regards,
Christian


begin 644 imap-2004c1.mbx-by-default.patch
M9&EF9B`M875R(&EM87`M,C`P-&,Q+G9A;FEL;&$O<W)C+V]S9&5P+W5N:7@O
M36%K969I;&4@:6UA<"TR,#`T8S$O<W)C+V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+2`@8WEG=VEN7W-E=%]I;7!E
M<G-O;F%T:6]N7W1O:V5N("AC>6=?:&1L*3L**PHK("`O*B!T:&4@0U)!32U-
M1#4@8V]D92!F;&]W(&1O97-N)W0@8V%L;"!C:&5C:W!W*"D@*B\**R`@:68@
M*&%U=&A?;60U+G-E<G9E<BD**R`@>PHK("`@(&EF("AC>6=?=7-E<BD@9G-?
M9VEV92`H*'9O:60@*BHI("9C>6=?=7-E<BD["BL@("`@8WEG7W5S97(@/2!C
M<'ES='(H<'<M/G!W7VYA;64I.PHK("!]"BL@(&5L<V4**R`@>PHK("`@("`@
M("`@("`@("`@("`@("`@("`@("`@("`@("`O*B!M=7-T(&)E('-A;64@=7-E
M<B!N86UE(&%S(&QA<W0@8VAE8VMP=R@I("HO"BL@("`@:68@*"$H8WEG7W5S
M97(@)B8@(7-T<F-M<"`H<'<M/G!W7VYA;64L8WEG7W5S97(I*2D@<F5T=7)N
M($Y)3#L**R`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@+RH@9&\@
M=&AE($EM<&5R<V]N871E3&]G9V5D3VY5<V5R*"D@*B\**R`@("!C>6=W:6Y?
M<V5T7VEM<&5R<V]N871I;VY?=&]K96X@*&-Y9U]H9&PI.PHK("!]"B`*("`@
M<F5T=7)N("$H<V5T9VED("AP=RT^<'=?9VED*2!\?"!I;FET9W)O=7!S("AC
M>6=?=7-E<BQP=RT^<'=?9VED*2!\?`HM"2`@('-E='5I9"`H=6ED*2D["BL@
M("`@("`@("`@('-E='5I9"`H=6ED*2D["B!]"D]N;'D@:6X@:6UA<"TR,#`T
*8S$Z('1M86EL"@``
`
end


begin 644 imap-2004c1.mailsubdir-Mail.patch
M9&EF9B`M875R(&EM87`M,C`P-&,Q+G9A;FEL;&$O<W)C+V]S9&5P+W5N:7@O
M96YV7W5N:7@N8R!I;6%P+3(P,#1C,2]S<F,O;W-D97`O=6YI>"]E;G9?=6YI
M>"YC#0HM+2T@:6UA<"TR,#`T8S$N=F%N:6QL82]S<F,O;W-D97`O=6YI>"]E
M;G9?=6YI>"YC"3(P,#0M,#DM,3,@,C,Z,S$Z,3DN,#`P,#`P,#`P("LP,C`P
M#0HK*RL@:6UA<"TR,#`T8S$O<W)C+V]S9&5P+W5N:7@O96YV7W5N:7@N8PDR
M,#`U+3`S+3$P(#$P.C4S.C`Y+C`P,#`P,#`P,"`K,#$P,`T*0$`@+3(Y+#<@
M*S(Y+#<@0$`-"B!S=&%T:6,@8VAA<B`J;7E-86EL8F]X1&ER(#T@3DE,.R\J
M(&UA:6QB;W@@9&ER96-T;W)Y(&YA;64@*B\-"B!S=&%T:6,@8VAA<B`J;7E,
M;V-A;$AO<W0@/2!.24P["2\J(&QO8V%L(&AO<W0@;F%M92`J+PT*('-T871I
M8R!C:&%R("IM>4YE=W-R8R`]($Y)3#L)+RH@;F5W<W)C(&9I;&4@;F%M92`J
M+PT*+7-T871I8R!C:&%R("IM86EL<W5B9&ER(#T@3DE,.PDO*B!M86EL('-U
M8F1I<F5C=&]R>2!N86UE("HO#0HK<W1A=&EC(&-H87(@*FUA:6QS=6)D:7(@
M/2`B36%I;"(["2\J(&UA:6P@<W5B9&ER96-T;W)Y(&YA;64@*B\-"B!S=&%T
M:6,@8VAA<B`J<WES26YB;W@@/2!.24P["2\J('-Y<W1E;2!I;F)O>"!N86UE
M("HO#0H@<W1A=&EC(&-H87(@*FYE=W-!8W1I=F4@/2!.24P["2\J(&YE=W,@
M86-T:79E(&9I;&4@*B\-"B!S=&%T:6,@8VAA<B`J;F5W<U-P;V]L(#T@3DE,
4.PDO*B!N97=S('-P;V]L("HO#0J@
`
end



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]