FlexNet License Multiple Vulnerabilities - Nessus

Critical   Plugin ID: 58273

This page contains detailed information about the FlexNet License Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 58273
Name: FlexNet License Multiple Vulnerabilities
Filename: flexnet_license_server_manager_code_exec.nasl
Vulnerability Published: 2011-08-16
This Plugin Published: 2012-03-07
Last Modification Time: 2018-11-15
Plugin Version: 1.16
Plugin Type: local
Plugin Family: Windows
Dependencies: flexnet_license_server_detect.nasl, smb_enum_services.nasl
Required KB Items [?]: SMB/Flexera FlexNet License Server/Path, SMB/Flexera FlexNet License Server/Version

Vulnerability Information


Severity: Critical
Vulnerability Published: 2011-08-16
Patch Published: 2011-10-14
CVE [?]: CVE-2011-1389, CVE-2011-4135
CPE [?]: N/A

Synopsis

The remote Windows host contains a license management application installed that allows execution of arbitrary code.

Description

The version of FlexNet License Manager installed on the remote Windows host is earlier than 11.10.0.3. As such, it is potentially affected by multiple vulnerabilities :

- Multiple problems exist that allow an attacker to

influence the saving and loading of log files on the

server. By utilizing a directory traversal issue and

some file renaming bugs, an attacker can leverage these

vulnerabilities to execute arbitrary code subject to

the user running the affected application.

- A buffer overflow vulnerability exists that coul lead to

arbitrary code execution.

Solution

If using IBM Rational License Key Server, apply the vendor-supplied hotfix.

Otherwise, upgrade the FlexNet lmgrd License Server Manager to 11.10.0.3 / 11.10.1 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits (PoCs) are available

Here's the list of publicly known exploits and PoCs for verifying the FlexNet License Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/license/flexnet_lmgrd_bof
    [FlexNet License Server Manager lmgrd Buffer Overflow]
  2. Exploit-DB: exploits/multiple/dos/18877.txt
    [EDB-18877: FlexNet License Server Manager - Stack Overflow In lmgrd]
  3. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/18877.zip
    [EDB-18877]

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.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


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

Go back to menu.

Plugin Source


This is the flexnet_license_server_manager_code_exec.nasl nessus plugin source code. This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.

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

include('compat.inc');

if (description)
{
  script_id(58273);
  script_version("1.16");
  script_cvs_date("Date: 2018/11/15 20:50:26");

  script_cve_id("CVE-2011-1389", "CVE-2011-4135");
  script_bugtraq_id(49191, 52718);
  script_xref(name:"EDB-ID", value:"18877");

  script_name(english:"FlexNet License Multiple Vulnerabilities");
  script_summary(english:"Checks version of lmgrd.exe");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host contains a license management application
installed that allows execution of arbitrary code.");
  script_set_attribute(attribute:"description", value:
"The version of FlexNet License Manager installed on the remote
Windows host is earlier than 11.10.0.3. As such, it is potentially
affected by multiple vulnerabilities :

- Multiple problems exist that allow an attacker to

influence the saving and loading of log files on the

server. By utilizing a directory traversal issue and

some file renaming bugs, an attacker can leverage these

vulnerabilities to execute arbitrary code subject to

the user running the affected application.

- A buffer overflow vulnerability exists that coul lead to

arbitrary code execution.");
  script_set_attribute(attribute:"see_also", value:"http://aluigi.altervista.org/adv/lmgrd_1-adv.txt");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-11-272/");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-12-052/");
  script_set_attribute(attribute:"see_also", value:"https://www.flexera.com/landing/hotfix-lmgrd-license-server-manager.html");
  script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21577760");
  script_set_attribute(attribute:"solution", value:
"If using IBM Rational License Key Server, apply the vendor-supplied
hotfix.

Otherwise, upgrade the FlexNet lmgrd License Server Manager to
11.10.0.3 / 11.10.1 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_set_attribute(attribute:"metasploit_name", value:'FlexNet License Server Manager lmgrd Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/08/16");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/10/14");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/03/07");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.");

  script_dependencies("flexnet_license_server_detect.nasl", "smb_enum_services.nasl");
  script_require_keys("SMB/Flexera FlexNet License Server/Version", "SMB/Flexera FlexNet License Server/Path");

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");
include("smb_func.inc");

version = get_kb_item_or_exit('SMB/Flexera FlexNet License Server/Version');
path = get_kb_item_or_exit('SMB/Flexera FlexNet License Server/Path');
service = get_kb_item('SMB/Flexera FlexNet License Server/Service');
if (isnull(service)) service = 'FLEXlm License Manager';

# Unless we're paranoid, make sure the service is running
if (report_paranoia < 2)
{
  status = get_kb_item('SMB/svc/'+service);
  if (status != SERVICE_ACTIVE)
    exit(0, 'The FlexNet License Manager is installed but not active.');
}

fix = '11.10.0.3';
if (ver_compare(ver:version, fix:fix) == -1)
{
  port = get_kb_item("SMB/transport");
  if (!port) port = 445;

  if (report_verbosity > 0)
  {
    report =
      '\n  File              : ' + path + '\\lmgrd.exe' +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : 11.10.0.3 / 11.10.1\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
  exit(0);
}
exit(0, 'The file version of \''+path+'\\lmgrd.exe\' is '+version+' and thus is not affected.');

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

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

Go back to menu.

How to Run


Here is how to run the FlexNet License Multiple Vulnerabilities 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 Windows plugin family.
  6. On the right side table select FlexNet License Multiple Vulnerabilities plugin ID 58273.
  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 flexnet_license_server_manager_code_exec.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - flexnet_license_server_manager_code_exec.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 flexnet_license_server_manager_code_exec.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 27599 - FLEXnet Connect Update Service ActiveX Control Multiple Code Execution Vulnerabilities

Version


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

Go back to menu.