Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=0f9808639e119a0a38d2c57ff135c13f9ecfb6cd
commit 0f9808639e119a0a38d2c57ff135c13f9ecfb6cd Author: crazy <[email protected]> Date: Sun Apr 16 19:41:45 2017 +0200 squid-3.5.25-1-x86_64 * Version bump * removed all old patches diff --git a/source/network-extra/squid/CVE-2012-5643-CVE-2013-0189.patch b/source/network-extra/squid/CVE-2012-5643-CVE-2013-0189.patch deleted file mode 100644 index e3a4f0f..0000000 --- a/source/network-extra/squid/CVE-2012-5643-CVE-2013-0189.patch +++ /dev/null @@ -1,203 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## CVE-2012-5643-CVE-2013-0189.patch.dpatch by Salvatore Bonaccorso <[email protected]> -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Description: cachemgr.cgi: Memory Leaks and DoS Vulnerability -## DP: * Ignore invalid Content-Length headers. -## DP: * Limit received POST requests to 4KB and discard the rest. -## DP: * Authentication credentials parser also leaks badly. -## DP: Author: Amos Jeffries <[email protected]> -## DP: Patch unstable prepared by Michael Stapelberg <[email protected]> -## DP: Add additional fixes by http://www.squid-cache.org/Versions/v3/3.1/changesets/squid-3.1-10486.patch - -@DPATCH@ -diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' squid3~/tools/cachemgr.cc squid3/tools/cachemgr.cc ---- squid3~/tools/cachemgr.cc 2013-02-23 14:03:42.000000000 +0100 -+++ squid3/tools/cachemgr.cc 2013-02-23 14:04:27.908347122 +0100 -@@ -586,12 +586,15 @@ - if ((p = strchr(x, '\n'))) - *p = '\0'; - action = xstrtok(&x, '\t'); -+ if (!action) { -+ xfree(buf); -+ return ""; -+ } - description = xstrtok(&x, '\t'); - if (!description) - description = action; -- if (!action) -- return ""; - snprintf(html, sizeof(html), " <a href=\"%s\">%s</a>", menu_url(req, action), description); -+ xfree(buf); - return html; - } - -@@ -820,7 +823,7 @@ - } - - if (!check_target_acl(req->hostname, req->port)) { -- snprintf(buf, 1024, "target %s:%d not allowed in cachemgr.conf\n", req->hostname, req->port); -+ snprintf(buf, sizeof(buf), "target %s:%d not allowed in cachemgr.conf\n", req->hostname, req->port); - error_html(buf); - return 1; - } -@@ -832,7 +835,7 @@ - } else if ((S = req->hostname)) - (void) 0; - else { -- snprintf(buf, 1024, "Unknown host: %s\n", req->hostname); -+ snprintf(buf, sizeof(buf), "Unknown host: %s\n", req->hostname); - error_html(buf); - return 1; - } -@@ -846,17 +849,19 @@ - #else - if ((s = socket(PF_INET, SOCK_STREAM, 0)) < 0) { - #endif -- snprintf(buf, 1024, "socket: %s\n", xstrerror()); -+ snprintf(buf, sizeof(buf), "socket: %s\n", xstrerror()); - error_html(buf); -+ S.FreeAddrInfo(AI); - return 1; - } - - if (connect(s, AI->ai_addr, AI->ai_addrlen) < 0) { -- snprintf(buf, 1024, "connect %s: %s\n", -+ snprintf(buf, sizeof(buf), "connect %s: %s\n", - S.ToURL(ipbuf,MAX_IPSTRLEN), - xstrerror()); - error_html(buf); - S.FreeAddrInfo(AI); -+ close(s); - return 1; - } - -@@ -915,8 +920,6 @@ - read_post_request(void) - { - char *s; -- char *buf; -- int len; - - if ((s = getenv("REQUEST_METHOD")) == NULL) - return NULL; -@@ -927,15 +930,34 @@ - if ((s = getenv("CONTENT_LENGTH")) == NULL) - return NULL; - -- if ((len = atoi(s)) <= 0) -+ if (*s == '-') // negative length content huh? - return NULL; - -- buf = (char *)xmalloc(len + 1); -+ uint64_t len; - -- if (fread(buf, len, 1, stdin) == 0) -+ char *endptr = s+ strlen(s); -+ if ((len = strtoll(s, &endptr, 10)) <= 0) - return NULL; - -- buf[len] = '\0'; -+ // limit the input to something reasonable. -+ // 4KB should be enough for the GET/POST data length, but may be extended. -+ size_t bufLen = (len < 4096 ? len : 4095); -+ char *buf = (char *)xmalloc(bufLen + 1); -+ -+ size_t readLen = fread(buf, 1, bufLen, stdin); -+ if (readLen == 0) { -+ xfree(buf); -+ return NULL; -+ } -+ buf[readLen] = '\0'; -+ len -= readLen; -+ -+ // purge the remainder of the request entity -+ while (len > 0 && readLen) { -+ char temp[65535]; -+ readLen = fread(temp, 1, 65535, stdin); -+ len -= readLen; -+ } - - return buf; - } -@@ -1075,37 +1097,49 @@ - debug(3) fprintf(stderr, "cmgr: length ok\n"); - - /* parse ( a lot of memory leaks, but that is cachemgr style :) */ -- if ((host_name = strtok(buf, "|")) == NULL) -+ if ((host_name = strtok(buf, "|")) == NULL) { -+ xfree(buf); - return; -+ } - - debug(3) fprintf(stderr, "cmgr: decoded host: '%s'\n", host_name); - -- if ((time_str = strtok(NULL, "|")) == NULL) -+ if ((time_str = strtok(NULL, "|")) == NULL) { -+ xfree(buf); - return; -+ } - - debug(3) fprintf(stderr, "cmgr: decoded time: '%s' (now: %d)\n", time_str, (int) now); - -- if ((user_name = strtok(NULL, "|")) == NULL) -+ if ((user_name = strtok(NULL, "|")) == NULL) { -+ xfree(buf); - return; -+ } - - debug(3) fprintf(stderr, "cmgr: decoded uname: '%s'\n", user_name); - -- if ((passwd = strtok(NULL, "|")) == NULL) -+ if ((passwd = strtok(NULL, "|")) == NULL) { -+ xfree(buf); - return; -+ } - - debug(2) fprintf(stderr, "cmgr: decoded passwd: '%s'\n", passwd); - - /* verify freshness and validity */ -- if (atoi(time_str) + passwd_ttl < now) -+ if (atoi(time_str) + passwd_ttl < now) { -+ xfree(buf); - return; -+ } - -- if (strcasecmp(host_name, req->hostname)) -+ if (strcasecmp(host_name, req->hostname)) { -+ xfree(buf); - return; -+ } - - debug(1) fprintf(stderr, "cmgr: verified auth. info.\n"); - - /* ok, accept */ -- xfree(req->user_name); -+ safe_free(req->user_name); - - req->user_name = xstrdup(user_name); - -@@ -1126,7 +1160,6 @@ - { - static char buf[1024]; - size_t stringLength = 0; -- const char *str64; - - if (!req->passwd) - return ""; -@@ -1135,13 +1168,11 @@ - req->user_name ? req->user_name : "", - req->passwd); - -- str64 = base64_encode(buf); -- -- stringLength += snprintf(buf, sizeof(buf), "Authorization: Basic %s\r\n", str64); -+ stringLength += snprintf(buf, sizeof(buf), "Authorization: Basic %s\r\n", base64_encode(buf)); - - assert(stringLength < sizeof(buf)); - -- snprintf(&buf[stringLength], sizeof(buf) - stringLength, "Proxy-Authorization: Basic %s\r\n", str64); -+ snprintf(&buf[stringLength], sizeof(buf) - stringLength, "Proxy-Authorization: Basic %s\r\n", base64_encode(buf)); - - return buf; - } diff --git a/source/network-extra/squid/CVE-2014-3609.patch b/source/network-extra/squid/CVE-2014-3609.patch deleted file mode 100644 index 332747d..0000000 --- a/source/network-extra/squid/CVE-2014-3609.patch +++ /dev/null @@ -1,53 +0,0 @@ ------------------------------------------------------------- -revno: 13555 -revision-id: [email protected] -parent: [email protected] -committer: Amos Jeffries <[email protected]> -branch nick: trunk -timestamp: Tue 2014-08-26 08:48:43 -0700 -message: - Ignore Range headers with unidentifiable byte-range values - - If squid is unable to determine the byte value for ranges, treat the - header as invalid. ------------------------------------------------------------- -# Bazaar merge directive format 2 (Bazaar 0.90) -# revision_id: [email protected] -# target_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ -# testament_sha1: 12b63ac9047fd7e54d209d59502ed290a6d7b4eb -# timestamp: 2014-08-26 15:52:41 +0000 -# source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ -# base_revision_id: [email protected]\ -# 6s7g6mr56314k9qs -# -Index: squid3-3.1.19/src/HttpHdrRange.cc -=================================================================== ---- squid3-3.1.19.orig/src/HttpHdrRange.cc -+++ squid3-3.1.19/src/HttpHdrRange.cc -@@ -93,7 +93,7 @@ HttpHdrRangeSpec::parseInit(const char * - - /* is it a suffix-byte-range-spec ? */ - if (*field == '-') { -- if (!httpHeaderParseOffset(field + 1, &length)) -+ if (!httpHeaderParseOffset(field + 1, &length) || !known_spec(length)) - return false; - } else - /* must have a '-' somewhere in _this_ field */ -@@ -101,7 +101,7 @@ HttpHdrRangeSpec::parseInit(const char * - debugs(64, 2, "invalid (missing '-') range-spec near: '" << field << "'"); - return false; - } else { -- if (!httpHeaderParseOffset(field, &offset)) -+ if (!httpHeaderParseOffset(field, &offset) || !known_spec(offset)) - return false; - - p++; -@@ -110,7 +110,7 @@ HttpHdrRangeSpec::parseInit(const char * - if (p - field < flen) { - int64_t last_pos; - -- if (!httpHeaderParseOffset(p, &last_pos)) -+ if (!httpHeaderParseOffset(p, &last_pos) || !known_spec(last_pos)) - return false; - - // RFC 2616 s14.35.1 MUST: last-byte-pos >= first-byte-pos diff --git a/source/network-extra/squid/CVE-2014-6270.patch b/source/network-extra/squid/CVE-2014-6270.patch deleted file mode 100644 index 7b7f85c..0000000 --- a/source/network-extra/squid/CVE-2014-6270.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- squid/src/snmp_core.cc 2014-06-25 16:41:39.000000000 +0200 -+++ squid/src/snmp_core.cc 2014-09-09 11:52:13.237394779 +0200 -@@ -375,12 +375,11 @@ - - len = comm_udp_recvfrom(sock, - buf, -- SNMP_REQUEST_SIZE, -+ SNMP_REQUEST_SIZE - 1, - 0, - from); - - if (len > 0) { -- buf[len] = '\0'; - debugs(49, 3, "snmpHandleUdp: FD " << sock << ": received " << len << " bytes from " << from << "."); - - snmp_rq = (SnmpRequest *)xcalloc(1, sizeof(SnmpRequest)); - diff --git a/source/network-extra/squid/FrugalBuild b/source/network-extra/squid/FrugalBuild index 3ab98ba..31b9754 100644 --- a/source/network-extra/squid/FrugalBuild +++ b/source/network-extra/squid/FrugalBuild @@ -2,8 +2,8 @@ # Maintainer: Miklos Vajna <[email protected]> pkgname=squid -pkgver=3.5.24 -pkgrel=2 +pkgver=3.5.25 +pkgrel=1 pkgdesc="Squid Web Proxy Cache" url="http://www.squid-cache.org/" depends=('libtool' 'gnutls') @@ -17,7 +17,7 @@ Finclude systemd up2date="Flastarchive $url/Versions/v3/3.5/ .tar.xz" source=("$url/Versions/v3/3.5/squid-${pkgver}.tar.xz" \ squid cache_swap.sh squid.service squid.sysconfig) -sha1sums=('f203637783301a4b86e554b6dd226de721762ae5' \ +sha1sums=('63ea00cb918e3106fd91b286ec907f1681e0f0e8' \ '53042dd86e482d4a6eff9e34ecb01352439c5026' \ 'a952ab169892735e6db22c00b08902fb9e8dd6ac' \ '97d4efee086ddc658466a47d6daa876ccbea1abb' \ _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
