Lucene search
+L

Cisco Content Security Management (CSM) Appliance Detection (HTTP)

🗓️ 03 Sep 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 14 Views

Cisco Content Security Management Appliance Detection (HTTP) version 12.0.0-452, Model: Cisco IronPor

Code
# SPDX-FileCopyrightText: 2013 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.803753");
  script_version("2025-12-19T05:45:49+0000");
  script_tag(name:"cvss_base", value:"0.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
  script_tag(name:"last_modification", value:"2025-12-19 05:45:49 +0000 (Fri, 19 Dec 2025)");
  script_tag(name:"creation_date", value:"2013-09-03 18:58:59 +0530 (Tue, 03 Sep 2013)");
  script_name("Cisco Content Security Management (CSM) Appliance Detection (HTTP)");
  script_category(ACT_GATHER_INFO);
  script_family("Product detection");
  script_copyright("Copyright (C) 2013 Greenbone AG");
  script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 443);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"summary", value:"HTTP based detection of the Cisco Content Security Management
  (CSM) Appliance.");

  script_tag(name:"qod_type", value:"remote_banner");

  exit(0);
}

include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("misc_func.inc");

port = http_get_port(default: 443);

url = "/login";
headers = make_array("Cookie", "sid=" + rand());
# nb: Don't use http_get_cache as we want to extract a valid cookie later
req = http_get_req(port: port, url: url, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);

if(("<title>Cisco IronPort" >!< res && "SecurityManagementApp" >!< res) &&
    res !~ "<title>\s*Cisco\s*Content Security Management( Virtual)? Appliance") {
  url = "/euq-login";
  # nb: Don't use http_get_cache as we want to extract a valid cookie later
  req = http_get(port: port, item: url);
  res = http_keepalive_send_recv(port: port, data: req);
  if(!res || res !~ "Security Management( Virtual)? Appliance" || "NG_SMA" >!< res)
    exit(0);
}

if(res =~ "Set-Cookie") {
  cookie = eregmatch(pattern: '[Ss]et-[Cc]ookie\\s*: ([^\r\n]+)', string: res);
  if(!isnull(cookie[1])) {
    set_kb_item(name: "cisco_csm/http/cookie", value: TRUE);
    set_kb_item(name: "cisco_csm/http/" + port + "/cookie", value: cookie[1]);
  }
}

set_kb_item(name: "cisco_csm/detected", value: TRUE);
set_kb_item(name: "cisco_csm/http/detected", value: TRUE);
set_kb_item(name: "cisco_csm/http/port", value: port);

# <p class="text_login_version">Version: 12.0.0-452</p>
vers = eregmatch(pattern: "Version: (([0-9.]+)-?[0-9]+)", string: res);
if(isnull(vers[1])) {
  body = http_extract_body_from_response(data: res);
  if(body)
    vers = eregmatch(string: body, pattern: "v(([0-9.]{3,})-?[0-9]+)");
}

version = "unknown";
model   = "unknown";

if(!isnull(vers[1])) {
  version = vers[1];
  concluded = "    " + vers[0];
}

mod = eregmatch(pattern: 'ext_login_model">Cisco ([^<]+)<', string: res);
if(!isnull(mod[1])) {
  model = mod[1];
  if(concluded)
    concluded += '\n';
  concluded += "    " + mod[0];
}

set_kb_item(name: "cisco_csm/http/" + port + "/model", value: model);
set_kb_item(name: "cisco_csm/http/" + port + "/version", value: version);
if(concluded)
  set_kb_item(name: "cisco_csm/http/" + port + "/concluded", value: concluded);

exit( 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