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.
*CVSS:
| Base Score: | 7.5 |
| Access Vector: | Network |
| Access Complexity: | Low |
| Authentication: | None |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 5.5 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Upgrade to the latest version of Sarg (2.2.4 or later), available from the SourceForge.net: Files Web site. See References.
References:
- BugTraq Mailing List, Sun Mar 02 2008 - 16:10:30 CST: Squid Analysis Report Generator <= 2.2.3.1 buffer overflow.
- SourceForge.net: Files: SARG - File Release Notes and Changelog - Release Name: sarg-2.2.4.
- 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
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
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
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
