Pgbouncer 1.6 Invalid User Authentication Bypass

critical Nessus Plugin ID 93006

Synopsis

The remote database connection pooler is affected by an authentication bypass vulnerability.

Description

The version of Pgbouncer running on the remote host is affected by an authentication bypass vulnerability due to a flaw in the start_auth_request() function within file client.c when handling requests for invalid users. A remote attacker can exploit this issue to bypass authentication and log into PostgreSQL via Pgbouncer using a random user name.

Solution

Upgrade to Pgbouncer version 1.6.1 or later. Alternatively, disable 'auth_user' in the Pgbouncer configuration.

See Also

https://seclists.org/oss-sec/2015/q3/495

https://github.com/pgbouncer/pgbouncer/issues/69

http://www.nessus.org/u?342233a3

Plugin Details

Severity: Critical

ID: 93006

File Name: pgbouncer_1_6_auth_bypass.nasl

Version: 1.8

Type: remote

Family: Misc.

Published: 8/17/2016

Updated: 2/18/2025

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2015-6817

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS Score Source: manual

Vulnerability Information

CPE: x-cpe:/a:pgbouncer:pgbouncer

Excluded KB Items: global_settings/supplied_logins_only

Exploit Ease: No known exploits are available

Patch Publication Date: 9/3/2015

Vulnerability Publication Date: 8/27/2015

Reference Information

CVE: CVE-2015-6817