PostgreSQL PAM authentication modules HTTP SQL query

postgresql-pam-authentication-module (7110) The risk level is classified as HighHigh Risk

Description:

The 'pam-pgsql' authentication module is used to authenticate to PostgreSQL databases. Some 'pam-pgsql' modules could allow a remote attacker to execute arbitrary SQL statements. A remote attacker can request a specially-crafted HTTP query string containing embedded SQL statements to fake responses from the database and gain unauthorized access to the Web server.


Consequences:

Gain Access

Remedy:

For Joerg Wendland 'pam-pgsql' 0.9.2:
Upgrade to the latest version of 'pam-pgsql' (0.9.3 or later), available available from the SourceForge Web site. See References.

For FreeBSD Ports Collection (prior to 2002-01-21):
Upgrade to the latest pam-pgsql port version (0.5.2 or later), as listed in FreeBSD Inc., Security Advisory FreeBSD-SA-02:14. See References.

References:

  • FreeBSD Security Advisory FreeBSD-SA-02:14: pam-pgsql port authentication bypass.
  • RUS-CERT Advisory 2001-09:01: Vulnerabilities in PAM and NSS modules using a PostgreSQL database.
  • SourceForge.net: Project: sysauth-pgsql.
  • BID-3317: Joerg Wendland Pam-PSQL Remote SQL Query Manipulation Vulnerability
  • BID-3318: Alessandro Gardich Pam-PSQL Remote SQL Query Manipulation Vulnerability
  • BID-3319: Leon J Breedt Pam-PGSQL Remote SQL Query Manipulation Vulnerability
  • CVE-2001-1369: Leon J Breedt pam-pgsql before 0.5.2 allows remote attackers to execute arbitrary SQL code and bypass authentication or modify user account records by injecting SQL statements into user or password fields.
  • OSVDB ID: 5410: pam-pgsql SQL Injection

Platforms Affected:

  • FreeBSD FreeBSD Ports Collection
  • pam-pgSQL pam-pgSQL 0.5.1
  • pam-pgSQL pam-pgSQL 0.5.2
  • pam_pgSQL pam_pgSQL 0.0.3
  • pam_pgSQL pam_pgSQL 0.9.2

Reported:

Sep 10, 2001

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