Lucene search
K

CGI Generic Tests Load Estimation (quick tests, HTML injection)

🗓️ 26 Aug 2011 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 259 Views

CGI Generic Tests Load Estimation (quick tests, HTML injection) script estimates maximum requests for web app test

Code
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
 script_id(56244);
 script_version("2.6");
 script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
 
 script_name(english:"CGI Generic Tests Load Estimation (quick tests, HTML injection)");
 script_summary(english:"Estimate the number of requests done by the web app tests");

 script_set_attribute(attribute:"synopsis", value:
"Load estimation for web application tests.");
 script_set_attribute(attribute:"description", value:
"This script computes the maximum number of requests that would be
done by the generic web tests, depending on miscellaneous options.  It
does not perform any test by itself. 

It adjusts the mode of each script if it is unable to run in the given
time. 

The results can be used to estimate the duration of these tests, or
the complexity of additional manual tests. 

Note that the script does not try to compute this duration based on
external factors such as the network and web server loads.");

 script_set_attribute(attribute:"solution", value:"n/a");
 script_set_attribute(attribute:"risk_factor", value:"None");

 script_set_attribute(attribute:"plugin_publication_date", value:"2011/08/26");
 script_set_attribute(attribute:"plugin_type", value:"summary");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2011-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
 script_family(english:"CGI abuses");

 script_dependencie("global_settings.nasl", "web_app_test_settings.nasl", "webmirror.nasl", "torture_cgi_inject_html.nasl", "torture_cgi_injectable_param.nasl");
 script_require_keys("Settings/enable_web_app_tests");
 script_require_ports("Services/www", 80);
 exit(0);
}

include("torture_cgi.inc");
include("url_func.inc");

#### Quick tests (HTML injection)

nb_attacks = make_array(
 "CM", 2,	# torture_cgi_cookie_manip.nasl
 "XS", 11	# torture_cgi_cross_site_scripting.nasl
);

end_mult = make_array();

####
port = torture_cgi_init();

cgis = get_cgi_list(port: port, injectable_only: INJECTABLE_HTML);
if (max_index(cgis) > 0)
{
  estimate_load(port: port, cgis: cgis, injectable: INJECTABLE_HTML);
}
else
  exit(0, 'No CGI was found on port '+port+'.');

####

foreach m (modes_l)
{
  foreach k (keys(nb_attacks))
  {
    set_kb_item(name: 'www/'+port+'/load_estimation/1meth/'+k+'/'+m, value: tot[m+':'+k]);
    set_kb_item(name: 'www/'+port+'/load_estimation/2meth/'+k+'/'+m, value: totA[m+':'+k]);
  }
}

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

19 Jan 2021 00:00Current
5.4Medium risk
Vulners AI Score5.4
259