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

Critical Nessus Plugin ID 31447


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


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.


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

See Also

Plugin Details

Severity: Critical

ID: 31447

File Name: gentoo_GLSA-200803-21.nasl

Version: $Revision: 1.15 $

Type: local

Published: 2008/03/13

Modified: 2016/11/11

Dependencies: 12634

Risk Information

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: 2008/03/12

Reference Information

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

OSVDB: 42906, 42907

GLSA: 200803-21

CWE: 79, 119