HAProxy Trash Buffer Overflow Vulnerability

medium Nessus Plugin ID 59798

Synopsis

The remote host is running a load balancer with a buffer overflow vulnerability.

Description

Based on the self-reported version obtained from the HAProxy statistics reporting page, the remote host is running load balancing software that is potentially affected by a buffer overflow vulnerability when copying data into the trash buffer.

It may be possible for an attacker to exploit this vulnerability to execute arbitrary code on the remote host, but it requires that the global.tune.bufsize option is set to a value greater than default and that header rewriting is configured.

Solution

Upgrade to HAProxy version 1.4.21 or higher.

See Also

http://haproxy.1wt.eu/download/1.4/src/CHANGELOG

Plugin Details

Severity: Medium

ID: 59798

File Name: haproxy_trash_buffer_overflow.nasl

Version: 1.6

Type: remote

Family: Misc.

Published: 6/29/2012

Updated: 4/11/2022

Configuration: Enable paranoid mode, Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 5.1

Temporal Score: 3.8

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

Vulnerability Information

CPE: cpe:/a:haproxy:haproxy

Required KB Items: www/haproxy_stats_page, Settings/ParanoidReport

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No known exploits are available

Patch Publication Date: 5/21/2012

Vulnerability Publication Date: 5/16/2012

Reference Information

CVE: CVE-2012-2942

BID: 53647