Iván Sánchez Ortega
2006-03-21 14:32:08 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I just discovered that the Avahi daemon dies if one machine in the network
handles out a response with a strange host (or domain) name.
I'm attaching the ethereal capture of the packet that "kills" the avahi
daemon, but this is how I can reproduce this:
- - Buy an Axis IP camera
- - Change the camera hostname by issuing the following command:
wget
http://{camera_ip_address}/axis-cgi/admin/param.cgi?action=update&Network.Bonjour.FriendlyName=f?obar
(notice the acute in the '?')
- - Run avahi-browse -at
- - Watch how the avahi daemon dies.
I guess that setting up any other kind of mDNS responder (an avahi daemon, a
Bonjour-enabled Mac, etc) to return a hostname with "strange" characters
(anything not in 7-bit ASCII, I guess, like in "f?obar") may be able to
reproduce this bug. By the way, I'm running Avahi 0.6.9 here.
Running avahi-browse -at in a network with such a device results in the
following error message:
Client failure, exiting: Daemon connection failed
14700: arguments to dbus_connection_get_is_connected() were incorrect,
assertion "connection != NULL" failed in file dbus-connection.c line 1984.
This is normally a bug in some application using the D-BUS library.
And the following line in /var/log/syslog:
Mar 21 16:23:27 localhost avahi-daemon[14700]: Disconnnected from D-BUS,
terminating...
Obviously, capable network administrators won't set invalid FQDNs in their
networks, but I don't like the possibility of an (un)intentionally malformed
mDNS response packet being able to shut down the avahi daemons in my network.
P.S.: Should I open a new ticket in the Avahi TRAC with this information?
Best regards,
- - --
- - ----------------------------------
Iv?n S?nchez Ortega <***@escomposlinux.org> <***@mirame.net>
Now listening to: Underworld - Caf? Del Mar: Volumen Uno - [8] Second Hand
(9:01) (94%)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEICp23jcQ2mg3Pc8RAm7GAKCDAclj2yjTwB1ZOxOUuLZlaMYKQACeNnot
V3WvX3KS62JhZ9Jufg8H/fs=
=qGE3
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethereal_capture.png
Type: image/png
Size: 10281 bytes
Desc: not available
Url : Loading Image...
Hash: SHA1
Hi,
I just discovered that the Avahi daemon dies if one machine in the network
handles out a response with a strange host (or domain) name.
I'm attaching the ethereal capture of the packet that "kills" the avahi
daemon, but this is how I can reproduce this:
- - Buy an Axis IP camera
- - Change the camera hostname by issuing the following command:
wget
http://{camera_ip_address}/axis-cgi/admin/param.cgi?action=update&Network.Bonjour.FriendlyName=f?obar
(notice the acute in the '?')
- - Run avahi-browse -at
- - Watch how the avahi daemon dies.
I guess that setting up any other kind of mDNS responder (an avahi daemon, a
Bonjour-enabled Mac, etc) to return a hostname with "strange" characters
(anything not in 7-bit ASCII, I guess, like in "f?obar") may be able to
reproduce this bug. By the way, I'm running Avahi 0.6.9 here.
Running avahi-browse -at in a network with such a device results in the
following error message:
Client failure, exiting: Daemon connection failed
14700: arguments to dbus_connection_get_is_connected() were incorrect,
assertion "connection != NULL" failed in file dbus-connection.c line 1984.
This is normally a bug in some application using the D-BUS library.
And the following line in /var/log/syslog:
Mar 21 16:23:27 localhost avahi-daemon[14700]: Disconnnected from D-BUS,
terminating...
Obviously, capable network administrators won't set invalid FQDNs in their
networks, but I don't like the possibility of an (un)intentionally malformed
mDNS response packet being able to shut down the avahi daemons in my network.
P.S.: Should I open a new ticket in the Avahi TRAC with this information?
Best regards,
- - --
- - ----------------------------------
Iv?n S?nchez Ortega <***@escomposlinux.org> <***@mirame.net>
Now listening to: Underworld - Caf? Del Mar: Volumen Uno - [8] Second Hand
(9:01) (94%)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEICp23jcQ2mg3Pc8RAm7GAKCDAclj2yjTwB1ZOxOUuLZlaMYKQACeNnot
V3WvX3KS62JhZ9Jufg8H/fs=
=qGE3
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethereal_capture.png
Type: image/png
Size: 10281 bytes
Desc: not available
Url : Loading Image...