GLSA-200803-21 : Sarg: Remote execution of arbitrary code

critical Nessus Plugin ID 31447

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200803-21 (Sarg: Remote execution of arbitrary code)

Sarg doesn't properly check its input for abnormal content when processing Squid log files.
Impact :

A remote attacker using a vulnerable Squid as a proxy server or a reverse-proxy server can inject arbitrary content into the 'User-Agent' HTTP client header, that will be processed by sarg, which will lead to the execution of arbitrary code, or JavaScript injection, allowing Cross-Site Scripting attacks and the theft of credentials.
Workaround :

There is no known workaround at this time.

Solution

All sarg users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=net-analyzer/sarg-2.2.5'

See Also

https://security.gentoo.org/glsa/200803-21

Plugin Details

Severity: Critical

ID: 31447

File Name: gentoo_GLSA-200803-21.nasl

Version: 1.18

Type: local

Published: 3/13/2008

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Critical

Base Score: 10

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:sarg, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 3/12/2008

Reference Information

CVE: CVE-2008-1167, CVE-2008-1168

CWE: 119, 79

GLSA: 200803-21