Lucene search
+L

F5 FirePass Detection (HTTP)

🗓️ 17 Apr 2015 00:00:00Reported by Copyright (C) 2015 SCHUTZWERK GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 15 Views

F5 FirePass HTTP detection for potential vulnerabilities and product informatio

Code
# SPDX-FileCopyrightText: 2015 SCHUTZWERK GmbH
# 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-or-later

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.111015");
  script_version("2023-08-10T05:05:53+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:"2023-08-10 05:05:53 +0000 (Thu, 10 Aug 2023)");
  script_tag(name:"creation_date", value:"2015-04-17 08:00:00 +0100 (Fri, 17 Apr 2015)");
  script_name("F5 FirePass Detection (HTTP)");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2015 SCHUTZWERK GmbH");
  script_family("Product detection");
  script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"summary", value:"HTTP based detection of F5 FirePass.");

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

  exit(0);
}

include("cpe.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("host_details.inc");
include("version_func.inc");
include("os_func.inc");

SCRIPT_DESC = "F5 FirePass Detection (HTTP)";

port = http_get_port( default:80 );

req1 = http_get( item:string( "/tunnel\r\n" ), port:port );
res1 = http_keepalive_send_recv( port:port, data:req1, bodyonly:FALSE );

url = "/admin/";
res2 = http_get_cache( item:url, port:port );

if( ( res1 && "FirePass server could not handle the request" >< res1 ) ||
    ( res2 && "Version - FirePass" >< res2 ) ) {

  version = "unknown";
  install = "/";
  set_kb_item( name:"f5/firepass/detected", value:TRUE );
  set_kb_item( name:"f5/firepass/http/detected", value:TRUE );

  ver = eregmatch( pattern:"Version - FirePass ([0-9.]+)", string:res2 );
  if( ver[1] ) {
    version = ver[1];
    conclurl = http_report_vuln_url( port:port, url:url, url_only:TRUE );
  }

  cpe = build_cpe( value:version, exp:"([0-9.]+)", base:"cpe:/h:f5:firepass:" );
  if( ! cpe )
    cpe = "cpe:/h:f5:firepass";

  register_product( cpe:cpe, location:install, port:port, service:"www" );

  # From https://my.f5.com/manage/s/article/K2253:
  # 6.1.0 through 7.0.0 -> Slackware Linux version 7.1
  # nb: Base OS of other versions are unknown
  if( version != "unknown" && version_in_range( version:version, test_version:"6.1.0", test_version2:"7.0.0" ) )
    os_register_and_report( os:"Slackware", version:"7.1", cpe:"cpe:/o:slackware:slackware_linux", port:port, desc:SCRIPT_DESC, runs_key:"unixoide" );
  else
    os_register_and_report( os:"Linux", cpe:"cpe:/o:linux:kernel", port:port, desc:SCRIPT_DESC, runs_key:"unixoide" );

  log_message( data:build_detection_report( app:"F5 FirePass",
                                            version:version,
                                            install:install,
                                            cpe:cpe,
                                            concludedUrl:conclurl,
                                            concluded:ver[0] ),
                                            port:port );
}

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