Lucene search
K

Campsite 'g_campsiteDir' Remote and Local File Inclusion Vulnerabilities

🗓️ 30 Jun 2009 00:00:00Reported by Copyright (C) 2009 SecPodType 
openvas
 openvas
🔗 plugins.openvas.org👁 14 Views

Campsite 'g_campsiteDir' Remote and Local File Inclusion Vulnerabilities OpenVAS Vulnerability Tes

Related
Refs
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2009-2181
23 Jun 200921:30
attackerkb
ATTACKERKB
CVE-2009-2182
23 Jun 200921:30
attackerkb
ATTACKERKB
CVE-2009-2183
23 Jun 200921:30
attackerkb
Circl
CVE-2009-2181
22 Jun 200900:00
circl
Circl
CVE-2009-2182
22 Jun 200900:00
circl
Circl
CVE-2009-2183
22 Jun 200900:00
circl
CVE
CVE-2009-2181
23 Jun 200921:21
cve
CVE
CVE-2009-2182
23 Jun 200921:21
cve
CVE
CVE-2009-2183
23 Jun 200921:21
cve
Cvelist
CVE-2009-2181
23 Jun 200921:21
cvelist
Rows per page
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_campsite_mult_vuln.nasl 5055 2017-01-20 14:08:39Z teissa $
#
# Campsite 'g_campsiteDir' Remote and Local File Inclusion Vulnerabilities
#
# Authors:
# Sharath S <[email protected]>
#
# Copyright:
# Copyright (c) 2009 SecPod, http://www.secpod.com
#
# 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_impact = "Successful exploitation will allow attacker to execute arbitrary local
  files, and cause XSS attack, Directory Traversal attack and remote File
  Injection attack on the affected application.
  Impact Level: Application";
tag_affected = "Campware, Campsite version 3.3.0 RC1 and prior";
tag_insight = "The multiple flaws are due to,
  - Input validation errors in the 'admin-files','conf/liveuser_configuration.php'
    'include/phorum_load.php',scripts when processing the 'g_campsiteDir'
    parameter.
  - Input validation error in the 'admin-files/templates/list_dir.php' script
    when,processing the 'listbasedir' parameter.";
tag_solution = "Upgrade to Campsite version 3.3.6 or later
  For updates refer to http://campware.org/";
tag_summary = "This host is running Campsite and is prone to multiple vulnerabilities.";

if(description)
{
  script_id(900385);
  script_version("$Revision: 5055 $");
  script_tag(name:"last_modification", value:"$Date: 2017-01-20 15:08:39 +0100 (Fri, 20 Jan 2017) $");
  script_tag(name:"creation_date", value:"2009-06-30 16:55:49 +0200 (Tue, 30 Jun 2009)");
  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-2009-2181", "CVE-2009-2182", "CVE-2009-2183");
  script_bugtraq_id(35456);
  script_name("Campsite 'g_campsiteDir' Remote and Local File Inclusion Vulnerabilities");
  script_xref(name : "URL" , value : "http://www.milw0rm.com/exploits/8995");
  script_xref(name : "URL" , value : "http://www.vupen.com/english/advisories/2009/1650");

  script_tag(name:"qod_type", value:"remote_banner");
  script_category(ACT_MIXED_ATTACK);
  script_copyright("Copyright (C) 2009 SecPod");
  script_family("Web application abuses");
  script_dependencies("secpod_campsite_detect.nasl");
  script_require_ports("Services/www", 80);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  exit(0);
}


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

campsitePort = get_http_port(default:80);
if(!campsitePort){
  exit(0);
}

campsiteVer = get_kb_item("www/"+ campsitePort + "/Campsite");
if(campsiteVer == NULL){
  exit(0);
}

ver = eregmatch(pattern:"^(.+) under (/.*)$", string:campsiteVer);

# Check for RFI
if(ver[2] != NULL)
{
  if(!safe_checks())
  {
    sndReq = http_get(item:string(ver[2], 'conf/liveuser_configuration.php' +
                      '?GLOBALS[g_campsiteDir]=[SHELL]'), port:campsitePort);
    rcvRes = http_send_recv(port:campsitePort, data:sndReq);
    if("SHELL" >< rcvRes && "No such file or directory" >< rcvRes)
    {
      security_message(campsitePort);
      exit(0);
    }
  }
}

if(ver[1] != NULL)
{
  # Check for Campsite version 3.3.0 RC1
  if(version_is_less_equal(version:ver[1], test_version:"3.3.0.RC1")){
    security_message(campsitePort);
  }
}

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