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

===========================================================================
             AUSCERT External Security Bulletin Redistribution

            ESB-2003.0027 -- Debian Security Advisory DSA 229-2
                New IMP packages fix SQL injection and typo
                              16 January 2003

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:                imp
Vendor:                 Debian
Operating System:       Debian GNU/Linux 2.2
                        Debian GNU/Linux 3.0
                        Linux
Impact:                 Increased Privileges
                        Execute Arbitrary Code/Commands
Access Required:        Remote

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- - --------------------------------------------------------------------------
Debian Security Advisory DSA 229-2                     security@debian.org
http://www.debian.org/security/                             Martin Schulze
January 15th, 2003                      http://www.debian.org/security/faq
- - --------------------------------------------------------------------------

Package        : imp
Vulnerability  : SQL injection
Problem-Type   : remote
Debian-specific: no
CVE Id         : CAN-2003-0025

The advisory DSA 229-1 contained a typo in one file which could cause
certain installations to fail suddenly.

For completeness, here is the original advisory text:

  Jouko Pynnonen discovered a probem with IMP, a web based IMAP mail
  program.  Using carefully crafted URLs a remote attacker is able to
  inject SQL code into SQL queries without proper user authentication.
  Even though results of SQL queries aren't directly readable from the
  screen, an attacker might. update his mail signature to contain wanted
  query results and then view it on the preferences page of IMP.

  The impact of SQL injection depends heavily on the underlying database
  and its configuration.  If PostgreSQL is used, it's possible to
  execute multiple complete SQL queries separated by semicolons.  The
  database contains session id's so the attacker might hijack sessions
  of people currently logged in and read their mail.  In the worst case,
  if the hordemgr user has the required privilege to use the COPY SQL
  command (found in PostgreSQL at least), a remote user may read or
  write to any file the database user (postgres) can.  The attacker may
  then be able to run arbitrary shell commands by writing them to the
  postgres user's ~/.psqlrc; they'd be run when the user starts the psql
  command which under some configurations happens regularly from a cron
  script.

For the current stable distribution (woody) this problem has been
fixed in version 2.2.6-5.2.

For the old stable distribution (potato) this problem has been
fixed in version 2.2.6-0.potato.5.2.

For the unstable distribution (sid) this problem will be fixed in
version 2.2.6-8.

We recommend that you upgrade your IMP packages.


Upgrade Instructions
- - --------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


Debian GNU/Linux 2.2 alias potato
- - ---------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/i/imp/imp_2.2.6-0.potato.5.2.dsc
      Size/MD5 checksum:      557 44d08f19a1448314a6b909d72ccdc573
    http://security.debian.org/pool/updates/main/i/imp/imp_2.2.6-0.potato.5.2.diff.gz
      Size/MD5 checksum:    66875 c7d2431d975834000d08b86c7fe9df91
    http://security.debian.org/pool/updates/main/i/imp/imp_2.2.6.orig.tar.gz
      Size/MD5 checksum:   361731 8f7920c8173e1ef2724cb25a311f9ca8

  Architecture independent components:

    http://security.debian.org/pool/updates/main/i/imp/imp_2.2.6-0.potato.5.2_all.deb
      Size/MD5 checksum:   410804 6aedc56344d1eea874c7ae39f3e536cd


Debian GNU/Linux 3.0 alias woody
- - --------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/i/imp/imp_2.2.6-5.2.dsc
      Size/MD5 checksum:      638 d2504b9b549e73c448851d291821a5eb
    http://security.debian.org/pool/updates/main/i/imp/imp_2.2.6-5.2.diff.gz
      Size/MD5 checksum:    95209 2a18586731f2f3ae03353eb346eed8e4
    http://security.debian.org/pool/updates/main/i/imp/imp_2.2.6.orig.tar.gz
      Size/MD5 checksum:   361731 8f7920c8173e1ef2724cb25a311f9ca8

  Architecture independent components:

    http://security.debian.org/pool/updates/main/i/imp/imp_2.2.6-5.2_all.deb
      Size/MD5 checksum:   426822 84d31910cec8dce85e00a89f5961307e


  These files will probably be moved into the stable distribution on
  its next revision.

- - ---------------------------------------------------------------------------------
For apt-get: deb http://security.debian.org/ stable/updates main
For dpkg-ftp: ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org
Package info: `apt-cache show <pkg>' and http://packages.debian.org/<pkg>

- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+JZY9W5ql+IAeqTIRAoCZAKChyHuPuhwzbAghehNDSYwqN1KHjACfQ+lz
pi89kxAU0XGfHhsTZX7FJCQ=
=iQJC
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content.  The decision to use any or all of this information is
the responsibility of each user or organisation, and should be done so in
accordance with site policies and procedures.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security
Teams).

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business 
                hours which are GMT+10:00 (AEST).  On call after hours 
                for member emergencies only.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBPiaMUSh9+71yA2DNAQFVoQP/X5SyMfUn1XLBXWGXzxhS5KTsY0SLbCF0
vWHOzsWpYfXfz3fO1IwXXi0dwj5nrJd539Cx/Z9aXC9CSCQrJ+Ir2jbhWa0g6JiL
3kvAL4UGeow7oTByAHb7AIVVhDpcYs78XUGKdEkyzwoIfAXB0Zn49HxEwc/YRYCB
RBlEbE+d8p0=
=0UFu
-----END PGP SIGNATURE-----