Vulnerabilities > CVE-2019-1442 - Origin Validation Error vulnerability in Microsoft Sharepoint Server 2019

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-346
nessus

Summary

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, aka 'Microsoft Office Security Feature Bypass Vulnerability'.

Vulnerable Configurations

Part Description Count
Application
Microsoft
1

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • JSON Hijacking (aka JavaScript Hijacking)
    An attacker targets a system that uses JavaScript Object Notation (JSON) as a transport mechanism between the client and the server (common in Web 2.0 systems using AJAX) to steal possibly confidential information transmitted from the server back to the client inside the JSON object by taking advantage of the loophole in the browser's Same Origin Policy that does not prohibit JavaScript from one website to be included and executed in the context of another website. An attacker gets the victim to visit his or her malicious page that contains a script tag whose source points to the vulnerable system with a URL that requests a response from the server containing a JSON object with possibly confidential information. The malicious page also contains malicious code to capture the JSON object returned by the server before any other processing on it can take place, typically by overriding the JavaScript function used to create new objects. This hook allows the malicious code to get access to the creation of each object and transmit the possibly sensitive contents of the captured JSON object to the attackers' server. There is nothing in the browser's security model to prevent the attackers' malicious JavaScript code (originating from attacker's domain) to set up an environment (as described above) to intercept a JSON object response (coming from the vulnerable target system's domain), read its contents and transmit to the attackers' controlled site. The same origin policy protects the domain object model (DOM), but not the JSON.
  • Cache Poisoning
    An attacker exploits the functionality of cache technologies to cause specific data to be cached that aids the attackers' objectives. This describes any attack whereby an attacker places incorrect or harmful material in cache. The targeted cache can be an application's cache (e.g. a web browser cache) or a public cache (e.g. a DNS or ARP cache). Until the cache is refreshed, most applications or clients will treat the corrupted cache value as valid. This can lead to a wide range of exploits including redirecting web browsers towards sites that install malware and repeatedly incorrect calculations based on the incorrect value.
  • DNS Cache Poisoning
    A domain name server translates a domain name (such as www.example.com) into an IP address that Internet hosts use to contact Internet resources. An attacker modifies a public DNS cache to cause certain names to resolve to incorrect addresses that the attacker specifies. The result is that client applications that rely upon the targeted cache for domain name resolution will be directed not to the actual address of the specified domain name but to some other address. Attackers can use this to herd clients to sites that install malware on the victim's computer or to masquerade as part of a Pharming attack.
  • Exploitation of Session Variables, Resource IDs and other Trusted Credentials
    Attacks on session IDs and resource IDs take advantage of the fact that some software accepts user input without verifying its authenticity. For example, a message queuing system that allows service requesters to post messages to its queue through an open channel (such as anonymous FTP), authorization is done through checking group or role membership contained in the posted message. However, there is no proof that the message itself, the information in the message (such group or role membership), or indeed the process that wrote the message to the queue are authentic and authorized to do so. Many server side processes are vulnerable to these attacks because the server to server communications have not been analyzed from a security perspective or the processes "trust" other systems because they are behind a firewall. In a similar way servers that use easy to guess or spoofable schemes for representing digital identity can also be vulnerable. Such systems frequently use schemes without cryptography and digital signatures (or with broken cryptography). Session IDs may be guessed due to insufficient randomness, poor protection (passed in the clear), lack of integrity (unsigned), or improperly correlation with access control policy enforcement points. Exposed configuration and properties files that contain system passwords, database connection strings, and such may also give an attacker an edge to identify these identifiers. The net result is that spoofing and impersonation is possible leading to an attacker's ability to break authentication, authorization, and audit controls on the system.
  • Application API Message Manipulation via Man-in-the-Middle
    An attacker manipulates either egress or ingress data from a client within an application framework in order to change the content of messages. Performing this attack can allow the attacker to gain unauthorized privileges within the application, or conduct attacks such as phishing, deceptive strategies to spread malware, or traditional web-application attacks. The techniques require use of specialized software that allow the attacker to man-in-the-middle communications between the web browser and the remote system. Despite the use of MITM software, the attack is actually directed at the server, as the client is one node in a series of content brokers that pass information along to the application framework. Additionally, it is not true "Man-in-the-Middle" attack at the network layer, but an application-layer attack the root cause of which is the master applications trust in the integrity of code supplied by the client.

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');
}