Vulnerabilities > CVE-2011-1220 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in IBM Tivoli Management Framework

047910
CVSS 9.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
SINGLE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
ibm
CWE-119
critical
nessus
exploit available
metasploit

Summary

Stack-based buffer overflow in lcfd.exe in Tivoli Endpoint in IBM Tivoli Management Framework 3.7.1, 4.1, 4.1.1, and 4.3.1 allows remote authenticated users to execute arbitrary code via a long opts field.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionIBM Tivoli Endpoint Manager POST Query Buffer Overflow. CVE-2011-1220. Remote exploit for windows platform
idEDB-ID:17392
last seen2016-02-02
modified2011-06-12
published2011-06-12
reportermetasploit
sourcehttps://www.exploit-db.com/download/17392/
titleIBM Tivoli Endpoint Manager POST Query Buffer Overflow

Metasploit

descriptionThis module exploits a stack based buffer overflow in the way IBM Tivoli Endpoint Manager versions 3.7.1, 4.1, 4.1.1, 4.3.1 handles long POST query arguments. This issue can be triggered by sending a specially crafted HTTP POST request to the service (lcfd.exe) listening on TCP port 9495. To trigger this issue authorization is required. This exploit makes use of a second vulnerability, a hardcoded account (tivoli/boss) is used to bypass the authorization restriction.
idMSF:EXPLOIT/WINDOWS/HTTP/IBM_TIVOLI_ENDPOINT_BOF
last seen2020-03-25
modified2017-07-24
published2011-06-11
referenceshttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1220
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/http/ibm_tivoli_endpoint_bof.rb
titleIBM Tivoli Endpoint Manager POST Query Buffer Overflow

Nessus

NASL familyWeb Servers
NASL idTIVOLI_ENDPOINT_ADDR_OPTS_BOF.NASL
descriptionAccording to its self-reported version, the Tivoli Endpoint installation running on the remote host is earlier than 4.1.1-LCF-0076 or 4.3.1-LCF-0012LA, and therefore has a buffer overflow vulnerability. Input to the
last seen2020-06-01
modified2020-06-02
plugin id54924
published2011-05-31
reporterThis script is Copyright (C) 2011-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/54924
titleIBM Tivoli Management Framework Endpoint addr URL Remote Buffer Overflow
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


if (description)
{
  script_id(54924);
  script_version("1.17");
  script_cvs_date("Date: 2018/11/15 20:50:25");

  script_cve_id("CVE-2011-1220");
  script_bugtraq_id(48049);
  script_xref(name:"TRA", value:"TRA-2011-04");
  script_xref(name:"IAVA", value:"2011-A-0072");
  script_xref(name:"EDB-ID", value:"17365");
  script_xref(name:"EDB-ID", value:"17392");

  script_name(english:"IBM Tivoli Management Framework Endpoint addr URL Remote Buffer Overflow");
  script_summary(english:"Does a version check on TMF Endpoint");

  script_set_attribute(
    attribute:"synopsis",
    value:
"A web server running on the remote host has a buffer overflow
vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"According to its self-reported version, the Tivoli Endpoint
installation running on the remote host is earlier than 4.1.1-LCF-0076
or 4.3.1-LCF-0012LA, and therefore has a buffer overflow
vulnerability.  Input to the 'opts' parameter of '/addr' is not
properly validated.  Authentication is required for exploitation,
though this can be achieved trivially by using a built-in account.

A remote, authenticated attacker could exploit this by sending a
malicious POST request to the server, resulting in arbitrary code
execution."
  );
  script_set_attribute(attribute:"see_also", value:"https://www.tenable.com/security/research/tra-2011-04");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-11-169/");
  script_set_attribute(attribute:"see_also",value:"https://www-304.ibm.com/support/docview.wss?uid=swg21499146");
  script_set_attribute(
    attribute:"solution",
    value:
"Upgrade to Tivoli Endpoint 4.1.1-LCF-0076 / 4.3.1-LCF-0012LA
or later.  Alternatively, use the workaround described in the
IBM advisory."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'IBM Tivoli Endpoint Manager POST Query Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'White_Phosphorus');

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/05/30");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/05/30");
  script_set_attribute(attribute:"plugin_publication_date", value:"2011/05/31");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:ibm:tivoli_management_framework");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Web Servers");

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

  script_dependencies("tivoli_endpoint_detect.nasl");
  script_require_keys("www/tivoli_endpoint");

  exit(0);
}


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


port = get_http_port(default:9495, embedded:TRUE);
install = get_install_from_kb(appname:'tivoli_endpoint', port:port, exit_on_fail:TRUE);
ver = install['ver'];
if (ver == UNKNOWN_VER) exit(1, 'Unable to determine version on port '+port+'.');

match = eregmatch(string:ver, pattern:'^([0-9]+)');
if (!match) exit(1, 'Error parsing the version of Tivoli Management Framework Endpoint listening on port '+port+' (' + ver + ').');
else build = int(match[1]);

# do the version check
fix = NULL;
if (build < 41176)
  fix = '41176 (4.1.1-LCF-0076)';
else if (build >= 43100 && build < 43112)
  fix = '43112 (4.3.1-LCF-0012LA)';
else
  exit(0, 'Tivoli Management Framework Endpoint version '+ver+' is listening on port '+port+' and thus not affected.');

# make sure the workaround isn't in use unless paranoid
info = NULL;
if (report_paranoia < 2)
{
  # if the workaround is applied (disable configuration via HTTP), there will be an
  # error message saying so. if there's no workaround, we'll be prompted for auth
  res = http_send_recv3(method:'POST', port:port, item:'/addr', exit_on_fail:TRUE);

  if ('Configuration capability has been disabled on this endpoint' >< res[2])
    exit(0, 'The workaround has been applied on port ' + port + '.');
}
else
{
  info =
    '\nNessus did not check if the workaround is in use since' +
    '\nReport Paranoia is set to "Paranoid".\n';
}

if (report_verbosity > 0)
{
  report =
    '\n  Installed version : ' + ver +
    '\n  Fixed version     : ' + fix + '\n' +
    info;
  security_hole(port:port, extra:report);
}
else security_hole(port);

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/102183/ibm_tivoli_endpoint_bof.rb.txt
idPACKETSTORM:102183
last seen2016-12-05
published2011-06-12
reporterbannedit
sourcehttps://packetstormsecurity.com/files/102183/IBM-Tivoli-Endpoint-Manager-POST-Query-Buffer-Overflow.html
titleIBM Tivoli Endpoint Manager POST Query Buffer Overflow