Lucene search
K

PHPSurveyor sid SQL Injection Flaw

🗓️ 26 Mar 2006 00:00:00Reported by This script is Copyright (C) 2006 David MaciejakType 
openvas
 openvas
🔗 plugins.openvas.org👁 18 Views

The remote web server contains a PHP script with a SQL injection flaw that affects PHPSurveyor

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2005-4586
30 Dec 200511:00
cve
Cvelist
CVE-2005-4586
30 Dec 200511:00
cvelist
EUVD
EUVD-2005-4581
7 Oct 202500:30
euvd
NVD
CVE-2005-4586
30 Dec 200511:03
nvd
OpenVAS
PHPSurveyor sid SQL Injection Flaw
26 Mar 200600:00
openvas
Tenable Nessus
PHPSurveyor Multiple SQL Injections
3 Jan 200600:00
nessus
# OpenVAS Vulnerability Test
# $Id: phpSurveyor_sql_inject.nasl 5780 2017-03-30 07:37:12Z cfi $
# Description: PHPSurveyor sid SQL Injection Flaw
#
# Authors:
# David Maciejak <david dot maciejak at kyxar dot fr>
#
# Copyright:
# Copyright (C) 2006 David Maciejak
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# 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 = "The remote web server contains a PHP script that is affected by a SQL
injection flaw. 

Description:

The remote host is running PHPSurveyor, a set of PHP scripts that
interact with MySQL to develop surveys, publish surveys and collect
responses to surveys. 

The remote version of this software is prone to a SQL injection flaw. 
Using specially crafted requests, an attacker can manipulate database
queries on the remote system.";

tag_solution = "Upgrade to PHPSurveyor version 0.991 or later.";

# Ref: taqua

if(description)
{
 script_id(20376);
 script_version("$Revision: 5780 $");
 script_tag(name:"last_modification", value:"$Date: 2017-03-30 09:37:12 +0200 (Thu, 30 Mar 2017) $");
 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-4586");
 script_bugtraq_id(16077);
 script_xref(name:"OSVDB", value:"22039");
 script_name("PHPSurveyor sid SQL Injection Flaw");
 script_category(ACT_ATTACK);
 script_tag(name:"qod_type", value:"remote_active");
 script_copyright("This script is Copyright (C) 2006 David Maciejak");
 script_family("Web application abuses");
 script_dependencies("find_service.nasl", "http_version.nasl");
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_require_ports("Services/www", 80);
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 script_xref(name : "URL" , value : "http://www.phpsurveyor.org/mantis/view.php?id=286");
 script_xref(name : "URL" , value : "http://sourceforge.net/project/shownotes.php?release_id=381050&group_id=74605");
 exit(0);
}

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

port = get_http_port(default:80);
if (!can_host_php(port:port) ) exit(0);

foreach dir( make_list_unique( "/phpsurveyor", "/survey", cgi_dirs( port:port ) ) ) {

  if( dir == "/" ) dir = "";
  url = string(dir,"/admin/admin.php?sid=0'");

  if(http_vuln_check(port:port, url:url,pattern:"mysql_num_rows(): supplied argument is not a valid MySQL .+/admin/html.php")) {
    report = report_vuln_url( port:port, url:url );
    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

30 Mar 2017 00:00Current
7.5High risk
Vulners AI Score7.5
EPSS0.00816
18