| Source | Link |
|---|---|
| www-01 | www.www-01.ibm.com/software/data/informix/ |
# SPDX-FileCopyrightText: 2010 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.100517");
script_version("2023-07-25T05:05:58+0000");
script_tag(name:"last_modification", value:"2023-07-25 05:05:58 +0000 (Tue, 25 Jul 2023)");
script_tag(name:"creation_date", value:"2010-03-06 09:57:46 +0100 (Sat, 06 Mar 2010)");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_tag(name:"cvss_base", value:"0.0");
script_name("IBM Informix Detection (Informix Protocol)");
script_category(ACT_GATHER_INFO);
script_family("Service detection");
script_copyright("Copyright (C) 2010 Greenbone AG");
script_dependencies("find_service.nasl", "find_service2.nasl");
script_require_ports("Services/unknown", 9088);
script_xref(name:"URL", value:"http://www-01.ibm.com/software/data/informix/");
script_tag(name:"summary", value:"IBM Informix RDBMS is running at this port.");
script_tag(name:"qod_type", value:"remote_banner");
exit(0);
}
include("port_service_func.inc");
include("byte_func.inc");
include("host_details.inc");
SCRIPT_DESC = "Informix Detection";
# nb: Double trailing "T" is expected because the initial user name had a length of 7 and it is
# currently if a shorter or longer username is causing problems with the response checks below.
username = "VTTESTT";
attempt = 3;
function read_data(data, pos) {
local_var pos, data, str;
global_var len;
if(strlen(data) < pos)
return FALSE;
if(!l = substr(data, pos, pos))
return FALSE;
len = ord(l[0]);
if(str = substr(data, pos + 1, pos + 1 + len - 2)) {
return str;
} else {
return FALSE;
}
}
port = unknownservice_get_port(default:9088);
soc = open_sock_tcp(port);
if(soc) {
req = raw_string(
"sqAYABPQAAsqlexec ",
username,
" -p",
username,
" 9.350 ",
"AAA#B000000 ",
"-d",
username,
" -fIEEEI ",
"DBPATH=//",
username,
" DBMONEY=$. ",
"CLIENT_LOCALE=en_US.8859-1 ",
"SINGLELEVEL=no ",
"LKNOTIFY=yes ",
"LOCKDOWN=no ",
"NODEFDAC=no ",
"CLNT_PAM_CAPABLE=1 ",
":AG0AAAA9b24AAAAAAAAAAAA9c29jdGNwAAAAAAABAAABPAAAAAAAAAAAc3FsZXh",
"lYwAAAAAAAAVzcWxpAAALAAAAAwAJbXlzZXJ2ZXIAAGsAAAAAAABSjQAAAAAABWt",
"pcmEAAAwvZGV2L3B0cy8xMgAACy9ob21lL21pbWUAAHQACAAAA.gAAABkAH8=",
0x00
);
while (!buf && attempt--) {
send(socket:soc, data:req);
buf = recv(socket:soc, length:2048);
}
close(soc);
if(strlen(buf) > 1 && strlen(buf) == getword(blob:buf, pos:0) && "IEEEI" >< buf && "lsrvinfx" >< buf) {
service_register(port:port, proto:"informix", ipproto:"tcp");
register_host_detail(name:"App", value:"cpe:/a:ibm:informix_dynamic_server", desc:SCRIPT_DESC);
info = string("\n\nHere is the gathered data:\n\n");
data = strstr(buf, string(raw_string(0x00), "k", raw_string(0x00)));
pos = int(15);
if(fqdn = read_data(data:data, pos:pos)) {
if(fqdn =~ "^[a-zA-Z0-9]")
info += string("FQDN: ", fqdn, "\n");
}
pos += len + 2;
if(host = read_data(data:data, pos:pos)) {
if(host =~ "^[a-zA-Z0-9]")
info += string("Hostname: ", host, "\n");
}
pos += len + 2;
if(install = read_data(data:data, pos:pos)) {
if(install =~ "^[/\:a-zA-Z0-9]")
info += string("PATH: ", install, "\n");
}
report = "";
if(strlen(info) > 35) {
report = info;
}
service_register(port:port, ipproto:"tcp", proto:"informix");
log_message(port:port, data:report);
}
}
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