Vulnerabilities > CVE-2002-2032 - Unspecified vulnerability in Francisco Burzi PHP-Nuke

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
francisco-burzi
nessus
exploit available

Summary

sql_layer.php in PHP-Nuke 5.4 and earlier does not restrict access to debugging features, which allows remote attackers to gain SQL query information by setting the sql_debug parameter to (1) index.php and (2) modules.php.

Exploit-Db

descriptionPHPNuke 4.x/5.x SQL_Debug Information Disclosure Vulnerability. CVE-2002-2032. Webapps exploit for php platform
idEDB-ID:21233
last seen2016-02-02
modified2002-01-18
published2002-01-18
reporterzataz.com
sourcehttps://www.exploit-db.com/download/21233/
titlePHPNuke 4.x/5.x SQL_Debug Information Disclosure Vulnerability

Nessus

NASL familyCGI abuses
NASL idPHP_NUKE_SQL_DEBUG.NASL
descriptionIn PHP-Nuke, the sql_layer.php script contains a debugging feature that may be used by attackers to disclose sensitive information about all SQL queries. Access to the debugging feature is not restricted to administrators.
last seen2020-06-01
modified2020-06-02
plugin id10856
published2002-02-07
reporterThis script is Copyright (C) 2002-2018 Alert4Web.com
sourcehttps://www.tenable.com/plugins/nessus/10856
titlePHP-Nuke sql_debug Information Disclosure
code
#
# This script was written by Georges Dagousset <[email protected]>
#
# Script audit and contributions from Carmichael Security <http://www.carmichaelsecurity.com>
#      Erik Anderson <[email protected]>
#      Added BugtraqID
#
# See the Nessus Scripts License for details
#
# Changes by Tenable:
# - Changed family (1/21/2009)


include("compat.inc");

if (description)
{
 script_id(10856);
 script_version("1.19");
 script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");

 script_cve_id("CVE-2002-2032");
 script_bugtraq_id(3906);

 script_name(english:"PHP-Nuke sql_debug Information Disclosure");
 script_summary(english:"Make a request like http://www.example.com/?sql_debug=1");

 script_set_attribute(attribute:"synopsis", value:
"The remote host is vulnerable to information disclosure.");
 script_set_attribute(attribute:"description", value:
"In PHP-Nuke, the sql_layer.php script contains a debugging feature that
may be used by attackers to disclose sensitive information about all SQL 
queries.

Access to the debugging feature is not restricted to administrators.");
 script_set_attribute(attribute:"solution", value:
"Add '$sql_debug = 0;' in config.php.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N");
 script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"false");

 script_set_attribute(attribute:"plugin_publication_date", value:"2002/02/07");
 script_set_attribute(attribute:"vuln_publication_date", value:"2002/01/18");

 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_set_attribute(attribute:"cpe", value:"cpe:/a:phpnuke:php-nuke");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_family(english:"CGI abuses");
 script_copyright(english:"This script is Copyright (C) 2002-2020 Alert4Web.com");
 script_dependencie("php_nuke_installed.nasl");
 script_require_ports("Services/www", 80);
 exit(0);
}

#
# The script code starts here
#

include("http_func.inc");
include("http_keepalive.inc");

port = get_http_port(default:80, embedded:TRUE);
installed = get_kb_item("www/" + port + "/php-nuke");
if ( ! installed ) exit(0);
array = eregmatch(pattern:"(.*) under (.*)", string:installed);
if ( ! array ) exit(0);
dir = array[2];


req = http_get(item:dir + "/?sql_debug=1", port:port);
res = http_keepalive_send_recv(port:port, data:req);
if ( res == NULL ) exit(0);
if("SQL query: " >< res){ security_warning(port:port); exit(0); }