Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] Re: Hostname lookups again.
Home

[Freeciv-Dev] Re: Hostname lookups again.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jarda Benkovsky <pvt.benkovsk@xxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Hostname lookups again.
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Tue, 19 Sep 2000 21:53:41 +0100 (WET DST)

On Tue, 19 Sep 2000, Jarda Benkovsky wrote:

> Gaute B Strokkenes wrote:
> > Actually checking the length field of the look-up (when we've already
> > ascertained that it's AF_INET) might be a bit anal, but why not.
> 
> Definitely not too anal! You should check it to prevent remote exploits

Read my lips :-)

gethostbyname() is a libc call to resolver, which calls DNS.  If the
resolver and libc don't catch the bug.  Then i'm sorry.  But if we were to
painstakingly test for each bug/security problem in libc then you'd have
to test *everything*.  Why not parse sprintf()'s output string to check
some malicious exploit is making you not output numbers correctly, etc.
Happy?  :-)

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa




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