Vulnerabilities > CVE-2012-3501 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Darold Squidclamav
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
The squidclamav_check_preview_handler function in squidclamav.c in SquidClamav 5.x before 5.8 and 6.x before 6.7 passes an unescaped URL to a system command call, which allows remote attackers to cause a denial of service (daemon crash) via a URL with certain characters, as demonstrated using %0D or %0A.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Nessus
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201209-08.NASL description The remote host is affected by the vulnerability described in GLSA-201209-08 (SquidClamav: Denial of Service) SquidClamav does not properly escape URLs before passing them to the system command call. Impact : A remote attacker could send a specially crafted URL to SquidClamav, possibly resulting in a Denial of Service condition. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 62289 published 2012-09-25 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/62289 title GLSA-201209-08 : SquidClamav: Denial of Service NASL family CGI abuses NASL id SQUIDCLAMAV_6_7_DOS.NASL description The version of SquidClamav installed on the remote host is affected by a remote denial of service (DoS) vulnerability because it fails to properly escape URL last seen 2020-06-01 modified 2020-06-02 plugin id 62031 published 2012-09-10 reporter This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/62031 title SquidClamav Specially Crafted Character Parsing Remote DoS NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_8DEFA0F9EE8A11E18BD80022156E8794.NASL description SquidClamav developers report : Add a workaround for a squidGuard bug that unescape the URL and send it back unescaped. This result in garbage staying into pipe of the system command call and could crash squidclamav on next read or return false information. This is specially true with URL containing the %0D or %0A character. This vulnerability can be triggered only in configurations where external chained URL checker is configured via last seen 2020-06-01 modified 2020-06-02 plugin id 61675 published 2012-08-27 reporter This script is Copyright (C) 2012-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/61675 title FreeBSD : squidclamav -- Denial of Service (8defa0f9-ee8a-11e1-8bd8-0022156e8794)
References
- http://freecode.com/projects/squidclamav/releases/346722
- http://freecode.com/projects/squidclamav/releases/346722
- http://secunia.com/advisories/49057
- http://secunia.com/advisories/49057
- http://squidclamav.darold.net/news.html
- http://squidclamav.darold.net/news.html
- http://www.openwall.com/lists/oss-security/2012/08/16/2
- http://www.openwall.com/lists/oss-security/2012/08/16/2
- http://www.openwall.com/lists/oss-security/2012/08/16/4
- http://www.openwall.com/lists/oss-security/2012/08/16/4
- http://www.osvdb.org/84138
- http://www.osvdb.org/84138
- http://www.securityfocus.com/bid/54663
- http://www.securityfocus.com/bid/54663
- https://bugs.gentoo.org/show_bug.cgi?id=428778
- https://bugs.gentoo.org/show_bug.cgi?id=428778
- https://github.com/darold/squidclamav/commit/80f74451f628264d1d9a1f1c0bbcebc932ba5e00
- https://github.com/darold/squidclamav/commit/80f74451f628264d1d9a1f1c0bbcebc932ba5e00