From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 5 11:30:07 2007 Return-Path: Delivered-To: freebsd-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 9008616A41A for ; Wed, 5 Sep 2007 11:30:07 +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 5D94B13C4DB for ; Wed, 5 Sep 2007 11:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l85BU7LW063741 for ; Wed, 5 Sep 2007 11:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l85BU7re063740; Wed, 5 Sep 2007 11:30:07 GMT (envelope-from gnats) Date: Wed, 5 Sep 2007 11:30:07 GMT Message-Id: <200709051130.l85BU7re063740@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Remko Lodder Cc: Subject: Re: misc/116115: Bug in portaudit: it does not handle packagenames with , X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Remko Lodder List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2007 11:30:07 -0000 The following reply was made to PR misc/116115; it has been noted by GNATS. From: Remko Lodder To: Klavs Klavsen Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/116115: Bug in portaudit: it does not handle packagenames with , Date: Wed, 05 Sep 2007 13:26:24 +0200 Klavs Klavsen wrote: >> Number: 116115 >> Category: misc >> Synopsis: Bug in portaudit: it does not handle packagenames with , >> Confidential: no >> Severity: critical >> Priority: high >> Responsible: freebsd-bugs >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Wed Sep 05 10:20:01 GMT 2007 >> Closed-Date: >> Last-Modified: >> Originator: Klavs Klavsen >> Release: FreeBSD-6.2 >> Organization: > EnableIT >> Environment: > FreeBSD tomcat5-ny.telmore.dk 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 > >> Description: > Hi guys, > > I was just testing portaudit on FreeBSD 6.2. > > I have mod_jk-1.2.19,1 installed. > > a portaudit -Fda does not show it's vulnerable to anything. > > However - it really is, and it's in the vulndb as well. > > If I rename mod_jk-1.2.19,1 to mod_jk-1.2.19 a portaudit -Fda (or just -a) > says it's vulnerable. > > So the conclusion is that portaudit's "version number" matching doesn't > seem to handle ,'s all that well. >> How-To-Repeat: > rename mod_jk to mod_jk-1.2.19,1 and see it NOT work. >> Fix: > > Actually you are incorrect strictly seen. You are correct that there is a problem though :-). Portaudit handles the ,\d perfectly, though PORTEPOCH (as the ,\d is called) makes version handling very different. If a port has PORTEPOCH, this always is 'newer' then any other version available. This is to make sure we can rollback from newer version. I fixed this in the vuxml document seconds ago. Thanks for noting this! Cheers remko -- Kind regards, Remko Lodder ** remko@elvandar.org FreeBSD ** remko@FreeBSD.org /* Quis custodiet ipsos custodes */