# SPDX-FileCopyrightText: 2019 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.113619");
script_version("2026-01-27T05:49:07+0000");
script_tag(name:"last_modification", value:"2026-01-27 05:49:07 +0000 (Tue, 27 Jan 2026)");
script_tag(name:"creation_date", value:"2019-12-17 16:17:18 +0200 (Tue, 17 Dec 2019)");
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:"qod_type", value:"remote_banner");
script_name("Oracle Application / HTTP Server Detection (HTTP)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2019 Greenbone AG");
script_family("Product detection");
script_dependencies("gb_get_http_banner.nasl");
script_mandatory_keys("Oracle-Application-or-HTTP-Server/banner");
script_tag(name:"summary", value:"HTTP based detection of the Oracle Application Server (AS) or
Oracle HTTP Server.");
script_xref(name:"URL", value:"https://www.oracle.com/middleware/technologies/internet-application-server.html");
script_xref(name:"URL", value:"https://docs.oracle.com/cd/E28280_01/web.1111/e10144/intro_ohs.htm#HSADM102");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("port_service_func.inc");
include("cpe.inc");
port = http_get_port( default: 80 );
buf = http_get_remote_headers( port: port );
if( buf =~ "Server\s*:.*Oracle[ -]Application[ -]Server" ) {
set_kb_item( name: "oracle/application_server/detected", value: TRUE );
set_kb_item( name: "oracle/application_server/http/detected", value: TRUE );
version = "unknown";
ver = eregmatch( string: buf, pattern: "[0-9]{1,2}[a-zA-Z]?(/| \()([0-9.]+)" );
if( ! isnull( ver[2] ) )
version = ver[2];
register_and_report_cpe( app: "Oracle Application Server",
ver: version,
concluded: ver[0],
base: "cpe:/a:oracle:application_server:",
expr: "([0-9.]+)",
insloc: port + "/tcp",
regPort: port,
regService: "www" );
}
if( buf =~ "Server\s*:.*Oracle[ -]HTTP[ -]Server" ) {
set_kb_item( name: "oracle/http_server/detected", value: TRUE );
set_kb_item( name: "oracle/http_server/http/detected", value: TRUE );
version = "unknown";
ver = eregmatch( string: buf, pattern: "[0-9]{1,2}g(/| \()([0-9.]+)" );
if( ! isnull( ver[2] ) )
version = ver[2];
register_and_report_cpe( app: "Oracle HTTP Server",
ver: version,
concluded: ver[0],
base: "cpe:/a:oracle:http_server:",
expr: "([0-9.]+)",
insloc: port + "/tcp",
regPort: port,
regService: "www" );
}
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