Vulnerabilities > CVE-2009-3700 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Squidguard 1.3/1.4
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Buffer overflow in sgLog.c in squidGuard 1.3 and 1.4 allows remote attackers to cause a denial of service (application hang or loss of blocking functionality) via a long URL with many / (slash) characters, related to "emergency mode."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 2 |
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 FreeBSD Local Security Checks NASL id FREEBSD_PKG_692AB645BF5D11DE849B00151797C2D4.NASL description SquidGuard website reports : Patch 20091015 fixes one buffer overflow problem in sgLog.c when overlong URLs are requested. SquidGuard will then go into emergency mode were no blocking occurs. This is not required in this situation. Patch 20091019 fixes two bypass problems with URLs which length is close to the limit defined by MAX_BUF (default: 4096) in squidGuard and MAX_URL (default : 4096 in squid 2.x and 8192 in squid 3.x) in squid. For this kind of URLs the proxy request exceeds MAX_BUF causing squidGuard to complain about not being able to parse the squid request. Increasing the buffer limit to be higher than the one defined in MAX_URL solves the issue. last seen 2020-06-01 modified 2020-06-02 plugin id 42213 published 2009-10-23 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/42213 title FreeBSD : squidGuard -- multiple vulnerabilities (692ab645-bf5d-11de-849b-00151797c2d4) NASL family SuSE Local Security Checks NASL id SUSE_11_2_SQUIDGUARD-100730.NASL description Two buffer overflows in squidGard were fixed : CVE-2009-3700: Buffer overflow in sgLog.c in squidGuard 1.3 and 1.4 allows remote attackers to cause a denial of service (application hang or loss of blocking functionality) via a long URL with many / (slash) characters, related to last seen 2020-06-01 modified 2020-06-02 plugin id 48238 published 2010-08-03 reporter This script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/48238 title openSUSE Security Update : squidGuard (openSUSE-SU-2010:0460-1) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-2040.NASL description It was discovered that in squidguard, a URL redirector/filter/ACL plugin for squid, several problems in src/sgLog.c and src/sgDiv.c allow remote users to either : - cause a denial of service, by requesting long URLs containing many slashes; this forces the daemon into emergency mode, where it does not process requests anymore. - bypass rules by requesting URLs whose length is close to predefined buffer limits, in this case 2048 for squidguard and 4096 or 8192 for squid (depending on its version). last seen 2020-06-01 modified 2020-06-02 plugin id 46213 published 2010-05-03 reporter This script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/46213 title Debian DSA-2040-1 : squidguard - buffer overflow NASL family SuSE Local Security Checks NASL id SUSE_11_1_SQUIDGUARD-100730.NASL description Two buffer overflows in squidGard were fixed : CVE-2009-3700: Buffer overflow in sgLog.c in squidGuard 1.3 and 1.4 allows remote attackers to cause a denial of service (application hang or loss of blocking functionality) via a long URL with many / (slash) characters, related to last seen 2020-06-01 modified 2020-06-02 plugin id 48235 published 2010-08-03 reporter This script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/48235 title openSUSE Security Update : squidGuard (openSUSE-SU-2010:0460-1) NASL family SuSE Local Security Checks NASL id SUSE_11_3_SQUIDGUARD-100730.NASL description Two buffer overflows in squidGard were fixed : CVE-2009-3700: Buffer overflow in sgLog.c in squidGuard 1.3 and 1.4 allows remote attackers to cause a denial of service (application hang or loss of blocking functionality) via a long URL with many / (slash) characters, related to last seen 2020-06-01 modified 2020-06-02 plugin id 75748 published 2014-06-13 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/75748 title openSUSE Security Update : squidGuard (openSUSE-SU-2010:0460-1) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2009-293.NASL description Multiple vulnerabilities has been found and corrected in squidGuard : Buffer overflow in sgLog.c in squidGuard 1.3 and 1.4 allows remote attackers to cause a denial of service (application hang or loss of blocking functionality) via a long URL with many / (slash) characters, related to emergency mode. (CVE-2009-3700). Multiple buffer overflows in squidGuard 1.4 allow remote attackers to bypass intended URL blocking via a long URL, related to (1) the relationship between a certain buffer size in squidGuard and a certain buffer size in Squid and (2) a redirect URL that contains information about the originally requested URL (CVE-2009-3826). squidGuard was upgraded to 1.2.1 for MNF2/CS3/CS4 with additional upstream security and bug fixes patches applied. This update fixes these vulnerabilities. Update : Packages for 2008.0 are provided for Corporate Desktop 2008.0 customers. last seen 2020-06-01 modified 2020-06-02 plugin id 42356 published 2009-11-04 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/42356 title Mandriva Linux Security Advisory : squidGuard (MDVSA-2009:293-1)
References
- http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html
- http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html
- http://secunia.com/advisories/37107
- http://secunia.com/advisories/37107
- http://secunia.com/advisories/39679
- http://secunia.com/advisories/39679
- http://securitytracker.com/id?1023079
- http://securitytracker.com/id?1023079
- http://www.debian.org/security/2010/dsa-2040
- http://www.debian.org/security/2010/dsa-2040
- http://www.osvdb.org/59163
- http://www.osvdb.org/59163
- http://www.securityfocus.com/archive/1/507440/100/0/threaded
- http://www.securityfocus.com/archive/1/507440/100/0/threaded
- http://www.securityfocus.com/bid/36800
- http://www.securityfocus.com/bid/36800
- http://www.squidguard.org/Downloads/Patches/1.4/Readme.Patch-20091015
- http://www.squidguard.org/Downloads/Patches/1.4/Readme.Patch-20091015
- http://www.vupen.com/english/advisories/2009/3013
- http://www.vupen.com/english/advisories/2009/3013
- http://www.vupen.com/english/advisories/2010/1043
- http://www.vupen.com/english/advisories/2010/1043
- https://exchange.xforce.ibmcloud.com/vulnerabilities/53921
- https://exchange.xforce.ibmcloud.com/vulnerabilities/53921