Lucene search
K

Microsoft Windows 7 / Server 2008 R2 Unsupported Version Detection

🗓️ 06 Mar 2019 00:00:00Reported by This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.Type 
nessus
 nessus
🔗 www.tenable.com👁 386 Views

Microsoft Windows 7 / Server 2008 R2 Unsupported Version Detectio

Refs
Code
SourceLink
nessuswww.nessus.org/u
#
# (C) Tenable Network Security, Inc.
#

include('compat.inc');

if (description)
{
  script_id(122615);
  script_version("1.7");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/09/22");

  script_xref(name:"IAVA", value:"0001-A-0021");

  script_name(english:"Microsoft Windows 7 / Server 2008 R2 Unsupported Version Detection");

  script_set_attribute(attribute:"synopsis", value:"
The remote operating system is no longer supported.");
  script_set_attribute(attribute:"description", value:
"Microsoft Windows 7 or Server 2008 R2 is running on the remote host.
Microsoft ended support for Windows 7 and Server 2008 R2 on 1/14/2020.

Lack of support implies that no new security patches for the product
will be released by the vendor. As a result, it is likely to contain
security vulnerabilities. Furthermore, Microsoft is unlikely to
investigate or acknowledge reports of vulnerabilities.");
  # https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?e2452f2e");
  script_set_attribute(attribute:"solution", value:
"Upgrade to a version of Microsoft Windows that is currently supported.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A: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_attribute(attribute:"cvss_score_source", value:"manual");
  script_set_attribute(attribute:"cvss_score_rationale", value:"Unsupported OS.");

  script_set_attribute(attribute:"plugin_publication_date", value:"2019/03/06");

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

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

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

  script_dependencies("smb_reg_service_pack.nasl", "wmi_win_7_2008r2_esu_status.nbin");
  script_exclude_keys("SMB/not_windows");
  script_require_ports("SMB/WindowsVersion", "SMB/ProductName", "SMB/CSDVersion");

  exit(0);
}

if (get_kb_item('SMB/not_windows')) audit(AUDIT_OS_NOT, 'Windows');

var os = get_kb_item_or_exit('SMB/WindowsVersion');
var os_name = get_kb_item_or_exit('SMB/ProductName');
var sp = get_kb_item('SMB/CSDVersion');
if ( sp )
{
  sp = ereg_replace(pattern:".*Service Pack ([0-9]).*", string:sp, replace:"\1");
  sp = int(sp);
}
else sp = 0;

# Not Windows 6.1
if ('6.1' >!< os) audit(AUDIT_OS_NOT, 'Windows 7 / Server 2008 R2');

# Windows Embedded does not follow the same support schedule. Will still flag if paranoid
if ('Windows Embedded' >< os_name && !get_kb_item('Settings/ParanoidReport'))
  audit(AUDIT_OS_NOT, 'Windows 7 / Server 2008 R2');

var tag = "";
if ('Windows 7' >< os_name)
  tag = 'microsoft:windows_7';
else if ('Server' >< os_name && 'R2' >< os_name)
  tag = 'microsoft:windows_server_2008:r2';

if(get_kb_item("WMI/W7_2008R2_ESU")) audit(AUDIT_SUPPORTED, os_name);

# Both x86 and x64 exist in the CPE DB (xml file) from nvd.nist.gov.
var arch = get_kb_item('SMB/ARCH');
var edition = "x86";
if (!isnull(arch) && 'x64' >< arch) edition = 'x64';

var cpe_ver = ':' + edition;

register_unsupported_product(
  product_name : os_name,
  cpe_class    : CPE_CLASS_OS,
  cpe_base     : tag,
  version      : cpe_ver
);

security_report_v4(severity:SECURITY_HOLE, port:0);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation