Vulnerabilities > CVE-2015-1639 - Cross-site Scripting vulnerability in Microsoft Office 2011

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
microsoft
CWE-79
nessus

Summary

Cross-site scripting (XSS) vulnerability in Microsoft Office for Mac 2011 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors, aka "Microsoft Outlook App for Mac XSS Vulnerability."

Vulnerable Configurations

Part Description Count
Application
Microsoft
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • 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.
  • Embedding Scripts in Non-Script Elements
    This attack is a form of Cross-Site Scripting (XSS) where malicious scripts are embedded in elements that are not expected to host scripts such as image tags (<img>), comments in XML documents (< !-CDATA->), etc. These tags may not be subject to the same input validation, output validation, and other content filtering and checking routines, so this can create an opportunity for an attacker to tunnel through the application's elements and launch a XSS attack through other elements. As with all remote attacks, it is important to differentiate the ability to launch an attack (such as probing an internal network for unpatched servers) and the ability of the remote attacker to collect and interpret the output of said attack.
  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Cross-Site Scripting in Error Pages
    An attacker distributes a link (or possibly some other query structure) with a request to a third party web server that is malformed and also contains a block of exploit code in order to have the exploit become live code in the resulting error page. When the third party web server receives the crafted request and notes the error it then creates an error message that echoes the malformed message, including the exploit. Doing this converts the exploit portion of the message into to valid language elements that are executed by the viewing browser. When a victim executes the query provided by the attacker the infected error message error message is returned including the exploit code which then runs in the victim's browser. XSS can result in execution of code as well as data leakage (e.g. session cookies can be sent to the attacker). This type of attack is especially dangerous since the exploit appears to come from the third party web server, who the victim may trust and hence be more vulnerable to deception.
  • Cross-Site Scripting Using Alternate Syntax
    The attacker uses alternate forms of keywords or commands that result in the same action as the primary form but which may not be caught by filters. For example, many keywords are processed in a case insensitive manner. If the site's web filtering algorithm does not convert all tags into a consistent case before the comparison with forbidden keywords it is possible to bypass filters (e.g., incomplete black lists) by using an alternate case structure. For example, the "script" tag using the alternate forms of "Script" or "ScRiPt" may bypass filters where "script" is the only form tested. Other variants using different syntax representations are also possible as well as using pollution meta-characters or entities that are eventually ignored by the rendering engine. The attack can result in the execution of otherwise prohibited functionality.

Msbulletin

bulletin_idMS15-033
bulletin_url
date2015-04-14T00:00:00
impactRemote Code Execution
knowledgebase_id3048019
knowledgebase_url
severityCritical
titleVulnerabilities in Microsoft Office Could Allow Remote Code Execution

Nessus

  • NASL familyMacOS X Local Security Checks
    NASL idMACOSX_MS15-033_OFFICE_2011.NASL
    descriptionThe remote Mac OS X host has a version of Microsoft Word installed that is affected by multiple vulnerabilities : - A cross-site scripting vulnerability exists due to improper sanitization of HTML strings. A remote attacker can exploit this issue by convincing a user to open a file or visit a website containing specially crafted content, resulting in execution of arbitrary code in the context of the current user. (CVE-2015-1639) - A remote code execution vulnerability exists due to improper handling rich text format files in memory. A remote attacker can exploit this vulnerability by convincing a user to open a specially crafted file using the affected software, resulting in execution of arbitrary code in the context of the current user. (CVE-2015-1641)
    last seen2020-06-01
    modified2020-06-02
    plugin id82767
    published2015-04-14
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/82767
    titleMS15-033: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (3048019)
    code
    #TRUSTED 8e59e93731ce6700387b62d09a9e63a40eb67d4b5c6b6d12b6757794fe7ab775b131aedd61a5913a913dd31f11cd4142641c2f579b649515f17f8b112554bada267cd9fb48cd68a92aa597bc48cce45366fdd96e51c7f426ce9c39efbfcc66887761fb46339e1f1900f2431eb4a48d0958c586f2cd1319b941126e471f36f770b7f726555b379ccc58505a0adac8cb1ca0d3d147c58a6ff7c74c7d696f5693f640fb1259cb8590d8f4391c02fdd4e27e8130d015e2cc7701bd682ccce9ec0b57971b806df96e557851600c79edeabec0307ebb8f004f78b5ed94d82ff1ac480fcdf1839ea6b5fd56271c1f2af0a47cf29cc8dd0a8758f0e5c59032ffba30e3e1e20b1e2429694d87db3324e0b4f7ce6acb3651c30f9ab984c95a006a635f94a4b354e4b3e21790ead55466806dc14a39adb527ef78f0dc925fb081c1820682ad4aa8d1caf0cf57c12f6c651f7f8e1eeb3b0e1c416850d79820408e7048c87cacb5eef6eb96e63427cc85f329d925708f5ed276ce8d7cbbc4f1b35a969641d1a230b2df16abfe7c78ac1fe6ab71e34030f2e9ac5cf0c0d077defcbeafe01f174b597a198f6d013c2cc697b67b798e6a787d6e7ebe4e6e49fa22632c6be6aa05b0def26eb6c07b7c23c92564ceea51932be4ee1d783756d593ddd2c5dfc71a0b814a35920f4479a3be5f3fff633c4bec144176e661d81218ef9f4c19c9beab32fd
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(82767);
      script_version("1.10");
      script_cvs_date("Date: 2019/11/22");
    
      script_cve_id("CVE-2015-1639", "CVE-2015-1641");
      script_bugtraq_id(73991, 73995);
      script_xref(name:"MSFT", value:"MS15-033");
      script_xref(name:"IAVA", value:"2015-A-0090");
      script_xref(name:"MSKB", value:"3051737");
    
      script_name(english:"MS15-033: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (3048019)");
      script_summary(english:"Checks the version of Microsoft Office.");
    
      script_set_attribute(attribute:"synopsis", value:
    "An application installed on the remote Mac OS X host is affected by
    multiple remote code execution vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "The remote Mac OS X host has a version of Microsoft Word installed
    that is affected by multiple vulnerabilities :
    
      - A cross-site scripting vulnerability exists due to
        improper sanitization of HTML strings. A remote attacker
        can exploit this issue by convincing a user to open a
        file or visit a website containing specially crafted
        content, resulting in execution of arbitrary code in the
        context of the current user. (CVE-2015-1639)
    
      - A remote code execution vulnerability exists due to
        improper handling rich text format files in memory. A
        remote attacker can exploit this vulnerability by
        convincing a user to open a specially crafted file using
        the affected software, resulting in execution of
        arbitrary code in the context of the current user.
        (CVE-2015-1641)");
      script_set_attribute(attribute:"see_also", value:"https://technet.microsoft.com/library/security/ms15-033");
      script_set_attribute(attribute:"solution", value:
    "Microsoft has released a patch for Office for Mac 2011.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:H/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:"exploited_by_malware", value:"true");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2015/04/14");
      script_set_attribute(attribute:"patch_publication_date", value:"2015/04/14");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/04/14");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2011::mac");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:word_for_mac:2011");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/a:microsoft:outlook_for_mac_for_office_365");
      script_set_attribute(attribute:"stig_severity", value:"II");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"MacOS X Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/MacOSX/Version");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("ssh_func.inc");
    include("macosx_func.inc");
    
    
    if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
      enable_ssh_wrappers();
    else disable_ssh_wrappers();
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    os = get_kb_item("Host/MacOSX/Version");
    if (!os) audit(AUDIT_OS_NOT, "Mac OS X");
    
    # Gather version info.
    info = '';
    installs = make_array();
    
    prod = 'Office for Mac 2011';
    plist = "/Applications/Microsoft Office 2011/Office/MicrosoftComponentPlugin.framework/Versions/14/Resources/Info.plist";
    cmd =  'cat \'' + plist + '\' | ' +
      'grep -A 1 CFBundleShortVersionString | ' +
      'tail -n 1 | ' +
      'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
    version = exec_cmd(cmd:cmd);
    if (version && version =~ "^[0-9]+\.")
    {
      version = chomp(version);
      if (version !~ "^14\.") exit(1, "Failed to get the version for "+prod+" - '"+version+"'.");
    
      installs[prod] = version;
    
      ver = split(version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(ver); i++)
        ver[i] = int(ver[i]);
    
      fixed_version = '14.4.9';
      fix = split(fixed_version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(fix); i++)
        fix[i] = int(fix[i]);
    
      for (i=0; i<max_index(fix); i++)
        if ((ver[i] < fix[i]))
        {
          info +=
            '\n  Product           : ' + prod +
            '\n  Installed version : ' + version +
            '\n  Fixed version     : ' + fixed_version + '\n';
          break;
        }
        else if (ver[i] > fix[i])
          break;
    }
    
    # Report findings.
    if (info)
    {
      set_kb_item(name:"www/0/XSS", value:TRUE);
      if (report_verbosity > 0) security_hole(port:0, extra:info);
      else security_hole(0);
    
      exit(0);
    }
    else
    {
      if (max_index(keys(installs)) == 0) exit(0, "Office for Mac 2011 is not installed.");
      else
      {
        msg = 'The host has ';
        foreach prod (sort(keys(installs)))
          msg += prod + ' ' + installs[prod] + ' and ';
        msg = substr(msg, 0, strlen(msg)-1-strlen(' and '));
    
        msg += ' installed and thus is not affected.';
    
        exit(0, msg);
      }
    }
    
  • NASL familyMacOS X Local Security Checks
    NASL idMACOSX_MS15-033_OUTLOOK_FOR_OFFICE365.NASL
    descriptionThe remote Mac OS X host has a version of Microsoft Outlook for Mac for Office 365 installed that is affected by a cross-site scripting vulnerability due to improper sanitization of HTML strings. A remote attacker can exploit this issue by convincing a user to open a file or visit a website containing specially crafted content, resulting in execution of arbitrary code in the context of the current user.
    last seen2020-06-01
    modified2020-06-02
    plugin id82768
    published2015-04-14
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/82768
    titleMS15-033: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (3048019)
    code
    #TRUSTED 418ac64d34158120ebda12e5a0a99c0b82e1a2d156b167d2069563bc220b01c3bdb5b5e11c3f07b141b22ad8569446451fff8d4a4dc5d816b2cc835edc4e22372694c79d4246c45f0313b994e67b80b40dba436b9eee891601db6b40c077bf8f32867dbd075ba3739c7a56a22a79b60f6cabc3b4ec85e906741c5c30c16fad62bfd31899b21e9e4e7703ed1701096832c71a4e95c278d6078c96bde01285364e00bde6b72a9f8ba8c3ad42ac3780b8e60628064b299700b30dae8f2c01b3d89cf3ad1ebd6c94b9822ee2ba4bc3b305d80dd406ae423b6a4dfed50f6c5c93528f26b881401b05188cf1af6a706315100001aefd989239bc545b3528048daaec1456639db3d3327ead6ea53dfd2fcf72c564c64f8c4bfe3e4a927798313f4f07c828bb8ae3cfdfe8094cb8adaa4104ab1369e0b4666bd1595aef312afd8da35ccfb55607fbcc4746e4504463b6e245fa68c4f8021d1fea81d3bbf167e3031871e0189ee5cd60cb03a7a33ea0b986ee51db106bc17f5c714445b4ddfbb92a5e1f1e0ac07a1627b35da5259e0868b3dbfb0927090e2fc387bbfa78e97969e9517ede0711e94c399731ec640945d5e894667ffae37d08565eb352539ffbf46f8f8b6350d3842d323b46c162a88f84e60e10be8d7bbd83d032aa35b9bee38f303a51820f6ce2488c09ab5c5359a1d7a5c18005efc81805f990a1115c023b17dee00bd6
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(82768);
      script_version("1.10");
      script_cvs_date("Date: 2019/11/22");
    
      script_cve_id("CVE-2015-1639");
      script_bugtraq_id(73991);
      script_xref(name:"MSFT", value:"MS15-033");
      script_xref(name:"IAVA", value:"2015-A-0090");
      script_xref(name:"MSKB", value:"3055707");
    
      script_name(english:"MS15-033: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (3048019)");
      script_summary(english:"Checks the version of Microsoft Office.");
    
      script_set_attribute(attribute:"synopsis", value:
    "An application installed on the remote Mac OS X host is affected by a
    cross-site scripting vulnerability.");
      script_set_attribute(attribute:"description", value:
    "The remote Mac OS X host has a version of Microsoft Outlook
    for Mac for Office 365 installed that is affected by a cross-site
    scripting vulnerability due to improper sanitization of HTML strings.
    A remote attacker can exploit this issue by convincing a user to open
    a file or visit a website containing specially crafted content,
    resulting in execution of arbitrary code in the context of the current
    user.");
      script_set_attribute(attribute:"see_also", value:"https://technet.microsoft.com/library/security/ms15-033");
      script_set_attribute(attribute:"solution", value:
    "Microsoft has released a patch for Outlook for Mac for Office 365.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
      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:"vuln_publication_date", value:"2015/04/14");
      script_set_attribute(attribute:"patch_publication_date", value:"2015/04/14");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/04/14");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/a:microsoft:outlook_for_mac_for_office_365");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2011:mac");
      script_set_attribute(attribute:"stig_severity", value:"II");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"MacOS X Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/MacOSX/Version");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("ssh_func.inc");
    include("macosx_func.inc");
    
    
    if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
      enable_ssh_wrappers();
    else disable_ssh_wrappers();
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    os = get_kb_item("Host/MacOSX/Version");
    if (!os) audit(AUDIT_OS_NOT, "Mac OS X");
    
    # Gather version info.
    info = '';
    installs = make_array();
    
    prod = 'Outlook for Mac for Office 365';
    plist = '/Applications/Microsoft Outlook.app/Contents/Info.plist';
    cmd =  'plutil -convert xml1 -o - \'' + plist + '\' | ' +
      'grep -A 1 CFBundleShortVersionString | ' +
      'tail -n 1 | ' +
      'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
    version = exec_cmd(cmd:cmd);
    if (version && version =~ "^[0-9]+\.")
    {
      version = chomp(version);
      if (version !~ "^15\.") exit(1, "Failed to get the version for "+prod+" - '"+version+"'.");
    
      installs[prod] = version;
    
      ver = split(version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(ver); i++)
        ver[i] = int(ver[i]);
    
      fixed_version = '15.9';
      fix = split(fixed_version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(fix); i++)
        fix[i] = int(fix[i]);
    
      for (i=0; i<max_index(fix); i++)
        if ((ver[i] < fix[i]))
        {
          info +=
            '\n  Product           : ' + prod +
            '\n  Installed version : ' + version +
            '\n  Fixed version     : ' + fixed_version + '\n';
          break;
        }
        else if (ver[i] > fix[i])
          break;
    }
    
    # Report findings.
    if (info)
    {
      set_kb_item(name:"www/0/XSS", value:TRUE);
      if (report_verbosity > 0) security_warning(port:0, extra:info);
      else security_warning(0);
    
      exit(0);
    }
    else
    {
      if (max_index(keys(installs)) == 0) audit(AUDIT_NOT_INST, prod);
      else
      {
        msg = 'The host has ';
        foreach prod (sort(keys(installs)))
          msg += prod + ' ' + installs[prod] + ' and ';
        msg = substr(msg, 0, strlen(msg)-1-strlen(' and '));
    
        msg += ' installed and thus is not affected.';
    
        exit(0, msg);
      }
    }