83351 2002-11-05  17:37  /307 rader/ Sebastian Krahmer <krahmer@suse.de>
Importerad: 2002-11-05  17:37  av Brevbäraren
Extern mottagare: bugtraq@securityfocus.com
Mottagare: Bugtraq (import) <2223>
Ärende: SuSE Security Announcement: perl-MailTools (SuSE-SA:2002:041)
------------------------------------------------------------

-----BEGIN PGP SIGNED MESSAGE-----

______________________________________________________________________________

                        SuSE Security Announcement

        Package:                perl-MailTools
        Announcement-ID:        SuSE-SA:2002:041
        Date:                   Tue Nov  5 11:30:00 CET 2002
        Affected products:      7.1, 7.2, 7.3, 8.0, 8.1
                                SuSE eMail Server III, 3.1
        Vulnerability Type:     remote command execution
        Severity (1-10):        6
        SuSE default package:   no
        Cross References:       -

    Content of this advisory:
        1) security vulnerability resolved: Remote command execution via
           Mail::Mailer package.
           problem description, discussion, solution and upgrade information
        2) pending vulnerabilities, solutions, workarounds: -
        3) standard appendix (further information)

______________________________________________________________________________

1)  problem description, brief discussion, solution, upgrade
information

    The SuSE Security Team reviewed critical Perl modules, including the
    Mail::Mailer package. This package contains a security hole which allows
    remote attackers to execute arbitrary commands in certain circumstances.
    This is due to the usage of mailx as default mailer which allows commands
    to be embedded in the mail body.
      Vulnerable to this attack are custom auto reply programs or spam filters
    which use Mail::Mailer directly or indirectly.

    Please download the update package for your distribution and
    verify its integrity by the methods listed in section 3) of this
    announcement.  Then, install the package using the command "rpm
    -Fhv file.rpm" to apply the update.  Our maintenance customers
    are being notified individually. The packages are being offered
    to install from the maintenance web.


    i386 Intel Platform:

    SuSE-8.1
    ftp://ftp.suse.com/pub/suse/i386/update/8.1/rpm/i586/perl-MailTools-1.47-29.i586.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/i386/update/8.1/rpm/src/perl-MailTools-1.47-29.src.rpm
      d41d8cd98f00b204e9800998ecf8427e

    SuSE-8.0
    ftp://ftp.suse.com/pub/suse/i386/update/8.0/perl3/perl-MailTools-1.42-120.i386.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/i386/update/8.0/zq1/perl-MailTools-1.42-120.src.rpm
      d41d8cd98f00b204e9800998ecf8427e

    SuSE-7.3
    ftp://ftp.suse.com/pub/suse/i386/update/7.3/perl2/perl-MailTools-1.1401-187.i386.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/i386/update/7.3/zq1/perl-MailTools-1.1401-187.src.rpm
      d41d8cd98f00b204e9800998ecf8427e

    SuSE-7.2
    ftp://ftp.suse.com/pub/suse/i386/update/7.2/perl2/perl-MailTools-1.1401-187.i386.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/i386/update/7.2/zq1/perl-MailTools-1.1401-187.src.rpm
      d41d8cd98f00b204e9800998ecf8427e

    SuSE-7.1
    ftp://ftp.suse.com/pub/suse/i386/update/7.1/perl2/perl-MailTools-1.1401-188.i386.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/i386/update/7.1/zq1/perl-MailTools-1.1401-188.src.rpm
      d41d8cd98f00b204e9800998ecf8427e


    Sparc Platform:

    SuSE-7.3
    ftp://ftp.suse.com/pub/suse/sparc/update/7.3/perl2/perl-MailTools-1.1401-65.sparc.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/sparc/update/7.3/zq1/perl-MailTools-1.1401-65.src.rpm
      d41d8cd98f00b204e9800998ecf8427e


    AXP Alpha Platform:

    SuSE-7.1
    ftp://ftp.suse.com/pub/suse/axp/update/7.1/perl2/perl-MailTools-1.1401-69.alpha.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/axp/update/7.1/zq1/perl-MailTools-1.1401-69.src.rpm
      d41d8cd98f00b204e9800998ecf8427e


    PPC Power PC Platform:

    SuSE-7.3
    ftp://ftp.suse.com/pub/suse/ppc/update/7.3/perl2/perl-MailTools-1.1401-110.ppc.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/ppc/update/7.3/zq1/perl-MailTools-1.1401-110.src.rpm
      d41d8cd98f00b204e9800998ecf8427e

    SuSE-7.1
    ftp://ftp.suse.com/pub/suse/ppc/update/7.1/perl2/perl-MailTools-1.1401-111.ppc.rpm
      d41d8cd98f00b204e9800998ecf8427e
    source rpm:
    ftp://ftp.suse.com/pub/suse/ppc/update/7.1/zq1/perl-MailTools-1.1401-111.src.rpm
      d41d8cd98f00b204e9800998ecf8427e

______________________________________________________________________________

2)  Pending vulnerabilities in SuSE Distributions and Workarounds:

    There is no additional information this time.

______________________________________________________________________________

3)  standard appendix: authenticity verification, additional
information

  - Package authenticity verification:

    SuSE update packages are available on many mirror ftp servers all
    over the world. While this service is being considered valuable
    and important to the free and open source software community,
    many users wish to be sure about the origin of the package and
    its content before installing the package. There are two
    verification methods that can be used independently from each
    other to prove the authenticity of a downloaded file or rpm
    package: 1) md5sums as provided in the (cryptographically signed)
    announcement.  2) using the internal gpg signatures of the rpm
    package.

    1) execute the command
        md5sum <name-of-the-file.rpm>
       after you downloaded the file from a SuSE ftp server or its mirrors.
       Then, compare the resulting md5sum with the one that is listed in the
       announcement. Since the announcement containing the checksums is
       cryptographically signed (usually using the key security@suse.de),
       the checksums show proof of the authenticity of the package.
       We disrecommend to subscribe to security lists which cause the
       email message containing the announcement to be modified so that
       the signature does not match after transport through the mailing
       list software.
       Downsides: You must be able to verify the authenticity of the
       announcement in the first place. If RPM packages are being rebuilt
       and a new version of a package is published on the ftp server, all
       md5 sums for the files are useless.

    2) rpm package signatures provide an easy way to verify the authenticity
       of an rpm package. Use the command
        rpm -v --checksig <file.rpm>
       to verify the signature of the package, where <file.rpm> is the
       filename of the rpm package that you have downloaded. Of course,
       package authenticity verification can only target an un-installed rpm
       package file.
       Prerequisites:
        a) gpg is installed
        b) The package is signed using a certain key. The public part of this
           key must be installed by the gpg program in the directory
           ~/.gnupg/ under the user's home directory who performs the
           signature verification (usually root). You can import the key
           that is used by SuSE in rpm packages for SuSE Linux by saving
           this announcement to a file ("announcement.txt") and
           running the command (do "su -" to be root):
            gpg --batch; gpg < announcement.txt | gpg --import
           SuSE Linux distributions version 7.1 and thereafter install the
           key "build@suse.de" upon installation or upgrade, provided that
           the package gpg is installed. The file containing the public key
           is placed at the top-level directory of the first CD (pubring.gpg)
           and at ftp://ftp.suse.com/pub/suse/pubring.gpg-build.suse.de .


  - SuSE runs two security mailing lists to which any interested party may
    subscribe:

    suse-security@suse.com
        -   general/linux/SuSE security discussion.
            All SuSE security announcements are sent to this list.
            To subscribe, send an email to
                <suse-security-subscribe@suse.com>.

    suse-security-announce@suse.com
        -   SuSE's announce-only mailing list.
            Only SuSE's security announcements are sent to this list.
            To subscribe, send an email to
                <suse-security-announce-subscribe@suse.com>.

    For general information or the frequently asked questions (faq)
    send mail to:
        <suse-security-info@suse.com> or
        <suse-security-faq@suse.com> respectively.

    =====================================================================
    SuSE's security contact is <security@suse.com> or
    <security@suse.de>.  The <security@suse.de> public key is listed
    below.
    =====================================================================
______________________________________________________________________________

    The information in this advisory may be distributed or
    reproduced, provided that the advisory is not modified in any
    way. In particular, it is desired that the clear-text signature
    shows proof of the authenticity of the text.  SuSE Linux AG makes
    no warranties of any kind whatsoever with respect to the
    information contained in this security advisory.

Type Bits/KeyID    Date       User ID
pub  2048R/3D25D3D9 1999-03-06 SuSE Security Team <security@suse.de>
pub  1024D/9C800ACA 2000-10-19 SuSE Package Signing Key <build@suse.de>

- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBDnu9IERBACT8Y35+2vv4MGVKiLEMOl9GdST6MCkYS3yEKeueNWc+z/0Kvff
4JctBsgs47tjmiI9sl0eHjm3gTR8rItXMN6sJEUHWzDP+Y0PFPboMvKx0FXl/A0d
M+HFrru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R6Q7Pi
RZWCzGRzwbaxqpl3rK/YTCphOLwEMB27B4/fcqtBzgoMOiaZA0M5fFoo54KgRIh0
zinsSx2OrWgvSiLEXXYKiEYEEBECAAYFAjseYcMACgkQnkDjEAAKq6ROVACgjhDM
/3KM+iFjs5QXsnd4oFPOnbkAnjYGa1J3em+bmV2aiCdYXdOuGn4ZiQCVAwUQN7c7
whaQN/7O/JIVAQEB+QP/cYblSAmPXxSFiaHWB+MiUNw8B6ozBLK0QcMQ2YcL6+Vl
D+nSZP20+Ja2nfiKjnibCv5ss83yXoHkYk2Rsa8foz6Y7tHwuPiccvqnIC/c9Cvz
dbIsdxpfsi0qWPfvX/jLMpXqqnPjdIZErgxpwujas1n9016PuXA8K3MJwVjCqSKI
RgQQEQIABgUCOhpCpAAKCRDHUqoysN/3gCt7AJ9adNQMbmA1iSYcbhtgvx9ByLPI
DgCfZ5Wj+f7cnYpFZI6GkAyyczG09sE=
=LRKC
- -----END PGP PUBLIC KEY BLOCK-----


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQEVAwUBPcelXXey5gA9JdPZAQGIhAf/ZouJs+LaHJo3nAU9BvnwHAWbY4vdbDqO
Il9fPVu9UGaH03nnZdR/IxkBJHtvoUE33aBpWqW2q704h1o9p1jmxe6Us7AGSEq8
27MUPAodZMWzqVV1VrzcLzvRPU+/Ve8wfNhfzSx6/Jt0FF3syrxZ5P1NKtq3sJVj
ZObi5tp+UPdpNxXx85vrk4kpBc8MaO5zJ6ugpwNBfK2sUpJx2R/jqYXYjGlDEiBN
eRF/e+fHlVN2Tm2pAsg3tiuEEikKCP+3A5bDgX6705SGlu20T9VjfDCxN9VLzrwN
coULhgDqNh3Qhr+F9xfLKT42ZysEeysLDXj0TCfvGQoWQUntgOtO0w==
=Pwj8
-----END PGP SIGNATURE-----

-- 
~
~ perl self.pl
~ $_='print"\$_=\47$_\47;eval"';eval
~ krahmer@suse.de - SuSE Security Team
~
(83351) /Sebastian Krahmer <krahmer@suse.de>/(Ombruten)
84032 2002-11-12  06:31  /67 rader/ Sebastian Krahmer <krahmer@suse.de>
Importerad: 2002-11-12  06:31  av Brevbäraren
Extern mottagare: Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
Mottagare: Bugtraq (import) <2351>
Ärende: Re: SuSE Security Announcement: perl-MailTools (SuSE-SA:2002:041)
------------------------------------------------------------
On Fri, 8 Nov 2002, Florian Weimer wrote:

Hi,

> Sebastian Krahmer <krahmer@suse.de> writes:
>
> >     The SuSE Security Team reviewed critical Perl modules, including
> >     the Mail::Mailer package. This package contains a security hole
> >     which allows remote attackers to execute arbitrary commands in
> >     certain circumstances.  This is due to the usage of mailx as
> >     default mailer which allows commands to be embedded in the mail
> >     body.
>
> The well-known case of command execution through mail bodies processed
> by mailx (~! SHELL-COMMAND) only affects certain mailx versions.  Some
> vendors (including SuSE and Red Hat) base their packages on
> mailx-8.1.1 (probably a snapshot from the OpenBSD CVS from summer 1997
> or something like this), which behaves as documented in the manpage
> (no escape character processing unless stdin is a terminal), and are
> not affected.
This is only true when -I switch is not given. Unfortunally Mail::Mailer
adds -I to the commandline. So it does not need fd 0 to be a tty.

>
> The following change in OpenBSD (re)introduced the problem:
>
> http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mail/collect.c.diff?r1=1.19&r2=1.20&f=u
>
> And this change corrects it again:
>
> http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mail/collect.c.diff?r1=1.23&r2=1.24
>
> Only very few vendors based their package on one of the version
> between 1.20 and 1.23 (including).  Debian once used one of the
> affected versions, but Debian GNU/Linux 3.0 (woody) includes the 1.24
> version and is safe.
>
> However, it's still a good idea to ditch /bin/mail, as provided by
> mailx:
>
>    $ mail "| echo nice feature@localhost" < /dev/null
>    No message, no subject; hope that's ok
>    nice feature...@localhost
>    $
Yes, this has been the second reason. I can point you to the full
analyzation
of the problems and exploit-mails which may trigger arbitrary
code execution if you want.

BTW, the maintainer of Mail::Mailer told me that using Mail::Mailer
is depricated anyways, one should rather use Mail::Box and its
friends, where recent mailx problem could also hit you and has been
fixed too.  The manpage will point out clearly that 'mail' is not the
right type to send mail.

regards,
Sebastian

-- 
~
~ perl self.pl
~ $_='print"\$_=\47$_\47;eval"';eval
~ krahmer@suse.de - SuSE Security Team
~
(84032) /Sebastian Krahmer <krahmer@suse.de>/(Ombruten)