Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E25C6ECAAD3 for ; Mon, 5 Sep 2022 19:48:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 57F054047B; Mon, 5 Sep 2022 19:48:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 57F054047B X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vSMt7McNuuLO; Mon, 5 Sep 2022 19:48:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 443A6400FB; Mon, 5 Sep 2022 19:48:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 443A6400FB Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B47371BF37E for ; Mon, 5 Sep 2022 19:48:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8F69260F57 for ; Mon, 5 Sep 2022 19:48:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8F69260F57 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u27o7PYSJRk5 for ; Mon, 5 Sep 2022 19:48:22 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 2BABA60B74 Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by smtp3.osuosl.org (Postfix) with ESMTPS id 2BABA60B74 for ; Mon, 5 Sep 2022 19:48:22 +0000 (UTC) Received: from ymorin.is-a-geek.org (unknown [IPv6:2a01:cb19:8b51:cb00:5e76:18ec:e237:5279]) (Authenticated sender: yann.morin.1998@free.fr) by smtp1-g21.free.fr (Postfix) with ESMTPSA id 00F75B00585; Mon, 5 Sep 2022 21:48:14 +0200 (CEST) Received: by ymorin.is-a-geek.org (sSMTP sendmail emulation); Mon, 05 Sep 2022 21:48:14 +0200 Date: Mon, 5 Sep 2022 21:48:14 +0200 From: "Yann E. MORIN" To: Fabrice Fontaine Message-ID: <20220905194814.GH1490660@scaer> References: <20220904210448.211963-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220904210448.211963-1-fontaine.fabrice@gmail.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1662407299; bh=cQqZBzqSaD0HFDoBTo/H5H/e/SSmT8nKQx7X8fQotpQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JwUZ8NQI2yyiWTtOyzYcowmRhdso47WNYA9+JCrqJKnGgBElSwcYwU6t1MrKdaes0 u3beOB6IxnKAMqwP5Mkp2ITdSGOeoyU0u4hWjhAT1md9PvxH6UpeQDPyhVp2Pm021s PI98p4hdoobU40lliswLv7GIUfptE2KuoRbTk03/3uZRQ1krcco+D9P52djYkmeiEn w37srADCIpQxTj6e3y+JwKZaRwOWlbPF7p411FkkotbavOYBvuvHYn9YkbnhZxqmNJ UCEmUuEXDQCrKHAqLWJk11UzXNM106EiyVsA5q1H14rzuy5UKicqTMWTb4Eyw3j79W 8+IHXTAFezc6w== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=JwUZ8NQI Subject: Re: [Buildroot] [PATCH 1/1] package/minidlna: security bump to version 1.3.2 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bernd Kuhls , Simon Dawson , buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Fabrice, All, On 2022-09-04 23:04 +0200, Fabrice Fontaine spake thusly: > - Improved DNS rebinding attack protection. > - Fixed a potential crash in SSDP request parsing. > - Drop patch (already in version) > > https://sourceforge.net/projects/minidlna/files/minidlna/1.3.2 > > Signed-off-by: Fabrice Fontaine Applied to master, thanks. Regards, Yann E. MORIN. > --- > ...rotect-against-DNS-rebinding-attacks.patch | 66 ------------------- > package/minidlna/minidlna.hash | 6 +- > package/minidlna/minidlna.mk | 5 +- > 3 files changed, 4 insertions(+), 73 deletions(-) > delete mode 100644 package/minidlna/0001-upnphttp-Protect-against-DNS-rebinding-attacks.patch > > diff --git a/package/minidlna/0001-upnphttp-Protect-against-DNS-rebinding-attacks.patch b/package/minidlna/0001-upnphttp-Protect-against-DNS-rebinding-attacks.patch > deleted file mode 100644 > index 6d601f53b9..0000000000 > --- a/package/minidlna/0001-upnphttp-Protect-against-DNS-rebinding-attacks.patch > +++ /dev/null > @@ -1,66 +0,0 @@ > -From c21208508dbc131712281ec5340687e5ae89e940 Mon Sep 17 00:00:00 2001 > -From: Justin Maggard > -Date: Wed, 9 Feb 2022 18:32:50 -0800 > -Subject: [PATCH] upnphttp: Protect against DNS rebinding attacks > - > -Validate HTTP requests to protect against DNS rebinding. > - > -[Retrieved from: > -https://sourceforge.net/p/minidlna/git/ci/c21208508dbc131712281ec5340687e5ae89e940/] > -Signed-off-by: Fabrice Fontaine > ---- > - upnphttp.c | 17 +++++++++++++++++ > - upnphttp.h | 2 ++ > - 2 files changed, 19 insertions(+) > - > -diff --git a/upnphttp.c b/upnphttp.c > -index c8b5e99..62db89a 100644 > ---- a/upnphttp.c > -+++ b/upnphttp.c > -@@ -273,6 +273,11 @@ ParseHttpHeaders(struct upnphttp * h) > - p = colon + 1; > - while(isspace(*p)) > - p++; > -+ n = 0; > -+ while(p[n] >= ' ') > -+ n++; > -+ h->req_Host = p; > -+ h->req_HostLen = n; > - for(n = 0; n < n_lan_addr; n++) > - { > - for(i = 0; lan_addr[n].str[i]; i++) > -@@ -909,6 +914,18 @@ ProcessHttpQuery_upnphttp(struct upnphttp * h) > - } > - > - DPRINTF(E_DEBUG, L_HTTP, "HTTP REQUEST: %.*s\n", h->req_buflen, h->req_buf); > -+ if(h->req_Host && h->req_HostLen > 0) { > -+ const char *ptr = h->req_Host; > -+ DPRINTF(E_MAXDEBUG, L_HTTP, "Host: %.*s\n", h->req_HostLen, h->req_Host); > -+ for(i = 0; i < h->req_HostLen; i++) { > -+ if(*ptr != ':' && *ptr != '.' && (*ptr > '9' || *ptr < '0')) { > -+ DPRINTF(E_ERROR, L_HTTP, "DNS rebinding attack suspected (Host: %.*s)", h->req_HostLen, h->req_Host); > -+ Send404(h);/* 403 */ > -+ return; > -+ } > -+ ptr++; > -+ } > -+ } > - if(strcmp("POST", HttpCommand) == 0) > - { > - h->req_command = EPost; > -diff --git a/upnphttp.h b/upnphttp.h > -index e28a943..57eb2bb 100644 > ---- a/upnphttp.h > -+++ b/upnphttp.h > -@@ -89,6 +89,8 @@ struct upnphttp { > - struct client_cache_s * req_client; > - const char * req_soapAction; > - int req_soapActionLen; > -+ const char * req_Host; /* Host: header */ > -+ int req_HostLen; > - const char * req_Callback; /* For SUBSCRIBE */ > - int req_CallbackLen; > - const char * req_NT; > --- > -2.34.1 > - > diff --git a/package/minidlna/minidlna.hash b/package/minidlna/minidlna.hash > index 175fe67304..e55e5473d3 100644 > --- a/package/minidlna/minidlna.hash > +++ b/package/minidlna/minidlna.hash > @@ -1,6 +1,6 @@ > -# From https://sourceforge.net/projects/minidlna/files/minidlna/1.3.0/ > -sha1 6563a881884879b2aef52611934e08bb42985964 minidlna-1.3.0.tar.gz > +# From https://sourceforge.net/projects/minidlna/files/minidlna/1.3.2/ > +sha1 71750adadc34490d52f0b9a930c2731a47f9772d minidlna-1.3.2.tar.gz > # Locally computed > -sha256 47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63 minidlna-1.3.0.tar.gz > +sha256 222ce45a1a60c3ce3de17527955d38e5ff7a4592d61db39577e6bf88e0ae1cb0 minidlna-1.3.2.tar.gz > sha256 79146b7f558e56510b9a714ff75318c05ab93aeccfd6597497b9bce212cf92ea COPYING > sha256 94876d7886116e176e702b4902bd9f19731a6883db5f229ac2a7058a22aa6529 LICENCE.miniupnpd > diff --git a/package/minidlna/minidlna.mk b/package/minidlna/minidlna.mk > index 01ee8d0028..6ca72d9240 100644 > --- a/package/minidlna/minidlna.mk > +++ b/package/minidlna/minidlna.mk > @@ -4,7 +4,7 @@ > # > ################################################################################ > > -MINIDLNA_VERSION = 1.3.0 > +MINIDLNA_VERSION = 1.3.2 > MINIDLNA_SITE = https://downloads.sourceforge.net/project/minidlna/minidlna/$(MINIDLNA_VERSION) > MINIDLNA_LICENSE = GPL-2.0, BSD-3-Clause > MINIDLNA_LICENSE_FILES = COPYING LICENCE.miniupnpd > @@ -12,9 +12,6 @@ MINIDLNA_CPE_ID_VENDOR = readymedia_project > MINIDLNA_CPE_ID_PRODUCT = readymedia > MINIDLNA_SELINUX_MODULES = minidlna > > -# 0001-upnphttp-Protect-against-DNS-rebinding-attacks.patch > -MINIDLNA_IGNORE_CVES += CVE-2022-26505 > - > MINIDLNA_DEPENDENCIES = \ > $(TARGET_NLS_DEPENDENCIES) \ > ffmpeg flac libvorbis libogg libid3tag libexif jpeg sqlite \ > -- > 2.35.1 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot