PostgreSQL Database Link library (dblink) SQL injection
| postgresql-dblink-sql-injection (35142) |
Description:
PostgreSQL is vulnerable to SQL injection. If the Database Link library (dblink) is enabled, a remote attacker could send specially-crafted SQL statements using the dblink host parameter, which could allow the attacker to view, add, modify or delete information in the back-end database.
Note: In order to exploit this vulnerability, local trust authentication must be enabled.
Platforms Affected:
- Canonical, Ubuntu 6.06 LTS
- Canonical, Ubuntu 6.10
- Canonical, Ubuntu 7.04
- Canonical, Ubuntu 7.10
- Debian, Debian Linux 3.1
- Debian, Debian Linux 4.0
- Gentoo, Linux
- HP, Internet Express 6.6
- HP, Internet Express 6.7
- MandrakeSoft, Mandrake Linux 2007
- MandrakeSoft, Mandrake Linux 2007 X86_64
- MandrakeSoft, Mandrake Linux 2007.1
- MandrakeSoft, Mandrake Linux 2007.1 X86_64
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0
- PostgreSQL, PostgreSQL 8.1
- RedHat, Application Stack v1 for EL AS 4
- RedHat, Application Stack v1 for EL ES 4
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 5
- RedHat, Enterprise Linux 5 Client
- RedHat, Enterprise Linux 5 Client Workstation
- RedHat, RHEL Application Stack 2
- Sun, Solaris 10 SPARC
- Sun, Solaris 10 x86
- Turbolinux, Turbolinux 10 Server
- Turbolinux, Turbolinux 10 Server x64 Ed
- Turbolinux, Turbolinux 11 Server
- Turbolinux, Turbolinux 11 Server x64 Ed
- Turbolinux, Turbolinux FUJI
- Turbolinux, Turbolinux Multimedia
- Turbolinux, Turbolinux Personal
- Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed
- Turbolinux, Turbolinux Appliance Server 2.0
Remedy:
For Mandriva Linux:
Refer to MDKSA-2007:188 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Data Manipulation
References:
- BugTraq Mailing List, Mon Jun 18 2007 - 07:56:56 CDT, Re: Having Fun With PostgreSQL at http://archives.neohapsis.com/archives/bugtraq/2007-06/0223.html.
- BugTraq Mailing List, Sat Jun 16 2007 - 12:11:47 CDT, Having Fun With PostgreSQL at http://archives.neohapsis.com/archives/bugtraq/2007-06/0210.html.
- HPSBTU02325 SSRT080006 rev.1, HP Internet Express for Tru64 UNIX running PostgreSQL, Arbitrary Code Execution, Privilege Elevation, or Denial of Service (DoS) at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01420154.
- PostgreSQL Web site, PostgreSQL: The world's most advanced open source database at http://www.postgresql.org/.
- Sun Alert ID: 103197, Multiple Security Vulnerabilities in PostgreSQL Shipped with Solaris 10 May Allow Elevation of Privileges or Denial of Service (DoS) at http://sunsolve.sun.com/search/document.do?assetkey=1-26-103197-1.
- ASA-2008-025: PostgreSQL security update (RHSA-2008-0039)
- ASA-2008-033: PostgreSQL security update (RHSA-2008-0038)
- ASA-2008-046: Multiple Security Vulnerabilities in PostgreSQL Shipped with Solaris 10 May Allow Elevation of Privileges or Denial of Service (DoS) (Sun 103197)
- ASA-2008-052: postgresql security update (RHSA-2008-0040)
- ASA-2008-074: Multiple Security Vulnerabilities in PostgreSQL Shipped with Solaris 10 May Allow Elevation of Privileges or Denial of Service (DoS) (Sun 200559)
- CVE-2007-3278: PostgreSQL 8.1 and probably later versions, when local trust authentication is enabled and the Database Link library (dblink) is installed, allows remote attackers to access arbitrary accounts and execute arbitrary SQL queries via a dblink host parameter that proxies the connection from 127.0.0.1.
- DSA-1460: postgresql-8.1 -- several vulnerabilities
- DSA-1463: postgresql-7.4 -- several vulnerabilities
- GLSA-200801-15: PostgreSQL: Multiple vulnerabilities
- MDKSA-2007:188: Updated postgresql packages prevent access abuse using dblink
- RHSA-2008-0038: Moderate: postgresql security update
- RHSA-2008-0039: Moderate: postgresql security update
- RHSA-2008-0040: Moderate: postgresql security update
- SA28437: Sun Solaris 10 PostgreSQL Multiple Vulnerabilities
- SA29638: HP Internet Express for Tru64 UNIX Multiple PostgreSQL Vulnerabilities
Reported:
Jun 16, 2007
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
