Lucene search
K

Etomite CMS id Paramater SQL Injection

🗓️ 24 Oct 2008 00:00:00Reported by This script is Copyright (C) 2006 Justin SeitzType 
openvas
 openvas
🔗 plugins.openvas.org👁 20 Views

The remote web server running Etomite CMS is vulnerable to SQL injection through the 'id' parameter in 'index.php' script

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2006-6048
22 Nov 200600:00
cve
Cvelist
CVE-2006-6048
22 Nov 200600:00
cvelist
Tenable Nessus
Etomite CMS index.php id Parameter SQL Injection
23 Nov 200600:00
nessus
EUVD
EUVD-2006-6031
7 Oct 202500:30
euvd
NVD
CVE-2006-6048
22 Nov 200600:07
nvd
OpenVAS
Etomite CMS id Parameter SQL Injection
24 Oct 200800:00
openvas
# OpenVAS Vulnerability Test
# $Id: etomite_0612_sql_injection.nasl 7277 2017-09-26 12:45:58Z cfischer $
# Description: Etomite CMS id Paramater SQL Injection
#
# Authors:
# Justin Seitz <[email protected]>
#
# Copyright:
# Copyright (C) 2006 Justin Seitz
#
# 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 vulnerability. 

Description:

The remote web server is running Etomite CMS, a PHP-based content
management system. 

The version of Etomite CMS installed on the remote host fails to
sanitize input to the 'id' parameter before using it in the
'index.php' script in a database query.  Provided PHP's
'magic_quotes_gpc' setting is disabled, an unauthenticated attacker
can exploit this issue to manipulate SQL queries, possibly leading to
disclosure of sensitive data, attacks against the underlying database,
and the like.";

tag_solution = "No patches or upgrades have been reported by the vendor at this time.";

if(description)
{
 script_id(80057);
 script_version("$Revision: 7277 $");
 script_tag(name:"last_modification", value:"$Date: 2017-09-26 14:45:58 +0200 (Tue, 26 Sep 2017) $");
 script_tag(name:"creation_date", value:"2008-10-24 23:33:44 +0200 (Fri, 24 Oct 2008)");
 script_tag(name:"cvss_base", value:"6.8");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
 script_cve_id("CVE-2006-6048");
 script_bugtraq_id(21135);
 script_xref(name:"OSVDB", value:"30442");
 script_name("Etomite CMS id Paramater SQL Injection");
 script_category(ACT_ATTACK);
 script_tag(name:"qod_type", value:"remote_vul");
 script_copyright("This script is Copyright (C) 2006 Justin Seitz");
 script_family("Web application abuses");
 script_dependencies("find_service.nasl", "http_version.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);
 script_xref(name : "URL" , value : "http://www.securityfocus.com/archive/1/451838/30/0/threaded");

 exit(0);
}


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

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

injectstring = rand_str(charset:"abcdefghijklmnopqrstuvwxyz0123456789_", length:10);

foreach dir( make_list_unique( "/etomite", "/cms", cgi_dirs( port:port ) ) ) {

  if( dir == "/" ) dir = "";
  url = string(dir, "/index.php?id=", injectstring, "'");
  req = http_get(item:url,port:port);
  res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);
  if (res == NULL) continue;
	
  sqlstring = "";
  if(string("etomite_site_content.id = '", injectstring) >< res) {
    if (report_verbosity > 1) {
      sqlstring = res;
      if("<span id='sqlHolder'>" >< sqlstring) sqlstring = strstr(sqlstring,"SELECT");
      if("</span></b>" >< sqlstring) sqlstring = sqlstring - strstr(sqlstring, "</span></b>");			
      info = string("The version of Etomite CMS installed in directory '", dir, "'\n",
                    "is vulnerable to this issue. Here is the resulting SQL string\n",
                    "from the remote host when using a test string of '",injectstring,"'  :\n\n", sqlstring);
    }
    else info = "";

    security_message(data:info, port:port);
    set_kb_item(name: 'www/'+port+'/SQLInjection', value: TRUE);
    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

26 Sep 2017 00:00Current
0.4Low risk
Vulners AI Score0.4
EPSS0.01315
20