Re: [Tools-team] Agenda for the 14 June 2006 Teleconference

Tero Kivinen <kivinen@iki.fi> Thu, 15 June 2006 09:09 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1Fqnqs-0007zJ-Ds; Thu, 15 Jun 2006 05:09:22 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Fqnqr-0007z7-Hh for tools-team@ietf.org; Thu, 15 Jun 2006 05:09:21 -0400
Received: from fireball.acr.fi ([83.145.195.1] helo=mail.kivinen.iki.fi) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Fqnqp-0003q2-VP for tools-team@ietf.org; Thu, 15 Jun 2006 05:09:21 -0400
Received: from fireball.kivinen.iki.fi (localhost [IPv6:::1]) by mail.kivinen.iki.fi (8.13.5.20060308/8.12.10) with ESMTP id k5F99HXx012079 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Jun 2006 12:09:17 +0300 (EEST)
Received: (from kivinen@localhost) by fireball.kivinen.iki.fi (8.13.5.20060308/8.12.11) id k5F99Hff029210; Thu, 15 Jun 2006 12:09:17 +0300 (EEST)
X-Authentication-Warning: fireball.kivinen.iki.fi: kivinen set sender to kivinen@iki.fi using -f
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <17553.9149.494061.90468@fireball.kivinen.iki.fi>
Date: Thu, 15 Jun 2006 12:09:17 +0300
From: Tero Kivinen <kivinen@iki.fi>
To: Henrik Levkowetz <henrik@levkowetz.com>
Subject: Re: [Tools-team] Agenda for the 14 June 2006 Teleconference
In-Reply-To: <449049D5.9030204@levkowetz.com>
References: <44902CF5.4030606@levkowetz.com> <17552.16412.516987.746408@fireball.kivinen.iki.fi> <449049D5.9030204@levkowetz.com>
X-Mailer: VM 7.19 under Emacs 21.4.1
X-Edit-Time: 14 min
X-Total-Time: 13 min
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 31247fb3be228bb596db9127becad0bc
Cc: Tools-team <tools-team@ietf.org>
X-BeenThere: tools-team@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "The purpose of the TOOLS team is to provide IETF feedback and guidance during the development of software tools to support various parts of IETF activities." <tools-team.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tools-team>, <mailto:tools-team-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/tools-team>
List-Post: <mailto:tools-team@ietf.org>
List-Help: <mailto:tools-team-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tools-team>, <mailto:tools-team-request@ietf.org?subject=subscribe>
Errors-To: tools-team-bounces@ietf.org

Henrik Levkowetz writes:
> > 1) That login manager really needs to require TLS protection, i.e
> >    mandate that both the forms and the posts are always using TLS.
> 
> Yes.  But to do that, I need a proper cert for tools.ietf.org, which
> I don't have.  I've been planning to talk with Ray about it for some
> time, but no time...  I assume that this has to go through some
> entity that can verify that we have a right to get a cert for
> tools.ietf.org.   I also wonder if we need separate certs for
> tools.ietf.org, www1.tools.ietf.org, www2.tools.ietf.org and
> www3.tools.ietf.org...

As datatracker.ietf.org already has certificate, I assume someone
knows how to get one... And yes, you probably need separate
certificates for each host if you want to run separate tasks on each
of them. If they are all identical i.e. referred always as
tools.ietf.org, then one certificate would be enough, but I guess
there will be some services that will be only on the
www1.tools.ietf.org and not on the others. 

> 
> > 2) The URL for changing password should only work exactly once, not
> >    for 24 hours. The problem with 24 hours is that if someone manages
> >    to get the URL later from my mailbox or some other place he can
> >    change my password after I changed it. If it works exactly once,
> >    either I will get error that password has already been changed
> >    using the URL (i.e. I know there was attacker who stole my URL) or
> >    the attacker cannot change my password after I have successfully
> >    changed it. Perhaps storing the used auth sha1sum to some directory
> >    and checking that it cannot be there before continuing.
> 
> I agree, and this is already on my todo list, but I wanted to get the
> base functionality out there first.  This can be accomplished without
> changing what I have now, only putting in an additional check in the
> script which verifies the hash.

I that can be quite easily added, by simply adding check after the
auth data checking saying (using /bin/sh syntax as example)

if [ -f "$authfilesdir/$auth" ]
then
	echo "Auth key already used"
	exit 1
else
	# Auth key ok, mark it as used
	touch "$authfilesdir/$auth"
fi


And then put cronscript that will remove all files from the
$authfilesdir/$auth that are older than one day. 

> Something else which you haven't mentioned but is also on my todo list
> is rate limiting on requesting the mail with a new password URL, so
> people can't anonymously annoy others with a stream of mails with
> new password URLs.

If someone really starts sending thousands of those emails to some
user then he must use quite a lot of his own bandwidth to send those
requests, and after a while the tools.ietf.org machine will get
slow as sending out those emails takes cpu resources...

What you do want to do is to add the information who sent the request
i.e add things like:

----------------------------------------------------------------------
This request was made from 62.61.72.13:57673
Browser Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.7.12) Gecko/20051028
----------------------------------------------------------------------

to the end of the email that is sent to the user when password is
requested. That way user will at least know IP-address who is sending
those requests, and can himself continue pursuing the attacker instead
of asking you to check www-server logs...

I.e. add

echo "This request was made $ENV{'REMOTE_ADDR'}:$ENV{'REMOTE_PORT'}"
echo "Browser $ENV{'HTTP_USER_AGENT'}"

to the end of email.
-- 
kivinen@safenet-inc.com

_______________________________________________
Tools-team mailing list
Tools-team@ietf.org
https://www1.ietf.org/mailman/listinfo/tools-team