Security Updates for Windows Server 2008 (May 2018) - Nessus

High   Plugin ID: 109651

This page contains detailed information about the Security Updates for Windows Server 2008 (May 2018) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 109651
Name: Security Updates for Windows Server 2008 (May 2018)
Filename: smb_nt_ms18_may_win2008.nasl
Vulnerability Published: 2018-05-08
This Plugin Published: 2018-05-09
Last Modification Time: 2022-03-28
Plugin Version: 1.16
Plugin Type: local
Plugin Family: Windows : Microsoft Bulletins
Dependencies: ms_bulletin_checks_possible.nasl, smb_check_rollup.nasl, smb_hotfixes.nasl, wmi_enum_server_features.nbin
Required KB Items [?]: SMB/MS_Bulletin_Checks/Possible

Vulnerability Information


Severity: High
Vulnerability Published: 2018-05-08
Patch Published: 2018-05-08
CVE [?]: CVE-2018-0824, CVE-2018-0886, CVE-2018-0959, CVE-2018-8120, CVE-2018-8124, CVE-2018-8164, CVE-2018-8166, CVE-2018-8167, CVE-2018-8174, CVE-2018-8897
CPE [?]: cpe:/o:microsoft:windows
Exploited by Malware: True

Synopsis

The remote Windows host is affected by multiple vulnerabilities.

Description

The remote Windows host is missing security updates. It is, therefore, affected by multiple vulnerabilities :

- A remote code execution vulnerability exists in the Credential Security Support Provider protocol (CredSSP). An attacker who successfully exploits this vulnerability could relay user credentials and use them to execute code on the target host. (CVE-2018-0886)

- An elevation of privilege vulnerability exists when the Windows kernel fails to properly handle objects in memory. An attacker who successfully exploited this vulnerability could run arbitrary code in kernel mode. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. (CVE-2018-8897)

- An elevation of privilege vulnerability exists when the Windows Common Log File System (CLFS) driver improperly handles objects in memory. An attacker who successfully exploited this vulnerability could run processes in an elevated context. (CVE-2018-8167)

- An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in memory. An attacker who successfully exploited this vulnerability could run arbitrary code in kernel mode. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. (CVE-2018-8120, CVE-2018-8124, CVE-2018-8164, CVE-2018-8166)

- A remote code execution vulnerability exists in "Microsoft COM for Windows" when it fails to properly handle serialized objects. An attacker who successfully exploited the vulnerability could use a specially crafted file or script to perform actions. In an email attack scenario, an attacker could exploit the vulnerability by sending the specially crafted file to the user and convincing the user to open the file. (CVE-2018-0824)

- A remote code execution vulnerability exists in the way that the VBScript engine handles objects in memory. The vulnerability could corrupt memory in such a way that an attacker could execute arbitrary code in the context of the current user. An attacker who successfully exploited the vulnerability could gain the same user rights as the current user. (CVE-2018-8174)

- A remote code execution vulnerability exists when Windows Hyper-V on a host server fails to properly validate input from an authenticated user on a guest operating system. (CVE-2018-0959)

Solution

Microsoft has released security updates for Windows Server 2008.

Public Exploits


Target Network Port(s): 139, 445
Target Asset(s): Host/patch_management_checks
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Security Updates for Windows Server 2008 (May 2018) vulnerability:

  1. Metasploit: exploit/windows/local/mov_ss
    [Microsoft Windows POP/MOV SS Local Privilege Elevation Vulnerability]
  2. Metasploit: exploit/windows/local/ms18_8120_win32k_privesc
    [Windows SetImeInfoEx Win32k NULL Pointer Dereference]
  3. Metasploit: post/windows/escalate/unmarshal_cmd_exec
    [Windows unmarshal post exploitation]
  4. Exploit-DB: exploits/windows/local/44697.txt
    [EDB-44697: Microsoft Windows - 'POP/MOV SS' Privilege Escalation]
  5. Exploit-DB: exploits/windows/local/44906.txt
    [EDB-44906: Microsoft COM for Windows - Privilege Escalation]
  6. Exploit-DB: exploits/windows/local/45024.rb
    [EDB-45024: Microsoft Windows - POP/MOV SS Local Privilege Elevation (Metasploit)]
  7. Exploit-DB: exploits/windows/local/45653.rb
    [EDB-45653: Microsoft Windows - SetImeInfoEx Win32k NULL Pointer Dereference (Metasploit)]
  8. Exploit-DB: exploits/windows/remote/44453.md
    [EDB-44453: Microsoft Credential Security Support Provider - Remote Code Execution]
  9. GitHub: https://codewhitesec.blogspot.com/2018/06/cve-2018-0624.html
    [CVE-2018-0824]
  10. GitHub: https://github.com/Ascotbe/Kernelhub
    [CVE-2018-0824]
  11. GitHub: https://github.com/Flerov/WindowsExploitDev
    [CVE-2018-0824]
  12. GitHub: https://github.com/cranelab/exploit-development
    [CVE-2018-0824]
  13. GitHub: https://github.com/ycdxsb/WindowsPrivilegeEscalation
    [CVE-2018-0824]
  14. GitHub: https://github.com/Ascotbe/Kernelhub
    [CVE-2018-0886]
  15. GitHub: https://github.com/DigitalRuby/IPBan
    [CVE-2018-0886]
  16. GitHub: https://github.com/Flerov/WindowsExploitDev
    [CVE-2018-0886]
  17. GitHub: https://github.com/cranelab/exploit-development
    [CVE-2018-0886]
  18. GitHub: https://github.com/jborean93/requests-credssp
    [CVE-2018-0886]
  19. GitHub: https://github.com/qazbnm456/awesome-cve-poc/blob/master/CVE-2018-0886.md
    [CVE-2018-0886]
  20. GitHub: https://github.com/ycdxsb/WindowsPrivilegeEscalation
    [CVE-2018-0886]
  21. GitHub: https://github.com/Al1ex/WindowsElevation
    [CVE-2018-8120]
  22. GitHub: https://github.com/Apri1y/Red-Team-links
    [CVE-2018-8120]
  23. GitHub: https://github.com/Ascotbe/Kernelhub
    [CVE-2018-8120]
  24. GitHub: https://github.com/DreamoneOnly/CVE-2018-8120
    [CVE-2018-8120]
  25. GitHub: https://github.com/Echocipher/Resource-list
    [CVE-2018-8120]
  26. GitHub: https://github.com/HacTF/poc--exp
    [CVE-2018-8120]
  27. GitHub: https://github.com/Hacker-One/WindowsExploits
    [CVE-2018-8120]
  28. GitHub: https://github.com/Jkrasher/WindowsThreatResearch_JKrasher
    [CVE-2018-8120]
  29. GitHub: https://github.com/L1ves/windows-pentesting-resources
    [CVE-2018-8120]
  30. GitHub: https://github.com/MrTcsy/Exploit
    [CVE-2018-8120]
  31. GitHub: https://github.com/Mr-xn/Penetration_Testing_POC
    [CVE-2018-8120]
  32. GitHub: https://github.com/QChiLan/win-exploit
    [CVE-2018-8120]
  33. GitHub: https://github.com/S3cur3Th1sSh1t/WinPwn
    [CVE-2018-8120]
  34. GitHub: https://github.com/SecWiki/windows-kernel-exploits
    [CVE-2018-8120]
  35. GitHub: https://github.com/SexyBeast233/SecBooks
    [CVE-2018-8120]
  36. GitHub: https://github.com/Smi1eSEC/Web-Security-Note
    [CVE-2018-8120]
  37. GitHub: https://github.com/StartZYP/CVE-2018-8120
    [CVE-2018-8120: This CVE-2018-8120 File]
  38. GitHub: https://github.com/ThunderJie/CVE
    [CVE-2018-8120]
  39. GitHub: https://github.com/Y0n0Y/cve-2018-8120-exp
    [CVE-2018-8120]
  40. GitHub: https://github.com/bigric3/cve-2018-8120
    [CVE-2018-8120]
  41. GitHub: https://github.com/demilson/Windows
    [CVE-2018-8120]
  42. GitHub: https://github.com/demonsec666/Security-Toolkit
    [CVE-2018-8120]
  43. GitHub: https://github.com/distance-vector/window-kernel-exp
    [CVE-2018-8120]
  44. GitHub: https://github.com/geeksniper/windows-privilege-escalation
    [CVE-2018-8120]
  45. GitHub: https://github.com/hudunkey/Red-Team-links
    [CVE-2018-8120]
  46. GitHub: https://github.com/john-80/-007
    [CVE-2018-8120]
  47. GitHub: https://github.com/leeqwind/HolicPOC
    [CVE-2018-8120]
  48. GitHub: https://github.com/lp008/Hack-readme
    [CVE-2018-8120]
  49. GitHub: https://github.com/mishmashclone/SecWiki-windows-kernel-exploits
    [CVE-2018-8120]
  50. GitHub: https://github.com/n8v79a/win-exploit
    [CVE-2018-8120]
  51. GitHub: https://github.com/nanabingies/CVE-2018-8120
    [CVE-2018-8120]
  52. GitHub: https://github.com/ne1llee/cve-2018-8120
    [CVE-2018-8120]
  53. GitHub: https://github.com/pwninx/WinPwn
    [CVE-2018-8120]
  54. GitHub: https://github.com/qiantu88/CVE-2018-8120
    [CVE-2018-8120]
  55. GitHub: https://github.com/qiantu88/cve
    [CVE-2018-8120]
  56. GitHub: https://github.com/redteampa1/Windows
    [CVE-2018-8120]
  57. GitHub: https://github.com/renzu0/Windows-exp
    [CVE-2018-8120]
  58. GitHub: https://github.com/root26/bug
    [CVE-2018-8120]
  59. GitHub: https://github.com/safesword/WindowsExp
    [CVE-2018-8120]
  60. GitHub: https://github.com/slimdaddy/RedTeam
    [CVE-2018-8120]
  61. GitHub: https://github.com/uhub/awesome-cpp
    [CVE-2018-8120]
  62. GitHub: https://github.com/valentinoJones/Windows-Kernel-Exploits
    [CVE-2018-8120]
  63. GitHub: https://github.com/washgo/HackTool
    [CVE-2018-8120]
  64. GitHub: https://github.com/wateroot/poc-exp
    [CVE-2018-8120]
  65. GitHub: https://github.com/wikiZ/cve-2018-8120
    [CVE-2018-8120]
  66. GitHub: https://github.com/xiaoZ-hc/redtool
    [CVE-2018-8120]
  67. GitHub: https://github.com/ycdxsb/WindowsPrivilegeEscalation
    [CVE-2018-8120]
  68. GitHub: https://github.com/yisan1/hh
    [CVE-2018-8120]
  69. GitHub: https://github.com/ycdxsb/WindowsPrivilegeEscalation
    [CVE-2018-8124]
  70. GitHub: https://github.com/ycdxsb/WindowsPrivilegeEscalation
    [CVE-2018-8164]
  71. GitHub: https://github.com/ycdxsb/WindowsPrivilegeEscalation
    [CVE-2018-8166]
  72. GitHub: https://github.com/1120362990/Paper
    [CVE-2018-8174]
  73. GitHub: https://github.com/Apri1y/Red-Team-links
    [CVE-2018-8174]
  74. GitHub: https://github.com/CyberMonitor/APT_CyberCriminal_Campagin_Collections
    [CVE-2018-8174]
  75. GitHub: https://github.com/DarkFlameMaster-bit/CVE-2018-8174_EXP
    [CVE-2018-8174]
  76. GitHub: https://github.com/Echocipher/Resource-list
    [CVE-2018-8174]
  77. GitHub: https://github.com/HacTF/poc--exp
    [CVE-2018-8174]
  78. GitHub: https://github.com/InQuest/yara-rules
    [CVE-2018-8174]
  79. GitHub: https://github.com/KasperskyLab/VBscriptInternals
    [CVE-2018-8174]
  80. GitHub: https://github.com/MrTcsy/Exploit
    [CVE-2018-8174]
  81. GitHub: https://github.com/Panopticon-Project/panopticon-DarkHotel
    [CVE-2018-8174]
  82. GitHub: https://github.com/RingLcy/VulnerabilityAnalysisAndExploit
    [CVE-2018-8174]
  83. GitHub: https://github.com/dcsync/rtfkit
    [CVE-2018-8174: generate RTF exploit payload. uses cve-2017-11882, cve-2017-8570, cve-2018-0802, and ...]
  84. GitHub: https://github.com/delina1/CVE-2018-8174
    [CVE-2018-8174]
  85. GitHub: https://github.com/delina1/CVE-2018-8174_EXP
    [CVE-2018-8174]
  86. GitHub: https://github.com/ericisnotrealname/CVE-2018-8174_EXP
    [CVE-2018-8174]
  87. GitHub: https://github.com/eric-erki/APT_CyberCriminal_Campagin_Collections
    [CVE-2018-8174]
  88. GitHub: https://github.com/hongriSec/Growth-Diary
    [CVE-2018-8174]
  89. GitHub: https://github.com/hudunkey/Red-Team-links
    [CVE-2018-8174]
  90. GitHub: https://github.com/iwarsong/apt
    [CVE-2018-8174]
  91. GitHub: https://github.com/john-80/-007
    [CVE-2018-8174]
  92. GitHub: https://github.com/likescam/APT_CyberCriminal_Campagin_Collections
    [CVE-2018-8174]
  93. GitHub: https://github.com/likescam/CVE-2018-8174-msf
    [CVE-2018-8174]
  94. GitHub: https://github.com/likescam/CyberMonitor-APT_CyberCriminal_Campagin_Collections
    [CVE-2018-8174]
  95. GitHub: https://github.com/lisinan988/CVE-2018-8174-exp
    [CVE-2018-8174]
  96. GitHub: https://github.com/lp008/Hack-readme
    [CVE-2018-8174]
  97. GitHub: https://github.com/qazbnm456/awesome-cve-poc/blob/master/CVE-2018-8174.md
    [CVE-2018-8174]
  98. GitHub: https://github.com/sinisterghost/https-github.com-iBearcat-CVE-2018-8174_EXP
    [CVE-2018-8174]
  99. GitHub: https://github.com/slimdaddy/RedTeam
    [CVE-2018-8174]
  100. GitHub: https://github.com/sumas/APT_CyberCriminal_Campagin_Collections
    [CVE-2018-8174]
  101. GitHub: https://github.com/w16692926717/CVE-2018-8174_EXP
    [CVE-2018-8174]
  102. GitHub: https://github.com/washgo/HackTool
    [CVE-2018-8174]
  103. GitHub: https://github.com/wateroot/poc-exp
    [CVE-2018-8174]
  104. GitHub: https://github.com/wrlu/Vulnerabilities
    [CVE-2018-8174]
  105. GitHub: https://github.com/www201001/https-github.com-iBearcat-CVE-2018-8174_EXP
    [CVE-2018-8174]
  106. GitHub: https://github.com/www201001/https-github.com-iBearcat-CVE-2018-8174_EXP.git-
    [CVE-2018-8174]
  107. GitHub: https://github.com/xiaoZ-hc/redtool
    [CVE-2018-8174]
  108. GitHub: https://github.com/Apri1y/Red-Team-links
    [CVE-2018-8897]
  109. GitHub: https://github.com/CrackerCat/Kernel-Security-Development
    [CVE-2018-8897]
  110. GitHub: https://github.com/Echocipher/Resource-list
    [CVE-2018-8897]
  111. GitHub: https://github.com/ExpLife0011/awesome-windows-kernel-security-development
    [CVE-2018-8897]
  112. GitHub: https://github.com/Ondrik8/exploit
    [CVE-2018-8897]
  113. GitHub: https://github.com/hudunkey/Red-Team-links
    [CVE-2018-8897]
  114. GitHub: https://github.com/john-80/-007
    [CVE-2018-8897]
  115. GitHub: https://github.com/lp008/Hack-readme
    [CVE-2018-8897]
  116. GitHub: https://github.com/pr0code/https-github.com-ExpLife0011-awesome-windows-kernel-security-development
    [CVE-2018-8897]
  117. GitHub: https://github.com/pravinsrc/NOTES-windows-kernel-links
    [CVE-2018-8897]
  118. GitHub: https://github.com/slimdaddy/RedTeam
    [CVE-2018-8897]
  119. GitHub: https://github.com/whiteHat001/Kernel-Security
    [CVE-2018-8897]
  120. GitHub: https://github.com/xiaoZ-hc/redtool
    [CVE-2018-8897]
  121. GitHub: https://www.triplefault.io/2018/05/spurious-db-exceptions-with-pop-ss.html
    [CVE-2018-8897]
  122. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/44453.zip
    [EDB-44453]
  123. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/44697.zip
    [EDB-44697]
  124. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/44906.zip
    [EDB-44906]
  125. GitHub: https://github.com/codewhitesec/UnmarshalPwn
    [CVE-2018-0824: POC for CVE-2018-0824]
  126. GitHub: https://github.com/preempt/credssp
    [CVE-2018-0886: A code demonstrating CVE-2018-0886]
  127. GitHub: https://github.com/alpha1ab/CVE-2018-8120
    [CVE-2018-8120: CVE-2018-8120 Exploit for Win2003 Win2008 WinXP Win7]
  128. GitHub: https://github.com/areuu/CVE-2018-8120
    [CVE-2018-8120: CVE-2018-8120 POC]
  129. GitHub: https://github.com/ozkanbilge/CVE-2018-8120
    [CVE-2018-8120: CVE-2018-8120 Windows LPE exploit]
  130. GitHub: https://github.com/unamer/CVE-2018-8120
    [CVE-2018-8120: CVE-2018-8120 Windows LPE exploit]
  131. GitHub: https://github.com/0x09AL/CVE-2018-8174-msf
    [CVE-2018-8174: CVE-2018-8174 - VBScript memory corruption exploit.]
  132. GitHub: https://github.com/orf53975/Rig-Exploit-for-CVE-2018-8174
    [CVE-2018-8174: Rig Exploit for CVE-2018-8174 As with its previous campaigns, Rig’s Seamless ...]
  133. GitHub: https://github.com/piotrflorczyk/cve-2018-8174_analysis
    [CVE-2018-8174: Analysis of VBS exploit CVE-2018-8174]
  134. GitHub: https://github.com/ruthlezs/ie11_vbscript_exploit
    [CVE-2018-8174: Exploit Generator for CVE-2018-8174 & CVE-2019-0768 (RCE via VBScript Execution in ...]
  135. GitHub: https://github.com/SyFi/CVE-2018-8174
    [CVE-2018-8174: MS Word MS WordPad via IE VBS Engine RCE]
  136. GitHub: https://github.com/Yt1g3r/CVE-2018-8174_EXP
    [CVE-2018-8174: CVE-2018-8174_python]
  137. GitHub: https://github.com/can1357/CVE-2018-8897
    [CVE-2018-8897: Arbitrary code execution with kernel privileges using CVE-2018-8897.]
  138. GitHub: https://github.com/jiazhang0/pop-mov-ss-exploit
    [CVE-2018-8897: The exploitation for CVE-2018-8897]
  139. GitHub: https://github.com/nmulasmajic/CVE-2018-8897
    [CVE-2018-8897: Implements the POP/MOV SS (CVE-2018-8897) vulnerability by bugchecking the machine ...]
  140. GitHub: https://github.com/nmulasmajic/syscall_exploit_CVE-2018-8897
    [CVE-2018-8897: Implements the POP/MOV SS (CVE-2018-8897) vulnerability by leveraging SYSCALL to ...]
  141. GitHub: https://github.com/EVOL4/CVE-2018-8120
    [CVE-2018-8120: Dd]
  142. Immunity Canvas: CANVAS

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2018-8174
CVSS V2 Vector: AV:N/AC:H/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:7.6 (High)
Impact Subscore:10.0
Exploitability Subscore:4.9
CVSS Temporal Score:6.6 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.6 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:5.9
Exploitability Subscore:1.6
CVSS Temporal Score:7.2 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.2 (High)

Go back to menu.

Plugin Source


This is the smb_nt_ms18_may_win2008.nasl nessus plugin source code. This script is Copyright (C) 2018-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
#
# (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('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(109651);
  script_version("1.16");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/03/28");

  script_cve_id(
    "CVE-2018-0824",
    "CVE-2018-0886",
    "CVE-2018-0959",
    "CVE-2018-8120",
    "CVE-2018-8124",
    "CVE-2018-8164",
    "CVE-2018-8166",
    "CVE-2018-8167",
    "CVE-2018-8174",
    "CVE-2018-8897"
  );
  script_bugtraq_id(
    103998,
    104030,
    104031,
    104033,
    104034,
    104037,
    104063,
    104071
  );
  script_xref(name:"MSKB", value:"4056564");
  script_xref(name:"MSKB", value:"4094079");
  script_xref(name:"MSKB", value:"4101477");
  script_xref(name:"MSKB", value:"4130944");
  script_xref(name:"MSKB", value:"4131188");
  script_xref(name:"MSKB", value:"4134651");
  script_xref(name:"MSFT", value:"MS18-4056564");
  script_xref(name:"MSFT", value:"MS18-4094079");
  script_xref(name:"MSFT", value:"MS18-4101477");
  script_xref(name:"MSFT", value:"MS18-4130944");
  script_xref(name:"MSFT", value:"MS18-4131188");
  script_xref(name:"MSFT", value:"MS18-4134651");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/08/15");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/04/05");

  script_name(english:"Security Updates for Windows Server 2008 (May 2018)");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote Windows host is missing security updates. It is,
therefore, affected by multiple vulnerabilities :

  - A remote code execution vulnerability exists in the Credential
    Security Support Provider protocol (CredSSP). An attacker who
    successfully exploits this vulnerability could relay user
    credentials and use them to execute code on the target host.
    (CVE-2018-0886)

  - An elevation of privilege vulnerability exists when the
    Windows kernel fails to properly handle objects in
    memory. An attacker who successfully exploited this
    vulnerability could run arbitrary code in kernel mode.
    An attacker could then install programs; view, change,
    or delete data; or create new accounts with full user
    rights.  (CVE-2018-8897)

  - An elevation of privilege vulnerability exists when the
    Windows Common Log File System (CLFS) driver improperly
    handles objects in memory. An attacker who successfully
    exploited this vulnerability could run processes in an
    elevated context.  (CVE-2018-8167)

  - An elevation of privilege vulnerability exists in
    Windows when the Win32k component fails to properly
    handle objects in memory. An attacker who successfully
    exploited this vulnerability could run arbitrary code in
    kernel mode. An attacker could then install programs;
    view, change, or delete data; or create new accounts
    with full user rights.  (CVE-2018-8120, CVE-2018-8124,
    CVE-2018-8164, CVE-2018-8166)

  - A remote code execution vulnerability exists in
    "Microsoft COM for Windows" when it fails to
    properly handle serialized objects. An attacker who
    successfully exploited the vulnerability could use a
    specially crafted file or script to perform actions. In
    an email attack scenario, an attacker could exploit the
    vulnerability by sending the specially crafted file to
    the user and convincing the user to open the file.
    (CVE-2018-0824)

  - A remote code execution vulnerability exists in the way
    that the VBScript engine handles objects in memory. The
    vulnerability could corrupt memory in such a way that an
    attacker could execute arbitrary code in the context of
    the current user. An attacker who successfully exploited
    the vulnerability could gain the same user rights as the
    current user.  (CVE-2018-8174)

  - A remote code execution vulnerability exists when
    Windows Hyper-V on a host server fails to properly
    validate input from an authenticated user on a guest
    operating system.  (CVE-2018-0959)");
  # https://support.microsoft.com/en-us/help/4056564/security-update-for-vulnerabilities-in-windows-server-2008
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b5f5c446");
  # https://support.microsoft.com/en-us/help/4094079/security-update-for-vulnerabilities-in-windows-server-2008
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?772e96fe");
  # https://support.microsoft.com/en-us/help/4134651/description-of-the-security-update-for-vulnerabilities-in-windows
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?5ebb568d");
  # https://support.microsoft.com/en-us/help/4131188/win32k-elevation-of-privilege-vulnerability
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?3f9bcdfa");
  # https://support.microsoft.com/en-us/help/4130944/windows-common-log-file-system-driver-vulnerability
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?28ae25e4");
  # https://support.microsoft.com/en-us/help/4101477/microsoft-com-for-windows-remote-code-execution-vulnerability
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?90a897a3");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released security updates for Windows Server 2008.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-8174");

  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:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Microsoft Windows POP/MOV SS Local Privilege Elevation Vulnerability');
  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:"CANVAS");

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/05/08");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/05/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/05/09");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
  script_end_attributes();

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

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

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

  exit(0);
}

include("audit.inc");
include("smb_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("misc_func.inc");

get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");

bulletin = 'MS18-05';

kbs = make_list(
  "4056564",
  "4094079",
  "4101477",
  "4130944",
  "4131188",
  "4134651"
);

if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);

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

# KBs only apply to Windows 2008
if (hotfix_check_sp_range(vista:'2') <= 0)
  audit(AUDIT_OS_SP_NOT_VULN);

productname = get_kb_item_or_exit("SMB/ProductName", exit_code:1);
if ("Vista" >< productname) audit(AUDIT_OS_SP_NOT_VULN);

systemroot = hotfix_get_systemroot();
if (!systemroot) audit(AUDIT_PATH_NOT_DETERMINED, 'system root');

arch = get_kb_item_or_exit('SMB/ARCH', exit_code:1);

port   = kb_smb_transport();
login  = kb_smb_login();
pass   = kb_smb_password();
domain = kb_smb_domain();

if(! smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');

winsxs = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:"\1\WinSxS", string:systemroot);
winsxs_share = hotfix_path2share(path:systemroot);

rc = NetUseAdd(login:login, password:pass, domain:domain, share:winsxs_share);
if (rc != 1)
{
  NetUseDel();
  audit(AUDIT_SHARE_FAIL, winsxs_share);
}

the_session = make_array(
  'login',    login,
  'password', pass,
  'domain',   domain,
  'share',    winsxs_share
);

vuln = 0;

# KB4056564
files = list_dir(basedir:winsxs, level:0, dir_pat:"security-schannel_31bf3856ad364e35", file_pat:"^schannel\.dll$", max_recurse:1);
vuln += hotfix_check_winsxs(os:'6.0',
                            sp:2,
                            files:files,
                            versions:make_list('6.0.6002.24383'),
                            max_versions:make_list('6.0.6003.99999'),
                            bulletin:bulletin,
                            kb:"4056564", session:the_session);


# KB4094079 (hyper-v ; 64bit only)
files = list_dir(basedir:winsxs, level:0, dir_pat:"hyper-v-storage_31bf3856ad364e35", file_pat:"^synthstor\.dll$", max_recurse:1);
if (
  arch == "x64" &&
  (get_kb_item('WMI/server_feature/20') || report_paranoia == 2 ) &&
  hotfix_check_winsxs(os:'6.0',
                            sp:2,
                            files:files,
                            versions:make_list('6.0.6002.24362'),
                            max_versions:make_list('6.0.6003.99999'),
                            bulletin:bulletin,
                            kb:"4094079", session:the_session)
)
{
  vuln++;
}

# KB4101477
files = list_dir(basedir:winsxs, level:0, dir_pat:"catsrvut-comsvcs_31bf3856ad364e35", file_pat:"^catsrvut\.dll$", max_recurse:1);
vuln += hotfix_check_winsxs(os:'6.0',
                            sp:2,
                            files:files,
                            versions:make_list('2001.12.6932.24363'),
                            max_versions:make_list('2001.12.6932.99999'),
                            bulletin:bulletin,
                            kb:"4101477", session:the_session);


# KB4130944
files = list_dir(basedir:winsxs, level:0, dir_pat:"commonlog_31bf3856ad364e35", file_pat:"^clfs\.sys$", max_recurse:1);
vuln += hotfix_check_winsxs(os:'6.0',
                            sp:2,
                            files:files,
                            versions:make_list('6.0.6002.24361'),
                            max_versions:make_list('6.0.6003.99999'),
                            bulletin:bulletin,
                            kb:"4130944", session:the_session);

# KB4131188
files = list_dir(basedir:winsxs, level:0, dir_pat:"win32k_31bf3856ad364e35", file_pat:"^win32k\.sys$", max_recurse:1);
vuln += hotfix_check_winsxs(os:'6.0',
                            sp:2,
                            files:files,
                            versions:make_list('6.0.6002.24363'),
                            max_versions:make_list('6.0.6003.99999'),
                            bulletin:bulletin,
                            kb:"4131188", session:the_session);

# KB4134651
files = list_dir(basedir:winsxs, level:0, dir_pat:"ntdll_31bf3856ad364e35", file_pat:"^ntdll\.dll$", max_recurse:1);
vuln += hotfix_check_winsxs(os:'6.0',
                            sp:2,
                            files:files,
                            versions:make_list('6.0.6002.24367'),
                            max_versions:make_list('6.0.6003.99999'),
                            bulletin:bulletin,
                            kb:"4134651", session:the_session);

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

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/smb_nt_ms18_may_win2008.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\smb_nt_ms18_may_win2008.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/smb_nt_ms18_may_win2008.nasl

Go back to menu.

How to Run


Here is how to run the Security Updates for Windows Server 2008 (May 2018) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows : Microsoft Bulletins plugin family.
  6. On the right side table select Security Updates for Windows Server 2008 (May 2018) plugin ID 109651.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl smb_nt_ms18_may_win2008.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a smb_nt_ms18_may_win2008.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - smb_nt_ms18_may_win2008.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state smb_nt_ms18_may_win2008.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: MSKB | Microsoft Knowledge Base: MSFT | Microsoft Security Bulletin:
  • MS18-4056564, MS18-4094079, MS18-4101477, MS18-4130944, MS18-4131188, MS18-4134651
See also: Similar and related Nessus plugins:
  • 109725 - Citrix XenServer Multiple Vulnerabilities (CTX234679)
  • 111296 - Photon OS 2.0 : linux-aws / linux-esx / linux-secure / linux (PhotonOS-PHSA-2018-2.0-0037-(a)) (deprecated)
  • 132252 - RancherOS < 1.4.0 Information Disclosure
  • 109727 - Xen Intel Architecture Debug Exception Handling Local Privilege Escalation (XSA-260)
  • 109603 - KB4103716: Windows 10 May 2018 Security Update
  • 109604 - KB4103712: Windows 7 and Windows Server 2008 R2 May 2018 Security Update
  • 109605 - KB4103721: Windows 10 Version 1803 and Windows Server Version 1803 May 2018 Security Update
  • 109606 - KB4103723: Windows 10 Version 1607 and Windows Server 2016 May 2018 Security Update
  • 109607 - KB4103715: Windows 8.1 and Windows Server 2012 R2 May 2018 Security Update
  • 109608 - KB4103727: Windows 10 Version 1709 and Windows Server Version 1709 May 2018 Security Update
  • 109610 - KB4103726: Windows Server 2012 May 2018 Security Update
  • 109611 - KB4103731: Windows 10 Version 1703 May 2018 Security Update
  • 109613 - Security Updates for Internet Explorer (May 2018)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file smb_nt_ms18_may_win2008.nasl version 1.16. For more plugins, visit the Nessus Plugin Library.

Go back to menu.