PostgreSQL SET ROLE command privilege elevation
| postgresql-setrole-privilege-elevation (24718) |
Description:
PostgreSQL could allow an authenticated database user to gain elevated privileges. An attacker could exploit this vulnerability by sending a specially-crafted SET ROLE command to other database users after an error has occurred to gain the privileges of the targeted user.
Platforms Affected:
- OpenPKG, OpenPKG 2.3
- OpenPKG, OpenPKG 2.4
- OpenPKG, OpenPKG 2.5
- OpenPKG, OpenPKG CURRENT
- PostgreSQL, PostgreSQL 8.1.0
- PostgreSQL, PostgreSQL 8.1.1
- PostgreSQL, PostgreSQL 8.1.2
Remedy:
Upgrade to the latest version of PostgreSQL (8.1.3 or later), available from the PostgreSQL Web site. See references.
For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2006.004 for patch, upgrade, or suggested workaround information. See References.
Consequences:
Gain Privileges
References:
- BugTraq Mailing List, Wed Feb 15 2006 - 09:05:22 CST , PostgreSQL security releases 8.1.3, 8.0.7, 7.4.12, 7.3.14 at http://archives.neohapsis.com/archives/bugtraq/2006-02/0212.html.
- PostgreSQL Web site, Downloads at http://www.postgresql.org/download/.
- BID-16649: PostgreSQL Remote SET ROLE Privilege Escalation Vulnerability
- CVE-2006-0553: PostgreSQL 8.1.0 through 8.1.2 allows authenticated database users to gain additional privileges via knowledge of the backend protocol using a crafted SET ROLE to other database users, a different vulnerability than CVE-2006-0678.
- FrSIRT/ADV-2006-0605: PostgreSQL Privilege Escalation and Denial of Service Vulnerabilities
- OpenPKG-SA-2006.004: PostgreSQL
- SA18890: PostgreSQL Privilege Escalation and Denial of Service
- SECTRACK ID: 1015636: PostgreSQL SET ROLE Validation Error Lets Remote Authenticated Users Obtain Elevated Privileges
- US-CERT VU#567452: PostgreSQL database privilege escalation vulnerability
Reported:
Feb 15, 2006
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 (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.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
