NetBSD Problem Report #39506

From riastradh@smalltalk.localdomain  Tue Sep  9 02:34:20 2008
Return-Path: <riastradh@smalltalk.localdomain>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id AFE0463B8A9
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  9 Sep 2008 02:34:20 +0000 (UTC)
Message-Id: <20080909023419.3403F6C@smalltalk.localdomain>
Date: Tue,  9 Sep 2008 02:34:19 +0000 (UTC)
From: Taylor R Campbell <campbell@mumble.net>
Reply-To: Taylor R Campbell <campbell@mumble.net>
To: gnats-bugs@gnats.NetBSD.org
Subject: racoon's pre-shared key file format prohibits names with spaces
X-Send-Pr-Version: 3.95

>Number:         39506
>Category:       bin
>Synopsis:       racoon's pre-shared key file format prohibits names with spaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 09 02:35:00 +0000 2008
>Originator:     Taylor R Campbell <campbell@mumble.net>
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD smalltalk.localdomain 4.0_STABLE NetBSD 4.0_STABLE (RIAX3DOM0_GATEWAY) #0: Mon Sep 8 20:06:40 UTC 2008 riastradh@smalltalk.localdomain:/home/riastradh/netbsd/4/obj/sys/arch/i386/compile/RIAX3DOM0_GATEWAY i386
Architecture: i386
Machine: i386
>Description:

	There is no way to associate a key with a name that contains
	spaces in racoon's pre-shared key files.  (This applies to any
	character satisfying isspace(3).)  Keys can be encoded in
	hexadecimal, but names cannot be.

	Furthermore, the sum of the length of the name and the length
	of the key in octets cannot exceed one thousand twenty-two --
	this is one thousand twenty-four minus one for a space octet to
	delimit name from key and one for a null octet at the end.

>How-To-Repeat:

	Stumble across a situation requiring a name containing spaces
	and a key associated with that name; or requiring a name and
	key pair whose length exceeds one thousand twenty-two octets.
	Fail to use racoon.

>Fix:

	Since the format was designed with irksome naivete, there is no
	provision for quoting names or escaping characters such as
	spaces: the format of the file very rigidly terminates each
	name upon any space.  Any change would potentially break
	existing pre-shared key files, which means that it should be
	made as soon as possible to keep people from using the brain-
	damaged format.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.