From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 17 15:30:16 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E3581065678 for ; Fri, 17 Feb 2012 15:30:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0D9418FC16 for ; Fri, 17 Feb 2012 15:30:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1HFUF5K051793 for ; Fri, 17 Feb 2012 15:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1HFUFwK051790; Fri, 17 Feb 2012 15:30:15 GMT (envelope-from gnats) Resent-Date: Fri, 17 Feb 2012 15:30:15 GMT Resent-Message-Id: <201202171530.q1HFUFwK051790@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Spil Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 028B01065672 for ; Fri, 17 Feb 2012 15:26:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E1D598FC14 for ; Fri, 17 Feb 2012 15:26:17 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q1HFQH0Y053985 for ; Fri, 17 Feb 2012 15:26:17 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q1HFQHUH053984; Fri, 17 Feb 2012 15:26:17 GMT (envelope-from nobody) Message-Id: <201202171526.q1HFQHUH053984@red.freebsd.org> Date: Fri, 17 Feb 2012 15:26:17 GMT From: Spil To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/165239: lang/python27 2.x/3.x DoS vulnerable X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 15:30:16 -0000 >Number: 165239 >Category: ports >Synopsis: lang/python27 2.x/3.x DoS vulnerable >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Feb 17 15:30:15 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Spil >Release: FreeBSD-9.0 >Organization: n.a. >Environment: FreeBSD gw.example.org 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Mon Jan 9 09:24:45 CET 2012 root@gw.example.org:/usr/obj/usr/src/sys/FREEBSD90 i386 >Description: DoS vuln Python http://www.vuxml.org/freebsd/b4f8be9e-56b2-11e1-9fb7-003067b2972c.html http://bugs.python.org/issue14001 python bug report has a patch for the latest version but not for earlier versions >How-To-Repeat: n.a. >Fix: As per the patch on http://bugs.python.org/issue14001 --- Lib/SimpleXMLRPCServer.py.orig 2011-06-11 17:46:23.000000000 +0200 +++ Lib/SimpleXMLRPCServer.py 2012-02-17 16:17:11.000000000 +0100 @@ -486,7 +486,10 @@ L = [] while size_remaining: chunk_size = min(size_remaining, max_chunk_size) - L.append(self.rfile.read(chunk_size)) + chunk = self.rfile.read(chunk_size) + if not chunk: + break + L.append(chunk) size_remaining -= len(L[-1]) data = ''.join(L) >Release-Note: >Audit-Trail: >Unformatted: