[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OATH-Toolkit-help] oathtool should not require secret key on comman

From: Simon Josefsson
Subject: Re: [OATH-Toolkit-help] oathtool should not require secret key on command line
Date: Thu, 26 Jan 2012 15:48:18 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)

Martin Radford <address@hidden> writes:

> Hi,
> I've just been looking at the toolkit, and so far everything is working
> as expected.
> However, as far as I can see, the only way to provide the secret key to
> oathtool is to put it on the command line.
> This strikes me as being unsafe -- on a multi-user system, the secret
> key will show up in the output of the "ps" command, and hence could be
> unintentionally exposed.
> oathtool really needs to support a command-line option to allow the
> secret to be read from a file (e.g. "-f secretkey.txt") or even from a
> file descriptor (as gnupg does with its "--passphrase-fd" option).

Hello Martin and welcome to the list.  Good point.  Oathtool was mostly
intended as a debugging tool, but I can see that you could want to use
it in scripts and then this property is quite worrying.

The tool could be modified to read the key from standard input if the
KEY parameter is '-'.  That is not a valid hex character, so there is no
ambuiguity.  There could be command line parameters to make it read from
a file or from a file descriptor instead of from stdin.  What do you


reply via email to

[Prev in Thread] Current Thread [Next in Thread]