Bekijk Volledige Versie : debian dhcpd, old format string bug
infamous41md@hotpop.com
27/10/04, 13:05
Subject:
Debian dhcpd package.
http://packages.debian.org/stable/net/dhcp
It is vulnerable to the '02 format string bug.
http://www.cert.org/advisories/CA-2002-12.html
--
-sean
Tarragon Allen
29/10/04, 03:45
On Tuesday 26 October 2004 10:37, infamous41md@hotpop.com wrote:
> Subject:
>
> Debian dhcpd package.
>
> http://packages.debian.org/stable/net/dhcp
>
> It is vulnerable to the '02 format string bug.
>
> http://www.cert.org/advisories/CA-2002-12.html
Firstly, good etiquette would have been for you to actually report the bug
with Debian. I don't see any bugs raised against any of the appropriate
packages regarding this.
Secondly, the advisory you refer to is only mentioning DHCP 3.0+. The Debian
package you referred to is 2.0pl5. Perhaps you are referring to:
http://packages.debian.org/stable/net/dhcp3-server
Which is presently at 3.0.1rc9. The CERT advisory refers to 3.01 to 3.01r8
inclusive.
Are you saying the CERT advisory applies to other versions of DHCP?
t
--
http://moto-coda.org/public.gpg.key
infamous41md@hotpop.com
30/10/04, 00:35
On Thu, 28 Oct 2004 10:31:38 +1000
Tarragon Allen <tarragon@onthe.net.au> wrote:
> On Tuesday 26 October 2004 10:37, infamous41md@hotpop.com wrote:
> > Subject:
> >
> > Debian dhcpd package.
> >
> > http://packages.debian.org/stable/net/dhcp
> >
> > It is vulnerable to the '02 format string bug.
> >
> > http://www.cert.org/advisories/CA-2002-12.html
>
> Firstly, good etiquette would have been for you to actually report the bug
> with Debian. I don't see any bugs raised against any of the appropriate
> packages regarding this.
>
I've tried contacting the person in charge of the debian security audit project
numerous times to try and co-ordinate audits, and he doesn't respond. I have
better things to do with my time. I don't provide notice when people disregard
my emails. If you don't like, I don't care. My mother already taught me all
the etiquette I need, but thanks for the moral support. Btw, is it salad fork
left, or dinner fork left?
> Secondly, the advisory you refer to is only mentioning DHCP 3.0+. The Debian
> package you referred to is 2.0pl5. Perhaps you are referring to:
>
> http://packages.debian.org/stable/net/dhcp3-server
>
No, I gave a link to the package I was talking about.
> Which is presently at 3.0.1rc9. The CERT advisory refers to 3.01 to 3.01r8
> inclusive.
>
> Are you saying the CERT advisory applies to other versions of DHCP?
>
I'm saying, grep -rn syslog * | grep -v \". Soon after I found that, I googled
and found the CERT detailing a format string in logging code. I assumed it was
the exact same thing I just found. I spoke with some debian person about this
yesterday, or day before, and they can release an advisory to clear it up.
> t
> --
> http://moto-coda.org/public.gpg.key
--
-sean
Javier Fernandez-Sanguino
02/11/04, 22:55
infamous41md@hotpop.com wrote:
> On Thu, 28 Oct 2004 10:31:38 +1000
> Tarragon Allen <tarragon@onthe.net.au> wrote:
>>On Tuesday 26 October 2004 10:37, infamous41md@hotpop.com wrote:
>>Firstly, good etiquette would have been for you to actually report the bug
>>with Debian. I don't see any bugs raised against any of the appropriate
>>packages regarding this.
>>
>
>
> I've tried contacting the person in charge of the debian security audit project
> numerous times to try and co-ordinate audits, and he doesn't respond. I have
> better things to do with my time. I don't provide notice when people disregard
> my emails. If you don't like, I don't care. My mother already taught me all
> the etiquette I need, but thanks for the moral support. Btw, is it salad fork
> left, or dinner fork left?
The Debian audit people are not the same as the official Debian
security team, which is the one in charge of preparing security
advisories and fixing security bugs in the stable release.
Please read: http://www.debian.org/security/faq
The first group is an internal project that is reviewing parts of
Debian and submitting bugs to the stable and unstable release, the
second group fixes only the former, while the later is fixed by the
package maintainers themselves.
http://www.debian.org/security/audit/
As to this vulnerability, CA-2002-12 is referenced as CAN-2002-0702
[1], that, based on the page that lists lists vulnerabilities that do
not affect the current Debian stable release [2] does not apply to the
dhcp3-server packages. And, indeed, reviewing the comon/print.c file
in dhcp3-server's source code you can see:
if (errorp)
log_error ("%s", obuf);
else
log_info ("%s", obuf);
instead of the (vulnerable):
if (errorp)
log_error (obuf);
else
log_info (obuf);
Which fixes the issue (see [3]). The code is _not_ present in the dhcp
packages (version 2.0pl5-11), so they aren't vulnerable to _this_
issue either.
> I'm saying, grep -rn syslog * | grep -v \". Soon after I found that, I googled
> and found the CERT detailing a format string in logging code. I assumed it was
> the exact same thing I just found. I spoke with some debian person about this
> yesterday, or day before, and they can release an advisory to clear it up.
That grep line brings a lot of code, some of it might be vulnerable to
format string attacks, but it's not related to the CERT advisory at
all. For those not having the code at hand:
$ grep -B 2 -A 2 -rn syslog * | grep -v \"
(...)
common/errwarn.c-73-#ifndef DEBUG
common/errwarn.c:74: syslog (log_priority | LOG_ERR, mbuf);
common/errwarn.c-75-#endif
Which could be easily fixed to prevent a format string attack (but is
not and is indeed vulnerable). Maybe this bug is related to
CAN-2001-0181 (BID-2215). I don't have access to Caldera's code so I
can review that...
Regards
Javier
[1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-0702
[2] http://www.debian.org/security/nonvulns-wood
[3] http://archives.neohapsis.com/archives/vulnwatch/2002-q2/0063.html
Martin Schulze
05/11/04, 21:55
Tarragon Allen wrote:
> > Debian dhcpd package.
> >
> > http://packages.debian.org/stable/net/dhcp
> >
> > It is vulnerable to the '02 format string bug.
> >
> > http://www.cert.org/advisories/CA-2002-12.html
>
> Firstly, good etiquette would have been for you to actually report the bug
> with Debian. I don't see any bugs raised against any of the appropriate
> packages regarding this.
>
> Secondly, the advisory you refer to is only mentioning DHCP 3.0+. The Debian
> package you referred to is 2.0pl5. Perhaps you are referring to:
>
> http://packages.debian.org/stable/net/dhcp3-server
>
> Which is presently at 3.0.1rc9. The CERT advisory refers to 3.01 to 3.01r8
> inclusive.
>
> Are you saying the CERT advisory applies to other versions of DHCP?
This is a different vulnerability than the one referenced to with CA-2002-12.
This new vulnerability has been assigned CAN-2004-1006 in order to provide
a unique identifier to this vulnerability. This vulnerability is only
present in version 2.x of dhcp.
The data for this id should become visible during the next days:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1006
Regards,
Joey
--
Given enough thrust pigs will fly, but it's not necessarily a good idea.