CVSTrac Text Output Formatter SQL Injection DoS

2007-01-30T00:00:00
ID CVSTRAC_OUTPUT_FORMATTER_DOS.NASL
Type nessus
Reporter This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.
Modified 2020-04-02T00:00:00

Description

According to its version number, the version of CVSTrac installed on the remote host contains a flaw related to its Wiki-style text output formatter that may allow an attacker to cause a partial denial of service, depending on the pages requested, via limited SQL injection.

                                        
                                            #
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
 script_id(24263);
 script_version("1.14");
 script_cvs_date("Date: 2018/11/15 20:50:16");

 script_cve_id("CVE-2007-0347");
 script_bugtraq_id(22296);

 script_name(english:"CVSTrac Text Output Formatter SQL Injection DoS");
 script_summary(english:"Checks CVSTrac version");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a CGI script or is itself subject to a
denial of service attack.");
 script_set_attribute(attribute:"description", value:
"According to its version number, the version of CVSTrac installed on
the remote host contains a flaw related to its Wiki-style text output
formatter that may allow an attacker to cause a partial denial of
service, depending on the pages requested, via limited SQL injection.");
 script_set_attribute(attribute:"see_also", value:"http://www.cvstrac.org/cvstrac/tktview?tn=683");
 script_set_attribute(attribute:"see_also", value:"http://www.cvstrac.org/cvstrac/chngview?cn=850");
 script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/458455/30/0/threaded");
 script_set_attribute(attribute:"solution", value:"Upgrade to CVSTrac 2.0.1 or later.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:N/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");

 script_set_attribute(attribute:"vuln_publication_date", value:"2007/01/29");
 script_set_attribute(attribute:"plugin_publication_date", value:"2007/01/30");

 script_set_attribute(attribute:"potential_vulnerability", value:"true");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.");
 script_family(english:"CGI abuses");

 script_dependencie("cvstrac_detect.nasl");
 script_require_keys("Settings/ParanoidReport");
 script_require_ports("Services/www", 80);

 exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("http_func.inc");

if (report_paranoia < 2) audit(AUDIT_PARANOID);

port = get_http_port(default:80);
kb = get_kb_item("www/" + port + "/cvstrac" );
if ( ! kb ) exit(0);
stuff = eregmatch(pattern:"(.*) under (.*)", string:kb );
version = stuff[1];
if(ereg(pattern:"^([01]\.|2\.0\.0[^0-9.]?)", string:version))
	security_warning(port);