Sarg useragent() buffer overflow
| sarg-useragent-bo (40970) |
Description:
Sarg is vulnerable to a stack-based buffer overflow, caused by improper bounds checking by the useragent() function. By sending an overly long User-Agent header, a remote attacker could overflow a buffer and execute arbitrary code on the system with elevated privileges or cause the application to crash.
Platforms Affected:
- Gentoo, Linux
- MandrakeSoft, Mandrake Linux 2007
- MandrakeSoft, Mandrake Linux 2007 X86_64
- MandrakeSoft, Mandrake Linux 2007.1 X86_64
- MandrakeSoft, Mandrake Linux 2007.1
- MandrakeSoft, Mandrake Linux 2008.0
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Multi Network Firewall 2.0
- Sarg, Sarg 2.2.3.1
Remedy:
Upgrade to the latest version of Sarg (2.2.4 or later), available from the SourceForge.net: Files Web site. See References.
Consequences:
Gain Access
References:
- BugTraq Mailing List, Sun Mar 02 2008 - 16:10:30 CST, Squid Analysis Report Generator <= 2.2.3.1 buffer overflow at http://archives.neohapsis.com/archives/bugtraq/2008-03/0012.html.
- SourceForge.net: Files, SARG - File Release Notes and Changelog - Release Name: sarg-2.2.4 at http://sourceforge.net/project/shownotes.php?release_id=581212.
- BID-28077: SARG User-Agent Processing HTML Injection and Stack Buffer Overflow Vulnerabilities
- CVE-2008-1167: Stack-based buffer overflow in the useragent function in useragent.c in Squid Analysis Report Generator (Sarg) 2.2.3.1 allows remote attackers to execute arbitrary code via a long Squid proxy server User-Agent header. NOTE: some of these details are obtained from third party information.
- GLSA-200803-21: Sarg: Remote execution of arbitrary code
- MDVSA-2008:079: Updated sarg packages fix multiple vulnerabilities
- SA28668: Sarg User-Agent Processing Multiple Vulnerabilities
- SECTRACK ID: 1019536: Squid Analysis Report Generator Buffer Overflow in Processing HTTP User-Agent and Access Logs Lets Remote Users Execute Arbitrary Code
- SUSE-SR:2008:006: SUSE Security Summary Report
- VUPEN/ADV-2008-0749: Squid Analysis Report Generator User-Agent Code Execution Issues
Reported:
Mar 02, 2008
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
