Vulnerabilities > CVE-2016-6084 - Improper Input Validation vulnerability in IBM Bigfix Platform 9.0/9.1

047910
CVSS 3.3 - LOW
Attack vector
ADJACENT_NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL
low complexity
ibm
CWE-20
nessus

Summary

IBM BigFix Platform could allow an attacker on the local network to crash the BES server using a specially crafted XMLSchema request.

Vulnerable Configurations

Part Description Count
Application
Ibm
2

Common Weakness Enumeration (CWE)

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.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

  • NASL familyWeb Servers
    NASL idIBM_TEM_9_5_4_38.NASL
    descriptionAccording to its self-reported version, the IBM BigFix Platform application running on the remote host is 9.0.x or 9.1.x prior to 9.1.9.1301, 9.2.x prior to 9.2.9.36, or 9.5.x prior to 9.5.4.38. It is, therefore, affected by multiple vulnerabilities : - A remote code execution vulnerability exists due to a use-after-free race condition. An unauthenticated, remote attacker can exploit this to execute arbitrary code. (CVE-2016-6082) - A denial of service vulnerability exists that is triggered when handling specially crafted XMLSchema requests. An unauthenticated, adjacent attacker can exploit this to crash the BES Server. Note that this issue only affects 9.0.x or 9.1.x versions prior to 9.1.9. (CVE-2016-6084) - A denial of service vulnerability exists in the BES Root Server and BES Relay Memory due to improper handling of user-supplied input. An unauthenticated, adjacent attacker can exploit this to cause the system to crash. (CVE-2016-6085) Note that, additionally, several vulnerabilities possibly also exist in the bundled version of OpenSSL included in versions 9.0.x. IBM BigFix Platform was formerly known as Tivoli Endpoint Manager, IBM Endpoint Manager, and IBM BigFix Endpoint Manager. Note that Nessus has not tested for these issues but has instead relied only on the application
    last seen2020-06-01
    modified2020-06-02
    plugin id96177
    published2016-12-29
    reporterThis script is Copyright (C) 2016-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/96177
    titleIBM BigFix Platform 9.x < 9.1.9.1301 / 9.2.9.36 / 9.5.4.38 Multiple Vulnerabilities
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(96177);
      script_version("1.5");
      script_cvs_date("Date: 2018/07/12 19:01:16");
    
      script_cve_id(
        "CVE-2016-6082",
        "CVE-2016-6084",
        "CVE-2016-6085"
      );
      script_bugtraq_id(
        95286,
        95291,
        95297
      );
    
      script_name(english:"IBM BigFix Platform 9.x < 9.1.9.1301 / 9.2.9.36 / 9.5.4.38 Multiple Vulnerabilities");
      script_summary(english:"Checks the version of the IBM BigFix Server.");
    
      script_set_attribute(attribute:"synopsis", value:
    "An infrastructure management application running on the remote host
    is affected by multiple vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "According to its self-reported version, the IBM BigFix Platform
    application running on the remote host is 9.0.x or 9.1.x prior to
    9.1.9.1301, 9.2.x prior to 9.2.9.36, or 9.5.x prior to 9.5.4.38. It
    is, therefore, affected by multiple vulnerabilities :
    
      - A remote code execution vulnerability exists due to a
        use-after-free race condition. An unauthenticated, remote
        attacker can exploit this to execute arbitrary code.
        (CVE-2016-6082)
    
      - A denial of service vulnerability exists that is
        triggered when handling specially crafted XMLSchema
        requests. An unauthenticated, adjacent attacker can
        exploit this to crash the BES Server. Note that this
        issue only affects 9.0.x or 9.1.x versions prior to
        9.1.9. (CVE-2016-6084)
    
      - A denial of service vulnerability exists in the BES Root
        Server and BES Relay Memory due to improper handling of
        user-supplied input. An unauthenticated, adjacent
        attacker can exploit this to cause the system to crash.
        (CVE-2016-6085)
    
    Note that, additionally, several vulnerabilities possibly also exist
    in the bundled version of OpenSSL included in versions 9.0.x.
    
    IBM BigFix Platform was formerly known as Tivoli Endpoint Manager,
    IBM Endpoint Manager, and IBM BigFix Endpoint Manager.
    
    Note that Nessus has not tested for these issues but has instead
    relied only on the application's self-reported version number.");
      script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21996339");
      script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21996348");
      script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21996375");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to IBM BigFix Platform version 9.1.9.1301 / 9.2.9.36 /
    9.5.4.38 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_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/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:"vuln_publication_date", value:"2016/12/20");
      script_set_attribute(attribute:"patch_publication_date", value:"2016/12/20");
      script_set_attribute(attribute:"plugin_publication_date", value:"2016/12/29");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:ibm:tivoli_endpoint_manager");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:ibm:bigfix_platform");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Web Servers");
    
      script_copyright(english:"This script is Copyright (C) 2016-2018 Tenable Network Security, Inc.");
    
      script_dependencies("ibm_tem_detect.nasl");
      script_require_keys("www/BigFixHTTPServer");
      script_require_ports("Services/www", 52311);
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("install_func.inc");
    
    app_name = "IBM BigFix Server";
    port = get_http_port(default:52311, embedded:FALSE);
    
    version = get_kb_item_or_exit("www/BigFixHTTPServer/"+port+"/version");
    
    if (version == UNKNOWN_VER)
      audit(AUDIT_UNKNOWN_WEB_SERVER_VER, app_name, port);
    
    if (version !~ "^(\d+\.){2,}\d+$")
      audit(AUDIT_VER_NOT_GRANULAR, app_name, port, version);
    
    fix = NULL;
    min_fix = make_array(
      "9.0", "9.1.1301.0",
      "9.1", "9.1.1301.0",
      "9.2", "9.2.9.36",
      "9.5", "9.5.4.38"
    );
    
    foreach minver (keys(min_fix))
    {
      if (ver_compare(ver:version, minver:minver, fix:min_fix[minver], strict:FALSE) < 0)
      {
        fix = min_fix[minver];
        break;
      }     
    }
    
    if (isnull(fix))
      audit(AUDIT_LISTEN_NOT_VULN, app_name, port, version);
    
    report = "";
    
    source = get_kb_item("www/BigFixHTTPServer/"+port+"/source");
    if (!isnull(source))
      report += '\n  Source            : ' + source;
    
    report +=
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fix +
      '\n';
    
    security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
    
  • NASL familyMisc.
    NASL idIBM_BIGFIX_WEBREPORTS_2016_6082.NASL
    descriptionAccording to its self-reported version, the IBM BigFix Platform application running on the remote host is 9.x prior to 9.1.9, 9.2.x prior to 9.2.9, or 9.5.x prior to 9.5.4. It is, therefore, affected by multiple vulnerabilities : - A remote code execution vulnerability exists due to a use-after-free race condition. An unauthenticated, remote attacker can exploit this to execute arbitrary code. (CVE-2016-6082) - A denial of service vulnerability exists that is triggered when handling specially crafted XMLSchema requests. An unauthenticated, adjacent attacker can exploit this to crash the BES Server. Note that this issue only affects 9.0.x or 9.1.x versions prior to 9.1.9. (CVE-2016-6084) - A denial of service vulnerability exists in the BES Root Server and BES Relay Memory when handling unspecified user-supplied input. An unauthenticated, adjacent attacker can exploit this to cause the system to crash. (CVE-2016-6085) Note that, additionally, several vulnerabilities possibly also exist in the bundled version of OpenSSL included in versions 9.0.x. IBM BigFix Platform was formerly known as Tivoli Endpoint Manager, IBM Endpoint Manager, and IBM BigFix Endpoint Manager. Note that Nessus has not tested for these issues but has instead relied only on the application
    last seen2020-06-01
    modified2020-06-02
    plugin id96626
    published2017-01-19
    reporterThis script is Copyright (C) 2017-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/96626
    titleIBM BigFix Platform 9.x < 9.1.9 / 9.2.x < 9.2.9 / 9.5.x < 9.5.4 Multiple Vulnerabilities
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(96626);
      script_version("1.5");
      script_cvs_date("Date: 2018/07/12 19:01:16");
    
      script_cve_id(
        "CVE-2016-6082",
        "CVE-2016-6084",
        "CVE-2016-6085"
      );
      script_bugtraq_id(
        95286,
        95291,
        95297
      );
    
      script_name(english:"IBM BigFix Platform 9.x < 9.1.9 / 9.2.x < 9.2.9 / 9.5.x < 9.5.4 Multiple Vulnerabilities");
      script_summary(english:"Checks the version of the IBM BigFix Web Reports.");
    
      script_set_attribute(attribute:"synopsis", value:
    "An infrastructure management application running on the remote host
    is affected by multiple vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "According to its self-reported version, the IBM BigFix Platform
    application running on the remote host is 9.x prior to 9.1.9, 9.2.x
    prior to 9.2.9, or 9.5.x prior to 9.5.4. It is, therefore, affected by
    multiple vulnerabilities :
    
      - A remote code execution vulnerability exists due to a
        use-after-free race condition. An unauthenticated, remote
        attacker can exploit this to execute arbitrary code.
        (CVE-2016-6082)
    
      - A denial of service vulnerability exists that is
        triggered when handling specially crafted XMLSchema
        requests. An unauthenticated, adjacent attacker can
        exploit this to crash the BES Server. Note that this
        issue only affects 9.0.x or 9.1.x versions prior to
        9.1.9. (CVE-2016-6084)
    
      - A denial of service vulnerability exists in the BES Root
        Server and BES Relay Memory when handling unspecified
        user-supplied input. An unauthenticated, adjacent
        attacker can exploit this to cause the system to crash.
        (CVE-2016-6085)
    
    Note that, additionally, several vulnerabilities possibly also exist
    in the bundled version of OpenSSL included in versions 9.0.x.
    
    IBM BigFix Platform was formerly known as Tivoli Endpoint Manager,
    IBM Endpoint Manager, and IBM BigFix Endpoint Manager.
    
    Note that Nessus has not tested for these issues but has instead
    relied only on the application's self-reported version number.");
      script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21996339");
      script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21996348");
      script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21996375");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to IBM BigFix Platform version 9.1.9 / 9.2.9 / 9.5.4 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_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/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:"vuln_publication_date", value:"2016/12/20");
      script_set_attribute(attribute:"patch_publication_date", value:"2016/12/20");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/01/19");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:ibm:bigfix_platform");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Misc.");
    
      script_copyright(english:"This script is Copyright (C) 2017-2018 Tenable Network Security, Inc.");
    
      script_dependencies("ibm_bigfix_webreports_detect.nbin");
      script_require_keys("installed_sw/IBM BigFix Web Reports");
      script_require_ports("Services/www", 80, 8080);
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("webapp_func.inc");
    
    appname = "IBM BigFix Web Reports";
    port = get_http_port(default:8080);
    install = get_install_from_kb(appname: appname, port: port, exit_on_fail: TRUE);
    
    dir = install["dir"];
    url = build_url(port:port, qs:dir);
    
    version = install["ver"];
    if (version == UNKNOWN_VER) audit(AUDIT_UNKNOWN_WEB_APP_VER, appname, url);
    
    ver = split(version, sep:".", keep:FALSE);
    for (i=0; i<max_index(ver); i++)
    {
      ver[i] = int(ver[i]);
    }
    
    if(max_index(ver) < 3) audit(AUDIT_VER_NOT_GRANULAR, appname, port, version);
    
    # All 9.0 is vuln.
    # 9.1 before 9.1.9 is vuln
    # 9.2 before 9.2.9 is vuln
    # 9.5 before 9.5.4 is vuln
    # assume version < 9.x not vulnerable as they are not listed in the advisory
    report = NULL;
    if (ver[0] == 9)
    {
      if ((ver[1] == 0) || (ver[1] == 1 && ver[2] < 9))
      {
        report =
          '\n  URL               : ' + url +
          '\n  Installed version : ' + version +
          '\n  Fixed version     : 9.1.9.x\n';
      }
      else if (ver[1] == 2 && ver[2] < 9)
      {
        report =
          '\n  URL               : ' + url +
          '\n  Installed version : ' + version +
          '\n  Fixed version     : 9.2.9.x\n';
      }
      else if (ver[1] == 5 && ver[2] < 4)
      {
        report =
          '\n  URL               : ' + url +
          '\n  Installed version : ' + version +
          '\n  Fixed version     : 9.5.4.x\n';
      }  
    }
    
    if (!isnull(report))
    {
      security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
    }
    else 
    {
      audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, url, version);
    }