From owner-cvs-all@FreeBSD.ORG Sat May 1 17:43:03 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A782316A4DA; Sat, 1 May 2004 17:43:03 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8262143D1D; Sat, 1 May 2004 17:43:03 -0700 (PDT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i420h2Ge074716; Sat, 1 May 2004 17:43:02 -0700 (PDT) (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i420h2qi074715; Sat, 1 May 2004 17:43:02 -0700 (PDT) (envelope-from kientzle) Message-Id: <200405020043.i420h2qi074715@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 1 May 2004 17:43:02 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/tar bsdtar.h read.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2004 00:43:03 -0000 kientzle 2004/05/01 17:43:02 PDT FreeBSD src repository Modified files: usr.bin/tar bsdtar.h read.c Log: A security issue: An archive containing a symlink to another directory, then a file with that symlink as a prefix can drop a file outside of the current directory, which can be a security hole. Plug this hole by refusing to extract files if a prefix of the pathname is a symlink. The -P option disables this check. Revision Changes Path 1.5 +1 -0 src/usr.bin/tar/bsdtar.h 1.4 +70 -13 src/usr.bin/tar/read.c