PostgreSQL Database Link library (dblink) SQL injection

postgresql-dblink-sql-injection (35142) The risk level is classified as MediumMedium Risk

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.

*CVSS:

Base Score: 5.6
  Access Vector: Remote
  Access Complexity: High
  Authentication: Not Required
  Confidentiality Impact: Partial
  Integrity Impact: Partial
  Availability Impact: Partial
 
Temporal Score: 4.1
  Exploitability: Unproven
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Data Manipulation

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.

References:

  • BugTraq Mailing List, Mon Jun 18 2007 - 07:56:56 CDT: Re: Having Fun With PostgreSQL.
  • BugTraq Mailing List, Sat Jun 16 2007 - 12:11:47 CDT: Having Fun With PostgreSQL.
  • HP Security Bulletin HPSBTU02325 SSRT080006 rev.1: HP Internet Express for Tru64 UNIX running PostgreSQL, Arbitrary Code Execution, Privilege Elevation, or Denial of Service (DoS).
  • PostgreSQL Web site: PostgreSQL: The world's most advanced open source database.
  • Sun Alert ID: 103197: Multiple Security Vulnerabilities in PostgreSQL Shipped with Solaris 10 May Allow Elevation of Privileges or Denial of Service (DoS).
  • 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
  • MDVSA-2008:004: Updated postgresql packages fix denial of service and privilege escalation issues
  • OSVDB ID: 40899: PostgreSQL dblink host Variable Crafted Localhost Proxy Remote Privilege Escalation
  • 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

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 2008.0
  • MandrakeSoft Mandrake Linux Corporate Server 3.0
  • MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 4.0
  • MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
  • PostgreSQL PostgreSQL 8.1
  • RedHat Application Stack v1 for EL AS 4
  • RedHat Application Stack v1 for EL ES 4
  • RedHat Enterprise Linux 3 AS
  • RedHat Enterprise Linux 3 WS
  • RedHat Enterprise Linux 3 ES
  • RedHat Enterprise Linux 3 Desktop
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4 AS
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4.6.z AS
  • RedHat Enterprise Linux 4.6.z ES
  • RedHat Enterprise Linux 5 Client Workstation
  • RedHat Enterprise Linux 5 Client
  • RedHat Enterprise Linux 5
  • RedHat Enterprise Linux 5.1.z EUS
  • 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

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 ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page

* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

About IBM Security Systems

IBM Security Systems include an extensive portfolio of hardware, software solutions, professional and managed services offerings covering the spectrum of IT and business security risks: people and identity, data and information, application and process, network, server and endpoint and physical infrastructure, empowering clients to innovate and operate their businesses on the most secure infrastructure platforms. Through world-class solutions that address risk across the enterprise, IBM helps organizations build a strong security posture that helps reduce costs, improve service, and manage risk. IBM X-Force(R) Research and Development is one of the most renowned commercial security research and development groups in the world. For more information on how to address today's biggest risks, please visit us at ibm.com/security.