Lucene search
K

Symantec (Blue Coat) ProxySG SGOS Version

🗓️ 22 Jul 2013 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 745 Views

Obtains the SGOS version of the remote Symantec (Blue Coat) ProxySG Device. The script connects to the device via SSH to read the ProxySG SGOS version number

Code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

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

  script_xref(name:"IAVT", value:"0001-T-0726");

 script_name(english:"Symantec (Blue Coat) ProxySG SGOS Version");
 script_summary(english:"Obtains the SGOS version of the remote Symantec (Blue Coat) ProxySG Device");

 script_set_attribute(attribute:"synopsis", value:
"It is possible to obtain the SGOS version number of the remote ProxySG
Symantec (Blue Coat) device.");
 script_set_attribute(attribute:"description", value:
"The remote host is running SGOS, an operating system for Symantec
(Blue Coat) ProxySG devices.

It is possible to read the ProxySG SGOS version number by connecting to
the device via SSH.");
 script_set_attribute(attribute:"solution", value:"n/a");
 script_set_attribute(attribute:"risk_factor", value:"None");

 script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/22");

 script_set_attribute(attribute:"plugin_type", value:"local");
 script_set_attribute(attribute:"cpe", value:"cpe:/o:bluecoat:sgos");
 script_set_attribute(attribute:"asset_inventory", value:"True");
 script_set_attribute(attribute:"hardware_inventory", value:"True");
 script_set_attribute(attribute:"os_identification", value:"True");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);

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

 script_dependencies("ssh_get_info.nasl");
 script_require_ports("Host/BlueCoat/ProxySG/show_version");
 exit(0);
}

include("audit.inc");
include("misc_func.inc");

showver = get_kb_item_or_exit("Host/BlueCoat/ProxySG/show_version");

patterns = make_array(
  "Version:",       "^Version: (.*)$",
  "Release id:",    "^Release id: (.*)$",
  "UI Version:",    "^UI Version: (([0-9]+\.[0-9]+[^ ]+) Build: ([0-9]+))",
  "Serial number:", "^Serial number: (.*)$"
);

lines = split(showver);
foreach line (lines)
{
  foreach kp (keys(patterns))
  {
    if (kp >!< line) continue;
    matches = eregmatch(pattern:patterns[kp], string:line);
    if (isnull(matches)) continue;

    if (kp == "Version:")
      set_kb_item(name:"Host/BlueCoat/ProxySG/vendor_version_string", value: chomp(matches[1]));
    else if (kp == "Release id:")
      set_kb_item(name:"Host/BlueCoat/ProxySG/release_id", value: chomp(matches[1]));
    else if (kp == "Serial number:")
      set_kb_item(name:"Host/BlueCoat/ProxySG/serial_number", value: chomp(matches[1]));
    else if (kp == "UI Version:")
    {
      ui_ver = str_replace(string:chomp(matches[1]), find:":", replace:"");
      ver = chomp(matches[2]);
      build = chomp(matches[3]);

      # Create version-check friendly version
      # e.g.: a.b.c.build-number
      # Pad with zeroes if needed
      granularity = max_index(split(ver, sep:".", keep:FALSE));
      if (granularity < 4)
        for (i=granularity; i<4; i++)
          ver += ".0";

      ver = ver + "." + build;

      set_kb_item(name:"Host/BlueCoat/ProxySG/Version", value: ver);
      set_kb_item(name:"Host/BlueCoat/ProxySG/UI_Version", value: ui_ver);
      set_kb_item(name:"Host/BlueCoat/ProxySG/Confidence", value:100);
    }
  }
}

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

22 Sep 2020 00:00Current
5.6Medium risk
Vulners AI Score5.6
745