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

Severity:normal
Title:Sarg: Remote execution of arbitrary code
Date:03/12/2008
Bugs: #212208, #212731
ID:200803-21

Synopsis

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

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.

Affected packages

Package Vulnerable Unaffected Architecture(s)
net-analyzer/sarg < 2.2.5 >= 2.2.5 All supported architectures

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.

Workaround

There is no known workaround at this time.

Resolution

All sarg users should upgrade to the latest version:

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

References

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-200803-21.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!