From nobody@FreeBSD.org  Thu Apr 10 16:13:01 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 6B3ABE34
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 10 Apr 2014 16:13:01 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 580C51515
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 10 Apr 2014 16:13:01 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3AGD1kg065774
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 10 Apr 2014 16:13:01 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3AGD1jp065765;
	Thu, 10 Apr 2014 16:13:01 GMT
	(envelope-from nobody)
Message-Id: <201404101613.s3AGD1jp065765@cgiserv.freebsd.org>
Date: Thu, 10 Apr 2014 16:13:01 GMT
From: David Noel <david.i.noel@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: MITM attacks against portsnap
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188428
>Category:       bin
>Synopsis:       MITM attacks against portsnap(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cperciva
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 10 16:20:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun Apr 13 23:38:00 UTC 2014
>Originator:     David Noel
>Release:        9.2
>Organization:
>Environment:
>Description:
Portsnap extracts fetched data prior to its SHA256 verification. The extraction libraries used have a long history of bugs so its reasonable to assume there might be more. Portsnap runs as root. Using a vulnerability in the decompression libraries an attacker who was MITM-capable could compromise any FreeBSD system running portsnap.
>How-To-Repeat:

>Fix:
Solution summary: a re-working of the snapshot hashing and hash verification process.

The functions of concern in portsnap.sh are fetch_snapshot(), fetch_update(), and fetch_snapshot_verify().

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cperciva 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Apr 13 23:37:33 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=188428 
>Unformatted:
