Firefly Media Server ws_getpostvars Function Content-Length Header HTTP Request Handling Overflow

This script is Copyright (C) 2008-2012 Tenable Network Security, Inc.


Synopsis :

The remote web server is affected by an integer overflow vulnerability.

Description :

The remote host is running Firefly Media Server, also known as
mt-daapd, a media streaming server.

The version of Firefly Media Server installed on the remote host
apparently fails to sanitize user-supplied Content-Length field
before using it to the call to 'malloc(len+1)' in 'src/webserver.c'.
Using a specially crafted HTTP POST content-length request header, an
unauthenticated, remote attacker can leverage this issue to crash the
affected service or to execute arbitrary code on the affected system,
subject to the privileges under which the service operates.

See also :

http://www.nessus.org/u?c4f1db9e

Solution :

Either disable the service or upgrade to Firefly Media Server 0.2.4.2
or later.

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
CVSS Temporal Score : 5.5
(CVSS2#E:U/RL:OF/RC:C)
Public Exploit Available : false

Family: Gain a shell remotely

Nessus Plugin ID: 32031 (firefly_content_overflow.nasl)

Bugtraq ID: 28860

CVE ID: CVE-2008-1771