Sybase ASA Ping
🗓️ 24 Oct 2008 00:00:00Reported by Copyright (C) 2008 David LodgeType
openvas🔗 plugins.openvas.org👁 37 Views
| Source | Link |
|---|---|
| sybase | www.sybase.com/products/databasemanagement/sqlanywhere |
# SPDX-FileCopyrightText: 2008 David Lodge
# 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.80089");
script_version("2023-08-01T13:29:10+0000");
script_tag(name:"last_modification", value:"2023-08-01 13:29:10 +0000 (Tue, 01 Aug 2023)");
script_tag(name:"creation_date", value:"2008-10-24 23:33:44 +0200 (Fri, 24 Oct 2008)");
script_tag(name:"cvss_base", value:"5.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_name("Sybase ASA Ping");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2008 David Lodge");
script_family("Databases");
script_require_udp_ports(2638);
script_xref(name:"URL", value:"http://www.sybase.com/products/databasemanagement/sqlanywhere");
script_tag(name:"solution", value:"Switch off broadcast listening via the '-sb' switch when starting
Sybase.");
script_tag(name:"summary", value:"The remote Sybase SQL Anywhere / Adaptive Server Anywhere database is
configured to listen for client connection broadcasts, which allows an attacker to see the name and port
that the Sybase SQL Anywhere / Adaptive Server Anywhere server is running on.");
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"Mitigation");
exit(0);
}
port = 2638;
if( ! get_udp_port_state( port ) ) exit( 0 );
req = raw_string(
0x1b, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x12,
"CONNECTIONLESS_TDS",
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00,
0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x03, 0x01, 0x01,
0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
);
soc = open_sock_udp( port );
if( soc ) {
send( socket:soc, data:req );
r = recv( socket:soc, length:4096 );
close( soc );
if( ! r ) exit( 0 );
name="";
length = ord( r[0x27] );
for( i = 0x28; i < 0x27 + length ; i++ ) {
name += r[i];
}
offset = 0x27 + length + 3;
serverport = ord( r[offset] ) * 256 + ord( r[offset+1] );
report = "Database name: " + name + '\n' + "Database port: " + serverport;
security_message( port:port, protocol:"udp", data:report );
exit( 0 );
}
exit( 99 );
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
01 Aug 2023 00:00Current
7.9High risk
Vulners AI Score7.9