PostgreSQL Database Link library (dblink) command execution
| postgresql-dblink-command-execution (35145) |
Description:
PostgreSQL could allow an authenticated remote attacker with superuser privileges to execute arbitrary commands on the system, caused by a vulnerability in the Database Link library (dblink). If dblink is enabled, a remote attacker could exploit this vulnerability to execute arbitrary shell commands.
Platforms Affected:
- 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
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- PostgreSQL, PostgreSQL 8.1
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:
Gain Privileges
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.
- PostgreSQL Web site, PostgreSQL: The world's most advanced open source database at http://www.postgresql.org/.
- CVE-2007-3280: The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary libraries based on the C programming language, which allows remote authenticated superusers to map and execute a function from any library, as demonstrated by using the system function in libc.so.6 to gain shell access.
- MDKSA-2007:188: Updated postgresql packages prevent access abuse using dblink
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
