Gentoo Logo

Sarg: Remote execution of arbitrary code

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200803-21 / sarg
Release Date March 12, 2008
Latest Revision March 12, 2008: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-analyzer/sarg < 2.2.5 >= 2.2.5 All supported architectures

Related bugreports: #212208, #212731

Synopsis

Sarg is vulnerable to the execution of arbitrary code when processed with untrusted input files.

2.  Impact Information

Background

Sarg (Squid Analysis Report Generator) is a tool that provides many informations about the Squid web proxy server users activities: time, sites, traffic, etc.

Description

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.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All sarg users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-analyzer/sarg-2.2.5"

4.  References



Print

Updated March 12, 2008

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Support OSL

Support OSL

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

Global Netoptex Inc.

Global Netoptex Inc.

Bytemark

Bytemark

Linux World Expo

Linux World Expo

Copyright 2001-2008 Gentoo Foundation, Inc. Questions, Comments? Contact us.