Pgbouncer 1.6 Invalid User Authentication Bypass

high 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: High

ID: 93006

File Name: pgbouncer_1_6_auth_bypass.nasl

Version: 1.7

Type: remote

Family: Misc.

Published: 8/17/2016

Updated: 4/11/2022

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: High

Base Score: 8.1

Temporal Score: 7.1

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

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

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