Vulnerabilities > CVE-2008-1612 - Improper Input Validation vulnerability in Squid 2.6.Stable17
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
The arrayShrink function (lib/Array.c) in Squid 2.6.STABLE17 allows attackers to cause a denial of service (process exit) via unknown vectors that cause an array to shrink to 0 entries, which triggers an assert error. NOTE: this issue is due to an incorrect fix for CVE-2007-6239.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 |
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.
- Server Side Include (SSI) Injection An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
- Cross Zone Scripting An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
Nessus
NASL family Firewalls NASL id SQUID_2_6_17.NASL description According to its banner, the version of the Squid proxy caching server installed on the remote host is older than 2.6.STABLE18. Such versions reportedly use incorrect bounds checking when processing some cache update replies. A client trusted to use the service may be able to leverage this issue to crash the application, thereby denying service to legitimate users. Note that an earlier version of the advisory said 2.6.STABLE17 fixed the issue, but it turned out that the patch did not fully address the issue. last seen 2020-06-01 modified 2020-06-02 plugin id 29216 published 2007-12-04 reporter This script is Copyright (C) 2007-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/29216 title Squid < 2.6.STABLE18 Cache Update Reply Unspecified DoS code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(29216); script_version("1.22"); script_cvs_date("Date: 2018/11/15 20:50:22"); script_cve_id("CVE-2007-6239", "CVE-2008-1612"); script_bugtraq_id(26687, 28693); script_name(english:"Squid < 2.6.STABLE18 Cache Update Reply Unspecified DoS"); script_summary(english:"Checks version of Squid"); script_set_attribute(attribute:"synopsis", value:"The remote proxy server is prone to a denial of service attack."); script_set_attribute(attribute:"description", value: "According to its banner, the version of the Squid proxy caching server installed on the remote host is older than 2.6.STABLE18. Such versions reportedly use incorrect bounds checking when processing some cache update replies. A client trusted to use the service may be able to leverage this issue to crash the application, thereby denying service to legitimate users. Note that an earlier version of the advisory said 2.6.STABLE17 fixed the issue, but it turned out that the patch did not fully address the issue."); script_set_attribute(attribute:"see_also", value:"http://www.squid-cache.org/Advisories/SQUID-2007_2.txt"); script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/484662/30/0/threaded"); script_set_attribute(attribute:"solution", value: "Either upgrade to Squid version 2.6.STABLE18 or later or apply the patch referenced in the project's advisory above."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P"); script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_cwe_id(20); script_set_attribute(attribute:"plugin_publication_date", value:"2007/12/04"); script_set_attribute(attribute:"potential_vulnerability", value:"true"); script_set_attribute(attribute:"plugin_type", value:"remote"); script_set_attribute(attribute:"cpe", value:"cpe:/a:squid-cache:squid"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Firewalls"); script_copyright(english:"This script is Copyright (C) 2007-2018 Tenable Network Security, Inc."); script_dependencies("squid_version.nasl"); script_require_keys("www/squid", "Settings/ParanoidReport"); script_require_ports("Services/http_proxy",3128, 8080); exit(0); } include("audit.inc"); include("global_settings.inc"); if (report_paranoia < 2) audit(AUDIT_PARANOID); # Build a list of ports from the KB list = get_kb_list("http_proxy/*/squid/version"); if (isnull(list)) exit(0, "The host does not appear to be running Squid proxy server."); vulnerable = FALSE; foreach item (keys(list)) { port = ereg_replace(pattern:'^http_proxy/([0-9]+)/squid/version', replace:'\\1', string:item); version = list[item]; source = get_kb_item('http_proxy/'+port+'/squid/source'); if ( (version =~ '^[01]\\.') || (version =~ '^2\\.[0-5]\\.') || (version =~ '^2\\.6\\.STABLE([0-9]|1[0-7])([^0-9]|$)') ) { vulnerable = TRUE; if (report_verbosity > 0) { report = '\n Version source : ' + source + '\n Installed version : ' + version + '\n Fixed version : 2.6.STABLE18' + '\n'; security_warning(port:port, extra:report); } else security_warning(port:port); } } if (!vulnerable) { exit(0, "No vulnerable Squid installs were detected on the remote host."); }
NASL family SuSE Local Security Checks NASL id SUSE_SQUID-5155.NASL description A flaw in a previous previous security update could cause squid to crash under certain circumstances (CVE-2008-1612). last seen 2020-06-01 modified 2020-06-02 plugin id 32182 published 2008-05-09 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/32182 title openSUSE 10 Security Update : squid (squid-5155) NASL family SuSE Local Security Checks NASL id SUSE_SQUID-5301.NASL description A flaw in a previous previous security update could cause squid to crash under certain circumstances. (CVE-2008-1612) last seen 2020-06-01 modified 2020-06-02 plugin id 41584 published 2009-09-24 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/41584 title SuSE 10 Security Update : Squid (ZYPP Patch Number 5301) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200903-38.NASL description The remote host is affected by the vulnerability described in GLSA-200903-38 (Squid: Multiple Denial of Service vulnerabilities) The arrayShrink function in lib/Array.c can cause an array to shrink to 0 entries, which triggers an assert error. NOTE: this issue is due to an incorrect fix for CVE-2007-6239 (CVE-2008-1612). An invalid version number in a HTTP request may trigger an assertion in HttpMsg.c and HttpStatusLine.c (CVE-2009-0478). Impact : The issues allows for Denial of Service attacks against the service via an HTTP request with an invalid version number and other specially crafted requests. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 36013 published 2009-03-25 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/36013 title GLSA-200903-38 : Squid: Multiple Denial of Service vulnerabilities NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-601-1.NASL description It was discovered that Squid did not perform proper bounds checking when processing cache update replies. A remote authenticated user may be able to trigger an assertion error and cause a denial of service. This vulnerability is due to an incorrect upstream fix for CVE-2007-6239. (CVE-2008-1612). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 31967 published 2008-04-17 reporter Ubuntu Security Notice (C) 2008-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/31967 title Ubuntu 6.06 LTS / 6.10 / 7.04 / 7.10 : squid vulnerability (USN-601-1) NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2008-0214.NASL description Updated squid packages that fix a security issue are now available for Red Hat Enterprise Linux 2.1, 3, 4 and 5. This update has been rated as having moderate security impact by the Red Hat Security Response Team. Squid is a high-performance proxy caching server for Web clients, supporting FTP, gopher, and HTTP data objects. A flaw was found in the way squid manipulated HTTP headers for cached objects stored in system memory. An attacker could use this flaw to cause a squid child process to exit. This interrupted existing connections and made proxy services unavailable. Note: the parent squid process started a new child process, so this attack only resulted in a temporary denial of service. (CVE-2008-1612) Users of squid are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 31840 published 2008-04-11 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/31840 title RHEL 2.1 / 3 / 4 / 5 : squid (RHSA-2008:0214) NASL family SuSE Local Security Checks NASL id SUSE_SQUID-5157.NASL description A flaw in a previous previous security update could cause squid to crash under certain circumstances. (CVE-2008-1612) last seen 2020-06-01 modified 2020-06-02 plugin id 32183 published 2008-05-09 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/32183 title SuSE 10 Security Update : squid (ZYPP Patch Number 5157) NASL family Oracle Linux Local Security Checks NASL id ORACLELINUX_ELSA-2008-0214.NASL description From Red Hat Security Advisory 2008:0214 : Updated squid packages that fix a security issue are now available for Red Hat Enterprise Linux 2.1, 3, 4 and 5. This update has been rated as having moderate security impact by the Red Hat Security Response Team. Squid is a high-performance proxy caching server for Web clients, supporting FTP, gopher, and HTTP data objects. A flaw was found in the way squid manipulated HTTP headers for cached objects stored in system memory. An attacker could use this flaw to cause a squid child process to exit. This interrupted existing connections and made proxy services unavailable. Note: the parent squid process started a new child process, so this attack only resulted in a temporary denial of service. (CVE-2008-1612) Users of squid are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 67679 published 2013-07-12 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/67679 title Oracle Linux 3 / 4 / 5 : squid (ELSA-2008-0214) NASL family SuSE Local Security Checks NASL id SUSE9_12135.NASL description A flaw in a previous previous security update could cause squid to crash under certain circumstances. (CVE-2008-1612) last seen 2020-06-01 modified 2020-06-02 plugin id 41208 published 2009-09-24 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/41208 title SuSE9 Security Update : squid (YOU Patch Number 12135) NASL family Fedora Local Security Checks NASL id FEDORA_2008-2740.NASL description This update fix a regression introduced in Squid security advisory SQUID-2007:2. Attacker could use this flaw to cause exit of squid child process, interrupting proxied connections and causing temporary denial of service. (CVE-2008-1612, #439801) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 32087 published 2008-05-01 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/32087 title Fedora 8 : squid-2.6.STABLE19-1.fc8 (2008-2740) NASL family Scientific Linux Local Security Checks NASL id SL_20080408_SQUID_ON_SL3_X.NASL description A flaw was found in the way squid manipulated HTTP headers for cached objects stored in system memory. An attacker could use this flaw to cause a squid child process to exit. This interrupted existing connections and made proxy services unavailable. Note: the parent squid process started a new child process, so this attack only resulted in a temporary denial of service. (CVE-2008-1612) last seen 2020-06-01 modified 2020-06-02 plugin id 60381 published 2012-08-01 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/60381 title Scientific Linux Security Update : squid on SL3.x, SL4.x, SL5.x i386/x86_64 NASL family CentOS Local Security Checks NASL id CENTOS_RHSA-2008-0214.NASL description Updated squid packages that fix a security issue are now available for Red Hat Enterprise Linux 2.1, 3, 4 and 5. This update has been rated as having moderate security impact by the Red Hat Security Response Team. Squid is a high-performance proxy caching server for Web clients, supporting FTP, gopher, and HTTP data objects. A flaw was found in the way squid manipulated HTTP headers for cached objects stored in system memory. An attacker could use this flaw to cause a squid child process to exit. This interrupted existing connections and made proxy services unavailable. Note: the parent squid process started a new child process, so this attack only resulted in a temporary denial of service. (CVE-2008-1612) Users of squid are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 31947 published 2008-04-17 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/31947 title CentOS 3 / 4 / 5 : squid (CESA-2008:0214) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2008-134.NASL description An incorrect fix for CVE-2007-6239 resulted in Squid not performing proper bounds checking when processing cache update replies. Because of this, a remote authenticated user might have been able to trigger an assertion error and cause a denial of service (CVE-2008-1612). The updated packages have been patched to correct this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 36563 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/36563 title Mandriva Linux Security Advisory : squid (MDVSA-2008:134) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-1646.NASL description A weakness has been discovered in squid, a caching proxy server. The flaw was introduced upstream in response to CVE-2007-6239, and announced by Debian in DSA-1482-1. The flaw involves an over-aggressive bounds check on an array resize, and could be exploited by an authorized client to induce a denial of service condition against squid. last seen 2020-06-01 modified 2020-06-02 plugin id 34354 published 2008-10-07 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/34354 title Debian DSA-1646-1 : squid - array bounds check
Oval
accepted | 2013-04-29T04:13:37.142-04:00 | ||||||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||||||
description | The arrayShrink function (lib/Array.c) in Squid 2.6.STABLE17 allows attackers to cause a denial of service (process exit) via unknown vectors that cause an array to shrink to 0 entries, which triggers an assert error. NOTE: this issue is due to an incorrect fix for CVE-2007-6239. | ||||||||||||||||||||||||||||||||
family | unix | ||||||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:11376 | ||||||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||||||
submitted | 2010-07-09T03:56:16-04:00 | ||||||||||||||||||||||||||||||||
title | The arrayShrink function (lib/Array.c) in Squid 2.6.STABLE17 allows attackers to cause a denial of service (process exit) via unknown vectors that cause an array to shrink to 0 entries, which triggers an assert error. NOTE: this issue is due to an incorrect fix for CVE-2007-6239. | ||||||||||||||||||||||||||||||||
version | 27 |
Redhat
advisories |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
rpms |
|
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 28693 CVE(CAN) ID: CVE-2008-1612 Squid是一个高效的Web缓存及代理程序,最初是为Unix平台开发的,现在也被移植到Linux和大多数的Unix类系统中,最新的Squid可以运行在Windows平台下。 Squid的arrayShrink()函数操控系统内存中所储存的缓存对象的HTTP头的方式存在漏洞,攻击者可以利用这个漏洞导致squid子进程退出,这会中断已有连接,导致代理服务不可以。 Squid父进程会启动一个新的子进程,因此这种攻击仅会导致临时的拒绝服务。这个漏洞是由于没有正确地修复CVE-2007-6239中所述漏洞而导致的。 Squid Web Proxy Cache 3 beta Squid Web Proxy Cache 2.0 - 2.6.STABLE17 RedHat ------ RedHat已经为此发布了一个安全公告(RHSA-2008:0214-01)以及相应补丁: RHSA-2008:0214-01:Moderate: squid security update 链接:<a href=https://www.redhat.com/support/errata/RHSA-2008-0214.html target=_blank>https://www.redhat.com/support/errata/RHSA-2008-0214.html</a> Squid ----- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=http://www.squid-cache.org/Versions/v2/2.6/changesets/11882.patch target=_blank>http://www.squid-cache.org/Versions/v2/2.6/changesets/11882.patch</a> <a href=http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE19.tar.gz target=_blank>http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE19.tar.gz</a> |
id | SSV:3184 |
last seen | 2017-11-19 |
modified | 2008-04-17 |
published | 2008-04-17 |
reporter | Root |
title | Squid Web代理缓存arrayShrink()函数远程拒绝服务漏洞 |
References
- http://www.squid-cache.org/Versions/v2/2.6/changesets/11882.patch
- http://www.squid-cache.org/Advisories/SQUID-2007_2.txt
- http://www.openwall.com/lists/oss-security/2008/04/01/5
- http://marc.info/?l=squid-announce&m=120614453813157&w=2
- http://www.ubuntu.com/usn/usn-601-1
- http://www.securityfocus.com/bid/28693
- http://www.redhat.com/support/errata/RHSA-2008-0214.html
- http://secunia.com/advisories/29813
- http://secunia.com/advisories/27477
- https://www.redhat.com/archives/fedora-package-announce/2008-April/msg00560.html
- http://lists.opensuse.org/opensuse-security-announce/2008-05/msg00000.html
- http://secunia.com/advisories/30032
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:134
- http://secunia.com/advisories/32109
- http://security.gentoo.org/glsa/glsa-200903-38.xml
- http://secunia.com/advisories/34467
- http://www.debian.org/security/2008/dsa-1646
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41586
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11376