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

This script is Copyright (C) 2008-2014 Tenable Network Security, Inc.


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.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200803-21.xml

Solution :

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

Risk factor :

Critical / CVSS Base Score : 10.0
(CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 31447 (gentoo_GLSA-200803-21.nasl)

Bugtraq ID:

CVE ID: CVE-2008-1167
CVE-2008-1168