DUPortal/DUPortal Pro Multiple Scripts SQL Injection (1)

2005-04-22T00:00:00
ID DUPORTAL_SQL_INJECTION.NASL
Type nessus
Reporter This script is Copyright (C) 2005-2018 Tenable Network Security, Inc.
Modified 2020-04-02T00:00:00

Description

The remote host is running DUPortal, a content management system written in ASP.

The remote version of this software is vulnerable to several SQL injection vulnerabilities in files

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


include("compat.inc");

if (description) {
  script_id(18120);
  script_version("1.21");

  script_cve_id("CVE-2005-1224", "CVE-2005-1236");
  script_bugtraq_id(13285, 13288);

  script_name(english:"DUPortal/DUPortal Pro Multiple Scripts SQL Injection (1)");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server is running an ASP application that is affected
by multiple SQL injection flaws." );
 script_set_attribute(attribute:"description", value:
"The remote host is running DUPortal, a content management system
written in ASP. 

The remote version of this software is vulnerable to several SQL
injection vulnerabilities in files 'details.asp', 'search.asp',
'default.asp' , 'cat.asp' and more. 

With a specially crafted URL, an attacker can exploit this flaw to
modify database queries, potentially even uncovering user passwords
for the application." );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2006/Apr/552" );
 script_set_attribute(attribute:"solution", value:
"Unknown at this time." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:H/RL:U/RC:ND");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"true");

 script_set_attribute(attribute:"plugin_publication_date", value: "2005/04/22");
 script_set_attribute(attribute:"vuln_publication_date", value: "2005/04/20");
 script_cvs_date("Date: 2018/11/15 20:50:16");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 
  summary["english"] = "Checks for SQL injection vulnerability in DUPortal";
  script_summary(english:summary["english"]);
 
  script_category(ACT_ATTACK);
  script_copyright(english:"This script is Copyright (C) 2005-2018 Tenable Network Security, Inc.");

  family["english"] = "CGI abuses";
  script_family(english:family["english"]);

  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_dependencies("http_version.nasl");

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");


port = get_http_port(default:80, embedded: 0);

if(get_port_state(port))
{
   foreach dir (cgi_dirs())
   {
  	r1 = http_send_recv3(port:port, method: "GET", item:dir + "/detail.asp?nChannel='1");
	if (isnull(r1)) exit(0);
  	r2 = http_send_recv3(port:port, method: "GET", item:dir + "/home/search.asp?nChannel='1");
	if (isnull(r2)) exit(0);
  	if ( ( "Microsoft OLE DB Provider for ODBC Drivers error '80040e14'" >< r1[2] ) ||
             ( "Microsoft OLE DB Provider for ODBC Drivers error '80040e14'" >< r2[2] ) )
  	{
    		security_hole(port);
		set_kb_item(name: 'www/'+port+'/SQLInjection', value: TRUE);
	 	exit(0);
  	}
   }
}