Primer bug de seguridad reconocido por D. J. Bernstein (djbdns)

Primer bug de seguridad reconocido por D. J. Bernstein en el software djbdns.

Con el título djbdns<=1.05 lets AXFRed subdomains overwrite domains, D.J. Bernstein reconoce el primer agujero de seguridad del servicio dns djbdns, dónde en su lejano día, ofreció $1000 al primer programador que encontrase un bug de seguridad, principal características y motivación de los programas del Sr. Bernstein.

Matthew Dempsky ha sido el afortunado ganador.

If the administrator of publishes the DNS data
through tinydns and axfrdns, and includes data for
transferred from an untrusted third party, then that third party can
control cache entries for, not just This is
the result of a bug in djbdns pointed out by Matthew Dempsky. (In short,
axfrdns compresses some outgoing DNS packets incorrectly.)

Even though this bug affects very few users, it is a violation of the
expected security policy in a reasonable situation, so it is a security
hole in djbdns. Third-party DNS service is discouraged in the djbdns
documentation but is nevertheless supported. Dempsky is hereby awarded

The next release of djbdns will be backed by a new security guarantee.
In the meantime, if any users are in the situation described above,
those users are advised to apply Dempsky’s patch and requested to accept
my apologies. The patch is also recommended for other users; it corrects
the bug without any side effects. A copy of the patch appears below.

—D. J. Bernstein
Research Professor, Computer Science, University of Illinois at Chicago

— response.c.orig 2009-02-24 21:04:06.000000000 -0800
+++ response.c 2009-02-24 21:04:25.000000000 -0800
@@ -34,7 +34,7 @@
uint16_pack_big(buf,49152 + name_ptr[i]);
return response_addbytes(buf,2);
– if (dlen <= 128) + if ((dlen <= 128) && (response_len < 16384)) if (name_num < NAMES) { byte_copy(name[name_num],dlen,d); name_ptr[name_num] = response_len;Gracias Josep por la info ;)

3 Replies to “Primer bug de seguridad reconocido por D. J. Bernstein (djbdns)”

Deja un comentario

Tu dirección de correo electrónico no será publicada.