Vulnerabilities > CVE-2019-1443 - Unrestricted Upload of File with Dangerous Type vulnerability in Microsoft products

047910
CVSS 6.5 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
LOW
Confidentiality impact
HIGH
Integrity impact
NONE
Availability impact
NONE
network
low complexity
microsoft
CWE-434
nessus

Summary

An information disclosure vulnerability exists in Microsoft SharePoint when an attacker uploads a specially crafted file to the SharePoint Server.An authenticated attacker who successfully exploited this vulnerability could potentially leverage SharePoint functionality to obtain SMB hashes.The security update addresses the vulnerability by correcting how SharePoint checks file content., aka 'Microsoft SharePoint Information Disclosure Vulnerability'.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Accessing Functionality Not Properly Constrained by ACLs
    In applications, particularly web applications, access to functionality is mitigated by the authorization framework, whose job it is to map ACLs to elements of the application's functionality; particularly URL's for web apps. In the case that the administrator failed to specify an ACL for a particular element, an attacker may be able to access it with impunity. An attacker with the ability to access functionality not properly constrained by ACLs can obtain sensitive information and possibly compromise the entire application. Such an attacker can access resources that must be available only to users at a higher privilege level, can access management sections of the application or can run queries for data that he is otherwise not supposed to.
  • Privilege Abuse
    An adversary is able to exploit features of the target that should be reserved for privileged users or administrators but are exposed to use by lower or non-privileged accounts. Access to sensitive information and functionality must be controlled to ensure that only authorized users are able to access these resources. If access control mechanisms are absent or misconfigured, a user may be able to access resources that are intended only for higher level users. An adversary may be able to exploit this to utilize a less trusted account to gain information and perform activities reserved for more trusted accounts. This attack differs from privilege escalation and other privilege stealing attacks in that the adversary never actually escalates their privileges but instead is able to use a lesser degree of privilege to access resources that should be (but are not) reserved for higher privilege accounts. Likewise, the adversary does not exploit trust or subvert systems - all control functionality is working as configured but the configuration does not adequately protect sensitive resources at an appropriate level.

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS19_NOV_OFFICE_SHAREPOINT.NASL
descriptionThe Microsoft SharePoint Server installation on the remote host is missing security updates. It is, therefore, affected by multiple vulnerabilities : - A security feature bypass vulnerability exists when Microsoft Office does not validate URLs. An attacker could send a victim a specially crafted file, which could trick the victim into entering credentials. An attacker who successfully exploited this vulnerability could perform a phishing attack. The update addresses the vulnerability by ensuring Microsoft Office properly validates URLs. (CVE-2019-1442) - An information disclosure vulnerability exists in Microsoft SharePoint when an attacker uploads a specially crafted file to the SharePoint Server. An authenticated attacker who successfully exploited this vulnerability could potentially leverage SharePoint functionality to obtain SMB hashes. The security update addresses the vulnerability by correcting how SharePoint checks file content. (CVE-2019-1443) - An information disclosure vulnerability exists when Microsoft Excel improperly discloses the contents of its memory. An attacker who exploited the vulnerability could use the information to compromise the users computer or data. (CVE-2019-1446) - An information disclosure vulnerability exists in Microsoft SharePoint when an attacker sends a specially crafted API request to the SharePoint Server. An authenticated attacker who successfully exploited this vulnerability could potentially read arbitrary files on the server. The security update addresses the vulnerability by changing how affected APIs process requests. (CVE-2019-1491)
last seen2020-06-01
modified2020-06-02
plugin id130914
published2019-11-12
reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/130914
titleSecurity Updates for Microsoft SharePoint Server (November 2019)
code
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from the Microsoft Security Updates API. The text
# itself is copyright (C) Microsoft Corporation.
#
include("compat.inc");

if (description)
{
  script_id(130914);
  script_version("1.7");
  script_cvs_date("Date: 2020/01/17");

  script_cve_id("CVE-2019-1442", 
    "CVE-2019-1443", 
    "CVE-2019-1446", 
    "CVE-2019-1491");
  script_xref(name:"MSKB", value:"4484151");
  script_xref(name:"MSKB", value:"4484165");
  script_xref(name:"MSKB", value:"4484157");
  script_xref(name:"MSKB", value:"4484149");
  script_xref(name:"MSKB", value:"4484159");
  script_xref(name:"MSKB", value:"4484142");
  script_xref(name:"MSKB", value:"4484143");
  script_xref(name:"MSFT", value:"MS19-4484151");
  script_xref(name:"MSFT", value:"MS19-4484165");
  script_xref(name:"MSFT", value:"MS19-4484157");
  script_xref(name:"MSFT", value:"MS19-4484149");
  script_xref(name:"MSFT", value:"MS19-4484159");
  script_xref(name:"MSFT", value:"MS19-4484142");
  script_xref(name:"MSFT", value:"MS19-4484143");
  script_xref(name:"IAVA", value:"2019-A-0420");
  script_xref(name:"IAVA", value:"2020-A-0032");

  script_name(english:"Security Updates for Microsoft SharePoint Server (November 2019)");
  script_summary(english:"Checks for Microsoft security updates.");

  script_set_attribute(attribute:"synopsis", value:
"The Microsoft SharePoint Server installation on the remote host is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The Microsoft SharePoint Server installation on the remote
host is missing security updates. It is, therefore, affected
by multiple vulnerabilities :

  - A security feature bypass vulnerability exists when
    Microsoft Office does not validate URLs. An attacker
    could send a victim a specially crafted file, which
    could trick the victim into entering credentials. An
    attacker who successfully exploited this vulnerability
    could perform a phishing attack. The update addresses
    the vulnerability by ensuring Microsoft Office properly
    validates URLs. (CVE-2019-1442)

  - An information disclosure vulnerability exists in
    Microsoft SharePoint when an attacker uploads a
    specially crafted file to the SharePoint Server. An
    authenticated attacker who successfully exploited this
    vulnerability could potentially leverage SharePoint
    functionality to obtain SMB hashes. The security update
    addresses the vulnerability by correcting how SharePoint
    checks file content. (CVE-2019-1443)

  - An information disclosure vulnerability exists when
    Microsoft Excel improperly discloses the contents of its
    memory. An attacker who exploited the vulnerability
    could use the information to compromise the users
    computer or data.  (CVE-2019-1446)

  - An information disclosure vulnerability exists in
    Microsoft SharePoint when an attacker sends a specially
    crafted API request to the SharePoint Server. An
    authenticated attacker who successfully exploited this
    vulnerability could potentially read arbitrary files 
    on the server. The security update
    addresses the vulnerability by changing how 
    affected APIs process requests. (CVE-2019-1491)");
  # https://support.microsoft.com/en-us/help/4484151/security-update-for-sharepoint-server-2013-november-12
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?30239d3e");
  # https://support.microsoft.com/en-us/help/4484165/security-update-for-sharepoint-foundation-2010-november-12-2019
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?0fd61f92");
  # https://support.microsoft.com/en-us/help/4484157/security-update-for-sharepoint-foundation-2013-november-12-2019
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?7c4a9439");
  # https://support.microsoft.com/en-us/help/4484149/security-update-for-sharepoint-server-2019-language-pack-november-12
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?0c15982d");
  # https://support.microsoft.com/en-us/help/4484159/security-update-for-sharepoint-server-2010-november-12
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?5fe30ea9");
  # https://support.microsoft.com/en-us/help/4484142/security-update-for-sharepoint-server-2019-november-12-2019
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?dbccec34");
  # https://support.microsoft.com/en-us/help/4484143/security-update-for-sharepoint-enterprise-server-2016-november-12
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9013241d");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released the following security updates to address this issue:  
  -KB4484151
  -KB4484165
  -KB4484157
  -KB4484149
  -KB4484159
  -KB4484142
  -KB4484143");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-1446");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/11/12");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/11/12");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/11/12");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:sharepoint");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

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

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

  script_dependencies("microsoft_sharepoint_installed.nbin", "smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl");
  script_require_keys("SMB/MS_Bulletin_Checks/Possible");
  script_require_ports(139, 445, "Host/patch_management_checks");

  exit(0);
}

include('smb_func.inc');
include('smb_hotfixes.inc');
include('smb_hotfixes_fcheck.inc');
include('smb_reg_query.inc');
include('misc_func.inc');
include('install_func.inc');
include('lists.inc');

get_kb_item_or_exit('SMB/MS_Bulletin_Checks/Possible');

bulletin = 'MS19-11';

kbs = make_list(
  '4484165', # 2010 SP2 Foundation
  '4484159', # 2010 SP2 Server
  '4484151', # 2013 SP1 Enterprise
  '4484157', # 2013 SP1 Foundation
  '4484143', # 2016 Enterprise
  '4484142', # 2019
  '4484149'  # 2019 language pack
);

if (get_kb_item('Host/patch_management_checks'))
  hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_WARNING);

get_kb_item_or_exit('SMB/Registry/Enumerated', exit_code:1);

# Get path information for Windows.
windir = hotfix_get_systemroot();
if (isnull(windir)) exit(1, 'Failed to determine the location of %windir%.');

registry_init();

install = get_single_install(app_name:'Microsoft SharePoint Server');

kb_checks =
{
  '2010':
  { '2':
    {'Server':
      [{
        'kb': '4484159',
        'path': install['path'],
        'append':'bin',
        'file':'xlsrv.dll',
        'version':'14.0.7241.5000',
        'min_version':'14.0.0.0',
        'product_name':'Microsoft SharePoint Enterprise Server 2010 SP2'
      }],
      'Foundation':
      [{
          'kb': '4484165',
          'path':hotfix_get_commonfilesdir(),    
          'append':'microsoft shared\\web server extensions\\14\\bin', 
          'file':'onetutil.dll',  
          'version':'14.0.7241.5000',   
          'product_name':'Microsoft SharePoint Foundation Server 2010 SP 2'
      }]
    }
  },
  '2013':
  { '1':
    {'Foundation':
      [{
        'kb': '4484157',
        'path': hotfix_get_commonfilesdir(),
        'append':'microsoft shared\\web server extensions\\15\\bin',
        'file':'onetutil.dll', 
        'version':'15.0.5189.1000',
        'product_name':'Microsoft SharePoint Foundation Server 2013 SP1'
      },
      {
        'kb': '4484151',
        'path': install['path'],
        'append':'bin',
        'file':'xlsrv.dll',
         'version':'15.0.5189.1000',
         'product_name':'Microsoft SharePoint Foundation Server 2013 SP1'
      }]
    }
  },
  '2016':
  { '0':
    {'Server':
      [{
        'kb': '4484143',
        'path': install['path'],
        'append':'transformapps',
        'file':'docxpageconverter.exe',
        'version':'16.0.4921.1000',
        'product_name':'Microsoft SharePoint Enterprise Server 2016'
      }]
    }
  },
  '2019': 
  { '0':
    {'Server':
      [{
        'kb': '4484142',
        'path': install['path'],
        'append':'bin',
        'file':'microsoft.sharepoint.publishing.dll',
        'version':'16.0.10352.20000',
        'product_name':'Microsoft SharePoint Server 2019'
      },
      {
        'kb': '4484149',
        'path': install['path'],
        'append':'bin',
        'file':'microsoft.sharepoint.publishing.intl.dll',
        'version':'16.0.10352.20000',
        'product_name':'Microsoft SharePoint Server 2019'
      }]
    }
  }
};

# get the specific product / path 
param_list = kb_checks[install['Product']][install['SP']][install['Edition']];

# audit if not affected
if(isnull(param_list)) audit(AUDIT_INST_VER_NOT_VULN, "Microsoft SharePoint Server");

vuln = FALSE;
# grab the path otherwise
foreach check (param_list)
{
  path = hotfix_append_path(path:check['path'], value:check['append']);
  are_we_vuln = hotfix_check_fversion(file:check['file'], version:check['version'], path:path, kb:check['kb'], product:check['product_name']);
  if (are_we_vuln == HCF_OLDER)
  {
    vuln = TRUE;
  }
}

if (vuln == TRUE)
{
  replace_kb_item(name:'SMB/Missing/'+bulletin, value:TRUE);
  hotfix_security_warning();
  hotfix_check_fversion_end();
  exit(0);
}
else
{
  hotfix_check_fversion_end();
  audit(AUDIT_HOST_NOT, 'affected');
}