SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (Security)  >   pam-pgsql Vendors:   Downey, David D.W.
(Debian Issues Fix) pam-pgsql Input Validation Flaws in Authentication Data Let Remote Users Inject SQL Commands
SecurityTracker Alert ID:  1009585
SecurityTracker URL:  http://securitytracker.com/id/1009585
CVE Reference:   CAN-2004-0366   (Links to External Site)
Date:  Mar 29 2004
Impact:   Disclosure of system information, Disclosure of user information, Execution of arbitrary code via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 0.5.2-5
Description:   An input validation vulnerability was reported in pam-pgsql. A remote user may be able to inject SQL commands to be executed on the underlying database.

Debian reported that the libpam-psql PAM module used to authenticate via a PostgreSQL database does not properly validate user-supplied input in certain variables. A remote user may be able to inject SQL statements to be executed by the underlying database.

The flaws reportedly reside in the auth_verify_password() and pam_sm_chauthtok() functions in the 'pam_pgsql.c' file.

Primoz Bratanic is credited with discovery.

Impact:   A remote user can inject SQL commands to be executed on the underlying database. The specific impact depends on the application using the pam-pgsql library.
Solution:   Debian has released a fix for the stable distribution (woody) in version 0.5.2-3woody2 and for the unstable distribution (sid) in version 0.5.2-7.1.

Debian GNU/Linux 3.0 alias woody:

Source archives:

http://security.debian.org/pool/updates/main/p/pam-pgsql/pam-pgsql_0.5.2-3woody2.dsc
Size/MD5 checksum: 644 f2052dd0ab65fd186d90b3b3598d295c
http://security.debian.org/pool/updates/main/p/pam-pgsql/pam-pgsql_0.5.2-3woody2.diff.gz
Size/MD5 checksum: 5620 4069768c934f923b6008cb9561d0274c
http://security.debian.org/pool/updates/main/p/pam-pgsql/pam-pgsql_0.5.2.orig.tar.gz
Size/MD5 checksum: 39892 3ee046cd64ad9c3e02ad486d0398ad13

Alpha architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_alpha.deb
Size/MD5 checksum: 5648 7523fb12cb281da388dcfd1f09cdb780

ARM architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_arm.deb
Size/MD5 checksum: 14146 9f94ce23f843fb70556a31e826a5388c

Intel IA-32 architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_i386.deb
Size/MD5 checksum: 14024 14f8af94434f09eb9ec0a7c958e051ff

Intel IA-64 architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_ia64.deb
Size/MD5 checksum: 20774 a8ebc16a2f88b170e109e085c69706a3

HP Precision architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_hppa.deb
Size/MD5 checksum: 14790 327f6bb12fc8be07fb042c6a8544e06a

Motorola 680x0 architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_m68k.deb
Size/MD5 checksum: 14122 28cb0fb68e09039e36f678f561903cb1

Big endian MIPS architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_mips.deb
Size/MD5 checksum: 13646 2fbd761e5d5a19a56b011bc2cb8e36a3

Little endian MIPS architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_mipsel.deb
Size/MD5 checksum: 13672 5241836d02e3b1c8e362aa66bc4b3d8b

PowerPC architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_powerpc.deb
Size/MD5 checksum: 14258 526ffe6bb1f01e02b4cf7a69fc80b095

IBM S/390 architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_s390.deb
Size/MD5 checksum: 14324 2de57a838f7c0035fa3ca64540dd574a

Sun Sparc architecture:

http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_sparc.deb
Size/MD5 checksum: 14148 b5716f8ff2e5d88c822bdcf615d532d9

Vendor URL:  sourceforge.net/projects/pam-pgsql (Links to External Site)
Cause:   Input validation error
Underlying OS:   Linux (Debian)

Message History:   This archive entry is a follow-up to the message listed below.
Mar 29 2004 pam-pgsql Input Validation Flaws in Authentication Data Let Remote Users Inject SQL Commands



 Source Message Contents

Date:  Mon, 29 Mar 2004 15:44:09 +0200 (CEST)
Subject:  [SECURITY] [DSA 469-1] New libpam-pgsql packages fix SQL injection


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

- --------------------------------------------------------------------------
Debian Security Advisory DSA 469-1                     security@debian.org
http://www.debian.org/security/                             Martin Schulze
March 29th, 2004                        http://www.debian.org/security/faq
- --------------------------------------------------------------------------

Package        : pam-pgsql
Vulnerability  : missing input sanitising
Problem-Type   : remote
Debian-specific: no
CVE ID         : CAN-2004-0366

Primoz Bratanic discovered a bug in libpam-psgl, a PAM module to
authenticate using a PostgreSQL database.  The library does not escape
all user-supplied data that are sent to the database.  An attacker
could exploit this bug to insert SQL statements.

For the stable distribution (woody) this problem has been fixed in
version 0.5.2-3woody2.

For the unstable distribution (sid) this problem has been fixed in
version 0.5.2-7.1.

We recommend that you upgrade your libpam-pgsql package.


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 3.0 alias woody
- --------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/pam-pgsql_0.5.2-3woody2.dsc
      Size/MD5 checksum:      644 f2052dd0ab65fd186d90b3b3598d295c
    http://security.debian.org/pool/updates/main/p/pam-pgsql/pam-pgsql_0.5.2-3woody2.diff.gz
      Size/MD5 checksum:     5620 4069768c934f923b6008cb9561d0274c
    http://security.debian.org/pool/updates/main/p/pam-pgsql/pam-pgsql_0.5.2.orig.tar.gz
      Size/MD5 checksum:    39892 3ee046cd64ad9c3e02ad486d0398ad13

  Alpha architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_alpha.deb
      Size/MD5 checksum:     5648 7523fb12cb281da388dcfd1f09cdb780

  ARM architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_arm.deb
      Size/MD5 checksum:    14146 9f94ce23f843fb70556a31e826a5388c

  Intel IA-32 architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_i386.deb
      Size/MD5 checksum:    14024 14f8af94434f09eb9ec0a7c958e051ff

  Intel IA-64 architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_ia64.deb
      Size/MD5 checksum:    20774 a8ebc16a2f88b170e109e085c69706a3

  HP Precision architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_hppa.deb
      Size/MD5 checksum:    14790 327f6bb12fc8be07fb042c6a8544e06a

  Motorola 680x0 architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_m68k.deb
      Size/MD5 checksum:    14122 28cb0fb68e09039e36f678f561903cb1

  Big endian MIPS architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_mips.deb
      Size/MD5 checksum:    13646 2fbd761e5d5a19a56b011bc2cb8e36a3

  Little endian MIPS architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_mipsel.deb
      Size/MD5 checksum:    13672 5241836d02e3b1c8e362aa66bc4b3d8b

  PowerPC architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_powerpc.deb
      Size/MD5 checksum:    14258 526ffe6bb1f01e02b4cf7a69fc80b095

  IBM S/390 architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_s390.deb
      Size/MD5 checksum:    14324 2de57a838f7c0035fa3ca64540dd574a

  Sun Sparc architecture:

    http://security.debian.org/pool/updates/main/p/pam-pgsql/libpam-pgsql_0.5.2-3woody2_sparc.deb
      Size/MD5 checksum:    14148 b5716f8ff2e5d88c822bdcf615d532d9


  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.4 (GNU/Linux)

iD8DBQFAaCgoW5ql+IAeqTIRAoCMAKCNeQiEhVY4zRKX9chvYS5IM+fetQCghCLz
keIjpmb9jCR0Jns/S+gKJSI=
=4WX0
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-security-announce-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2012, SecurityGlobal.net LLC