Mandriva Linux Security Advisory : sarg (MDVSA-2008:079)
Critical Nessus Plugin ID 36436
SynopsisThe remote Mandriva Linux host is missing a security update.
DescriptionA stack-based buffer overflow in sarg (Squid Analysis Report Generator) allowed remote attackers to execute arbitrary code via a long Squid proxy server User-Agent header (CVE-2008-1167).
A cross-site scripting vulnerability in sarg version 2.x prior to 2.2.5 allowed remote attackers to inject arbitrary web script or HTML via the User-Agent heder, which is not properly handled when displaying the Squid proxy log (CVE-2008-1168).
In addition, a number of other fixes have been made such as making the getword() function more robust which should prevent any overflows, other segfaults have been fixed, and the useragent report is now more consistent with the other reports.
The updated packages have been patched to correct these issues.
SolutionUpdate the affected sarg package.