Report VT debug logs
🗓️ 25 Mar 2016 00:00:00Reported by Copyright (C) 2016 SCHUTZWERK GmbHType
openvas🔗 plugins.openvas.org👁 21 Views
# SPDX-FileCopyrightText: 2016 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.111091");
script_version("2023-06-22T10:34:15+0000");
script_tag(name:"last_modification", value:"2023-06-22 10:34:15 +0000 (Thu, 22 Jun 2023)");
script_tag(name:"creation_date", value:"2016-03-25 15:12:12 +0100 (Fri, 25 Mar 2016)");
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_name("Report VT debug logs");
# nb: Needs to run at the end of the scan because of the required info only available in this phase...
script_category(ACT_END);
script_family("General");
script_copyright("Copyright (C) 2016 SCHUTZWERK GmbH");
script_add_preference(name:"Report VT debug logs", type:"checkbox", value:"no", id:1);
script_tag(name:"summary", value:"The script reports possible issues within VTs.
For best results set 'optimize_test', 'unscanned_closed' and 'unscanned_closed_udp'
within the 'Scanner Preferences' to 'no'.");
script_tag(name:"qod_type", value:"remote_banner");
exit(0);
}
enable_log = script_get_preference( "Report VT debug logs", id:1 );
if( enable_log && "no" >< enable_log )
exit( 0 );
report = 'The following issues have been identified: \n\n';
items = get_kb_list( "vt_debug_empty/*" );
if( ! isnull( items ) ) {
# Sort to not report changes on delta reports if just the order is different
items = sort( items );
foreach item( items ) {
x = split( item, sep:"#-#", keep:FALSE );
x_oid = x[0];
x_variable = x[1];
x_function = x[2];
if( "http_keepalive_recv_body" >< x_function || "http_keepalive_check_connection" >< x_function || "http_gunzip" >< x_function )
continue; # TODO. Hide until those are debugged
found = TRUE;
if( "port" >< x_variable && "get_app_location" >< x_function ) {
report += '- ' + x_oid + ': variable "' + x_variable + '" passed to function "' + x_function + '" is empty (Might be a false positive)\n';
} else {
report += '- ' + x_oid + ': variable "' + x_variable + '" passed to function "' + x_function + '" is empty\n';
}
}
}
items = get_kb_list( "vt_debug_cpe_syntax/*" );
if( ! isnull( items ) ) {
# Sort to not report changes on delta reports if just the order is different
items = sort( items );
foreach item( items ) {
x = split( item, sep:"#-#", keep:FALSE );
x_oid = x[0];
x_function = x[1];
x_content = x[2];
x_variable = x[3];
found = TRUE;
report += '- ' + x_oid + ': ' + x_function + ': Malformed CPE "' + x_content + '" given to "' + x_variable + '" parameter\n';
}
}
items = get_kb_list( "vt_debug_no_array/*" );
if( ! isnull( items ) ) {
# Sort to not report changes on delta reports if just the order is different
items = sort( items );
foreach item( items ) {
x = split( item, sep:"#-#", keep:FALSE );
x_oid = x[0];
x_variable = x[1];
x_function = x[2];
found = TRUE;
report += '- ' + x_oid + ': variable "' + x_variable + '" passed to function "' + x_function + '" is not an array\n';
}
}
items = get_kb_list( "vt_debug_cgi_scanning_disabled/*" );
if( ! isnull( items ) ) {
# Sort to not report changes on delta reports if just the order is different
items = sort( items );
foreach item( items ) {
x = split( item, sep:"#-#", keep:FALSE );
x_oid = x[0];
x_variable = x[1];
found = TRUE;
report += '- ' + x_oid + ': VT is calling "' + x_variable + '" while cgi scanning is disabled\n';
}
}
items = get_kb_list( "vt_debug_misc/*" );
if( ! isnull( items ) ) {
# Sort to not report changes on delta reports if just the order is different
items = sort( items );
foreach item( items ) {
x = split( item, sep:"#-#", keep:FALSE );
x_oid = x[0];
x_text = x[1];
found = TRUE;
report += '- ' + x_oid + ': ' + x_text + '\n';
}
}
optimize_test_enabled = get_preference( "optimize_test" );
if( optimize_test_enabled && "no" >< optimize_test_enabled )
report += '\nNote: Scanner preference "optimize_test" is set to "no". Because of this VTs calling http_cgi_dirs() or http_get_port() while cgi scanning is disabled are not reported.';
if( found )
log_message( port:0, data:chomp( 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
22 Jun 2023 00:00Current
7.3High risk
Vulners AI Score7.3