ID FABRICOS_UNSUPPORTED.NASL Type nessus Reporter This script is Copyright (C) 2014-2020 Tenable Network Security, Inc. Modified 2014-04-17T00:00:00
Description
According to its version, the installation of Fabric OS on the remote
host is no longer supported.
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.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(73598);
script_version("1.9");
script_set_attribute(attribute:"plugin_modification_date", value:"2020/09/22");
script_xref(name:"IAVA", value:"0001-A-0607");
script_name(english:"Unsupported Brocade Fabric OS");
script_summary(english:"Checks if a version of Fabric OS is unsupported.");
script_set_attribute(attribute:"synopsis", value:
"The remote host is running an obsolete operating system.");
script_set_attribute(attribute:"description", value:
"According to its version, the installation of Fabric OS on the remote
host is no longer supported.
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.");
script_set_attribute(attribute:"see_also", value:"http://www.brocade.com/en/support/product-end-of-life.html");
script_set_attribute(attribute:"solution", value:
"Upgrade to a version of Fabric OS that is currently supported.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_set_attribute(attribute:"plugin_publication_date", value:"2014/04/17");
script_set_attribute(attribute:"plugin_type", value:"combined");
script_set_attribute(attribute:"cpe", value:"cpe:/o:brocade:fabric_os");
script_set_attribute(attribute:"unsupported_by_vendor", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Misc.");
script_copyright(english:"This script is Copyright (C) 2014-2020 Tenable Network Security, Inc.");
script_dependencies("os_fingerprint.nasl");
script_require_keys("Host/OS");
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("snmp_func.inc");
include("misc_func.inc");
ver = NULL;
os = get_kb_item_or_exit('Host/OS');
match = eregmatch(string:os, pattern:'Fabric OS ([0-9a-zA-Z._-]+)$');
if (match)
{
ver = match[1];
}
# SNMP
else if ("Brocade Switch" >< os)
{
community = get_kb_item("SNMP/community");
if (community)
{
port = get_kb_item("SNMP/port");
if (!port) port = 161;
if (!get_udp_port_state(port)) audit(AUDIT_PORT_CLOSED, port, "UDP");
soc = open_sock_udp(port);
if (!soc) audit(AUDIT_SOCK_FAIL, port, "UDP");
# Get version
txt = snmp_request(socket:soc, community:community, oid:"1.3.6.1.4.1.1588.2.1.1.1.1.6.0");
if (txt) ver = txt;
else audit(AUDIT_UNKNOWN_APP_VER, "Fabric OS");
}
}
if (isnull(ver)) audit(AUDIT_OS_NOT, "Fabric OS");
latest = '7.4.0';
eoa_date = NULL;
eoa_url = NULL;
# 7.1.x
if (
ver =~ "^7\.1(\.|$)"
)
{
eoa_date = "2015-04-15";
# http://www.brocade.com/content/brocade/en/backend-content/pdf-page.html?/content/dam/common/documents/content-types/end-of-life-notice/brocade-fos-7.1.x-eoa-notice.pdf
eoa_url = "http://www.nessus.org/u?ca91d510";
}
# 5.1.x - 5.3.x
else if (
ver =~ "^5\.[1-3](\.|$)"
)
{
eoa_date = "2009-02-04";
# http://community.brocade.com/dtscp75322/attachments/dtscp75322/fibre/1316/2/FOS+5.3.x+EOA+Notice+v2.0.pdf
eoa_url = "http://www.nessus.org/u?e6145511";
}
# 2.6.2 and earlier
else if (ver =~ "^2\.[0-6]([^0-9]|$)")
{
eoa_date = "2008-06-19";
# https://web.archive.org/web/20150505044358/http://www.brocade.com/downloads/documents/end_of_availability_notice/FOS%202%206%202%20EOL%20v1.0.pdf
eoa_url = "http://www.nessus.org/u?137106c3";
}
# 3.x / 5.0.x
else if (
ver =~ "^3\." ||
ver =~ "^5\.0(\.|$)"
)
{
eoa_date = "2008-05-01";
# https://web.archive.org/web/20081125080318/http://www.brocade.com/downloads/documents/end_of_availability_notice/FOS%203%20x%205%200%20x%20and%20SFOS%20EOL%20v0%204%20_103007_.pdf
eoa_url = "http://www.nessus.org/u?2a46cb3b";
}
# 4.2.x - 4.4.x
else if (
ver =~ "^4\.[2-4]([^0-9]|$)"
)
{
eoa_date = "2007-03-31";
# https://web.archive.org/web/20150505021442/http://www.brocade.com/downloads/documents/end_of_availability_notice/3_1_X4_4_X_7_3_XEOL052306.pdf
eoa_url = "http://www.nessus.org/u?3fc9f0cb";
}
# 4.1.x - 4.2.0x
else if (
ver =~ "^4\.1([^0-9]|$)" ||
ver =~ "^4\.2\.0([^0-9]|$)"
)
{
eoa_date = "2005-12-31";
# https://web.archive.org/web/20081203053619/http://www.brocade.com/downloads/documents/end_of_availability_notice/2_6_13_1_24_2_0EOLExtension.pdf
eoa_url = "http://www.nessus.org/u?8f7d93bb";
}
# 4.0.1x - 4.0.2x
else if (
ver =~ "^4\.0\.[12]([^0-9]|$)"
)
{
eoa_date = "2004-08-31";
# https://web.archive.org/web/20150505030101/http://www.brocade.com/downloads/documents/end_of_availability_notice/2_6_03_0_24_0_2EOLrev3.pdf
eoa_url = "http://www.nessus.org/u?0a22d9c2";
}
# 4.0.0x
else if (ver =~ "^4\.0\.0([^0-9]|$)")
{
eoa_date = "2004-02-29";
# https://web.archive.org/web/20150505045910/http://www.brocade.com/downloads/documents/end_of_availability_notice/3_0_04_0_0EOL082103.pdf
eoa_url = "http://www.nessus.org/u?abb3b15d";
}
if (isnull(eoa_date)) exit(0, 'Fabric OS ' + ver + ' is still supported.');
register_unsupported_product(
product_name:'Brocade Fabric OS',
cpe_class:CPE_CLASS_OS,
version:ver,
cpe_base:"brocade:fabric_os"
);
if (report_verbosity > 0)
{
report =
'\n Installed Fabric OS version : ' + ver +
'\n EOA date : ' + eoa_date +
'\n EOA URL : ' + eoa_url +
'\n Latest Fabric OS version : ' + latest + '\n';
security_hole(port:0, extra:report);
}
else security_hole(0);
{"id": "FABRICOS_UNSUPPORTED.NASL", "bulletinFamily": "scanner", "title": "Unsupported Brocade Fabric OS", "description": "According to its version, the installation of Fabric OS on the remote\nhost is no longer supported.\n\nLack of support implies that no new security patches for the product\nwill be released by the vendor. As a result, it is likely to contain\nsecurity vulnerabilities.", "published": "2014-04-17T00:00:00", "modified": "2014-04-17T00:00:00", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}, "href": "https://www.tenable.com/plugins/nessus/73598", "reporter": "This script is Copyright (C) 2014-2020 Tenable Network Security, Inc.", "references": ["http://www.brocade.com/en/support/product-end-of-life.html"], "cvelist": [], "type": "nessus", "lastseen": "2020-09-23T13:47:44", "edition": 18, "viewCount": 109, "enchantments": {"dependencies": {"references": [], "modified": "2020-09-23T13:47:44", "rev": 2}, "score": {"value": -0.0, "vector": "NONE", "modified": "2020-09-23T13:47:44", "rev": 2}, "vulnersScore": -0.0}, "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(73598);\n script_version(\"1.9\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2020/09/22\");\n\n script_xref(name:\"IAVA\", value:\"0001-A-0607\");\n\n script_name(english:\"Unsupported Brocade Fabric OS\");\n script_summary(english:\"Checks if a version of Fabric OS is unsupported.\");\n\n script_set_attribute(attribute:\"synopsis\", value:\n\"The remote host is running an obsolete operating system.\");\n script_set_attribute(attribute:\"description\", value:\n\"According to its version, the installation of Fabric OS on the remote\nhost is no longer supported.\n\nLack of support implies that no new security patches for the product\nwill be released by the vendor. As a result, it is likely to contain\nsecurity vulnerabilities.\");\n script_set_attribute(attribute:\"see_also\", value:\"http://www.brocade.com/en/support/product-end-of-life.html\");\n script_set_attribute(attribute:\"solution\", value:\n\"Upgrade to a version of Fabric OS that is currently supported.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2014/04/17\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"combined\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:brocade:fabric_os\");\n script_set_attribute(attribute:\"unsupported_by_vendor\", value:\"true\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_family(english:\"Misc.\");\n\n script_copyright(english:\"This script is Copyright (C) 2014-2020 Tenable Network Security, Inc.\");\n\n script_dependencies(\"os_fingerprint.nasl\");\n script_require_keys(\"Host/OS\");\n\n exit(0);\n}\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"snmp_func.inc\");\ninclude(\"misc_func.inc\");\n\nver = NULL;\n\nos = get_kb_item_or_exit('Host/OS');\n\nmatch = eregmatch(string:os, pattern:'Fabric OS ([0-9a-zA-Z._-]+)$');\nif (match)\n{\n ver = match[1];\n}\n\n# SNMP\nelse if (\"Brocade Switch\" >< os)\n{\n community = get_kb_item(\"SNMP/community\");\n if (community)\n {\n port = get_kb_item(\"SNMP/port\");\n if (!port) port = 161;\n if (!get_udp_port_state(port)) audit(AUDIT_PORT_CLOSED, port, \"UDP\");\n\n soc = open_sock_udp(port);\n if (!soc) audit(AUDIT_SOCK_FAIL, port, \"UDP\");\n\n # Get version\n txt = snmp_request(socket:soc, community:community, oid:\"1.3.6.1.4.1.1588.2.1.1.1.1.6.0\");\n if (txt) ver = txt;\n else audit(AUDIT_UNKNOWN_APP_VER, \"Fabric OS\");\n }\n}\n\nif (isnull(ver)) audit(AUDIT_OS_NOT, \"Fabric OS\");\n\nlatest = '7.4.0';\neoa_date = NULL;\neoa_url = NULL;\n\n# 7.1.x\nif (\n ver =~ \"^7\\.1(\\.|$)\"\n)\n{\n eoa_date = \"2015-04-15\";\n # http://www.brocade.com/content/brocade/en/backend-content/pdf-page.html?/content/dam/common/documents/content-types/end-of-life-notice/brocade-fos-7.1.x-eoa-notice.pdf\n eoa_url = \"http://www.nessus.org/u?ca91d510\";\n}\n\n# 5.1.x - 5.3.x\nelse if (\n ver =~ \"^5\\.[1-3](\\.|$)\"\n)\n{\n eoa_date = \"2009-02-04\";\n # http://community.brocade.com/dtscp75322/attachments/dtscp75322/fibre/1316/2/FOS+5.3.x+EOA+Notice+v2.0.pdf\n eoa_url = \"http://www.nessus.org/u?e6145511\";\n}\n\n# 2.6.2 and earlier\nelse if (ver =~ \"^2\\.[0-6]([^0-9]|$)\")\n{\n eoa_date = \"2008-06-19\";\n # https://web.archive.org/web/20150505044358/http://www.brocade.com/downloads/documents/end_of_availability_notice/FOS%202%206%202%20EOL%20v1.0.pdf\n eoa_url = \"http://www.nessus.org/u?137106c3\";\n}\n\n# 3.x / 5.0.x\nelse if (\n ver =~ \"^3\\.\" ||\n ver =~ \"^5\\.0(\\.|$)\"\n)\n{\n eoa_date = \"2008-05-01\";\n # https://web.archive.org/web/20081125080318/http://www.brocade.com/downloads/documents/end_of_availability_notice/FOS%203%20x%205%200%20x%20and%20SFOS%20EOL%20v0%204%20_103007_.pdf\n eoa_url = \"http://www.nessus.org/u?2a46cb3b\";\n}\n\n# 4.2.x - 4.4.x\nelse if (\n ver =~ \"^4\\.[2-4]([^0-9]|$)\"\n)\n{\n eoa_date = \"2007-03-31\";\n # https://web.archive.org/web/20150505021442/http://www.brocade.com/downloads/documents/end_of_availability_notice/3_1_X4_4_X_7_3_XEOL052306.pdf\n eoa_url = \"http://www.nessus.org/u?3fc9f0cb\";\n}\n\n# 4.1.x - 4.2.0x\nelse if (\n ver =~ \"^4\\.1([^0-9]|$)\" ||\n ver =~ \"^4\\.2\\.0([^0-9]|$)\"\n)\n{\n eoa_date = \"2005-12-31\";\n # https://web.archive.org/web/20081203053619/http://www.brocade.com/downloads/documents/end_of_availability_notice/2_6_13_1_24_2_0EOLExtension.pdf\n eoa_url = \"http://www.nessus.org/u?8f7d93bb\";\n}\n\n# 4.0.1x - 4.0.2x\nelse if (\n ver =~ \"^4\\.0\\.[12]([^0-9]|$)\"\n)\n{\n eoa_date = \"2004-08-31\";\n # https://web.archive.org/web/20150505030101/http://www.brocade.com/downloads/documents/end_of_availability_notice/2_6_03_0_24_0_2EOLrev3.pdf\n eoa_url = \"http://www.nessus.org/u?0a22d9c2\";\n}\n\n# 4.0.0x\nelse if (ver =~ \"^4\\.0\\.0([^0-9]|$)\")\n{\n eoa_date = \"2004-02-29\";\n # https://web.archive.org/web/20150505045910/http://www.brocade.com/downloads/documents/end_of_availability_notice/3_0_04_0_0EOL082103.pdf\n eoa_url = \"http://www.nessus.org/u?abb3b15d\";\n}\n\nif (isnull(eoa_date)) exit(0, 'Fabric OS ' + ver + ' is still supported.');\n\nregister_unsupported_product(\n product_name:'Brocade Fabric OS',\n cpe_class:CPE_CLASS_OS,\n version:ver,\n cpe_base:\"brocade:fabric_os\"\n);\n\nif (report_verbosity > 0)\n{\n report =\n '\\n Installed Fabric OS version : ' + ver +\n '\\n EOA date : ' + eoa_date +\n '\\n EOA URL : ' + eoa_url +\n '\\n Latest Fabric OS version : ' + latest + '\\n';\n security_hole(port:0, extra:report);\n}\nelse security_hole(0);\n", "naslFamily": "Misc.", "pluginID": "73598", "cpe": ["cpe:/o:brocade:fabric_os"], "scheme": null}