Sybase SQL Blank Password
🗓️ 24 Oct 2008 00:00:00Reported by Copyright (C) 2008 Tenable Network SecurityType
openvas🔗 plugins.openvas.org👁 21 Views
# SPDX-FileCopyrightText: 2008 Tenable Network Security
# 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
CPE = "cpe:/a:sybase:adaptive_server_enterprise";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.80018");
script_version("2024-07-23T05:05:30+0000");
script_tag(name:"last_modification", value:"2024-07-23 05:05:30 +0000 (Tue, 23 Jul 2024)");
script_tag(name:"creation_date", value:"2008-10-24 19:51:47 +0200 (Fri, 24 Oct 2008)");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_name("Sybase SQL Blank Password");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2008 Tenable Network Security");
script_family("Databases");
script_require_ports("Services/sybase", 5000);
script_dependencies("gb_sybase_tcp_listen_detect.nasl");
script_mandatory_keys("sybase/tcp_listener/detected");
script_tag(name:"solution", value:"Either disable this account or set a password for it.");
script_tag(name:"summary", value:"The remote Sybase SQL server has the default 'sa' account
enabled without any password.");
script_tag(name:"impact", value:"An attacker may use this flaw to execute commands against the
remote host as well as read database content.");
script_tag(name:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"Mitigation");
exit(0);
}
include("host_details.inc");
include("sybase_func.inc");
if(!port = get_app_port(cpe:CPE, service:"sybase_tcp_listener"))
exit(0);
if(!get_app_location(cpe:CPE, port:port, nofork:TRUE))
exit(0);
soc = open_sock_tcp(port);
if(!soc)
exit(0);
# this creates a variable called sql_packet
sql_packet = make_sql_login_pkt(username:"sa", password:"");
send(socket:soc, data:sql_packet);
send(socket:soc, data:pkt_lang);
r = recv(socket:soc, length:255);
close(soc);
if(strlen(r) > 10 && ord(r[8]) == 0xE3) {
version = substr(r, strlen(r) - 13, strlen(r) - 10);
strver = NULL;
for(i = 0; i < 4; i++) {
if(strver)
strver += '.';
strver += ord(version[i]);
}
set_kb_item(name:"sybase/version", value:strver);
security_message(port:port);
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
23 Jul 2024 00:00Current
8.1High risk
Vulners AI Score8.1