CVE-2004-0366
CVSS7.5
发布时间 :2004-05-04 00:00:00
修订时间 :2008-09-05 16:38:15
NMCOPS    

[原文]SQL injection vulnerability in the libpam-pgsql library before 0.5.2 allows attackers to execute arbitrary SQL statements.


[CNNVD]Leon J Breedt Pam-PGSQL远程SQL注入漏洞(CNNVD-200405-016)

        libpam-pgsql程序库0.52之前的版本存在SQL注入漏洞。攻击者可以执行任意的SQL语句。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

产品及版本信息(CPE)暂不可用

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-0366
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2004-0366
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200405-016
(官方数据源) CNNVD

- 其它链接及资源

http://xforce.iss.net/xforce/xfdb/15651
(VENDOR_ADVISORY)  XF  pam-pgsql-sql-injection(15651)
http://www.debian.org/security/2004/dsa-469
(VENDOR_ADVISORY)  DEBIAN  DSA-469
http://www.securityfocus.com/bid/10266
(UNKNOWN)  BID  10266
http://secunia.com/advisories/11237
(UNKNOWN)  SECUNIA  11237

- 漏洞信息

Leon J Breedt Pam-PGSQL远程SQL注入漏洞
高危 SQL注入
2004-05-04 00:00:00 2006-09-22 00:00:00
远程  
        libpam-pgsql程序库0.52之前的版本存在SQL注入漏洞。攻击者可以执行任意的SQL语句。

- 公告与补丁

        Debian has issued fixes.
        Leon J Breedt pam-pgsql 0.5.1
        
        Leon J Breedt pam-pgsql 0.5.2
        
        Leon J Breedt pam-pgsql 0.5.2 -7
        

- 漏洞信息 (F32974)

dsa-469.txt (PacketStormID:F32974)
2004-03-29 00:00:00
Debian  debian.org
advisory
linux,debian
CVE-2004-0366
[点击下载]

Debian Security Advisory DSA 469-1 - 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.

-----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-----
    

- 漏洞信息

4672
libpam-pgsql SQL Injection
Local Access Required, Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity

- 漏洞描述

Pam-PGSQL <0.5.2-7.1 contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to not properly sanitizing user-supplied input. This may allow an attacker to inject or manipulate SQL queries in the back-end database.

- 时间线

2004-03-30 2004-03-29
Unknow Unknow

- 解决方案

Upgrade to version 0.5.2-7.1 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

- 漏洞信息

Leon J Breedt Pam-PGSQL Remote SQL Injection Vulnerability
Input Validation Error 10266
Yes No
2004-03-29 12:00:00 2009-07-12 04:07:00
Primoz Bratanic <primoz@slo-tech.com> discovered this vulnerability.

- 受影响的程序版本

Leon J Breedt pam-pgsql 0.5.2 -7
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ Debian Linux 3.0
Leon J Breedt pam-pgsql 0.5.2
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0 alpha
- PostgreSQL PostgreSQL 6.5.3
- PostgreSQL PostgreSQL 6.5.3
- PostgreSQL PostgreSQL 6.3.2
- PostgreSQL PostgreSQL 6.3.2
Leon J Breedt pam-pgsql 0.5.1
- FreeBSD FreeBSD 4.4
- PostgreSQL PostgreSQL 6.5.3
- PostgreSQL PostgreSQL 6.5.3
- PostgreSQL PostgreSQL 6.3.2
- PostgreSQL PostgreSQL 6.3.2
Debian Linux 3.0 sparc
Debian Linux 3.0 s/390
Debian Linux 3.0 ppc
Debian Linux 3.0 mipsel
Debian Linux 3.0 mips
Debian Linux 3.0 m68k
Debian Linux 3.0 ia-64
Debian Linux 3.0 ia-32
Debian Linux 3.0 hppa
Debian Linux 3.0 arm
Debian Linux 3.0 alpha
Debian Linux 3.0
Leon J Breedt pam-pgsql 0.5.2 -7.1
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ Debian Linux 3.0
Leon J Breedt pam-pgsql 0.5.2 -3woody2
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ Debian Linux 3.0

- 不受影响的程序版本

Leon J Breedt pam-pgsql 0.5.2 -7.1
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ Debian Linux 3.0
Leon J Breedt pam-pgsql 0.5.2 -3woody2
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ Debian Linux 3.0

- 漏洞讨论

Leon J Breedt's 'pam-pgsql' is a PAM authentication module to be used with PostgreSQL.

'pam-pgsql' is prone to a vulnerability which will allow SQL queries to be manipulated via any medium which requires a user to authenticate(HTTP, SSH, telnet, etc). Data that is included in SQL query strings is not adequately sanitized.

It may be possible for malicious users to modify the structure of SQL queries.

This issue allows the user to access database resources that would normally be restricted, which may in turn provide an opportunity for the attacker to exploit other vulnerabilities that exist in the server. The attacker may be able to exploit this issue to gain unauthorized access to the host.

- 漏洞利用

No exploit is required.

- 解决方案

Debian has issued fixes.


Leon J Breedt pam-pgsql 0.5.1

Leon J Breedt pam-pgsql 0.5.2

Leon J Breedt pam-pgsql 0.5.2 -7

Debian Linux 3.0 hppa

Debian Linux 3.0 ppc

Debian Linux 3.0 s/390

Debian Linux 3.0

Debian Linux 3.0 arm

Debian Linux 3.0 alpha

Debian Linux 3.0 mips

Debian Linux 3.0 ia-32

Debian Linux 3.0 mipsel

Debian Linux 3.0 sparc

Debian Linux 3.0 m68k

Debian Linux 3.0 ia-64

- 相关参考

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站