Lucene search
K

Cloupia End-to-end FlexPod Management Directory Traversal

🗓️ 15 Jan 2012 00:00:00Reported by Chris RockType 
zdt
 zdt
🔗 0day.today👁 35 Views

Cloupia End-to-end FlexPod Management Directory Traversal Vulnerability allows remote and local access to browse host file system

Code
*Cloupia End-to-end FlexPod Management - Directory Traversal Vulnerability***

*Vulnerability Information*
 
Class: Directory Traversal
 
Remotely Exploitable: Yes
 
Locally Exploitable: Yes
 
*Software Description*
 
Provides end-to-end FlexPod management and automation across physical,
virtual, compute, storage and network resources.
 
Create internal private clouds rapidly with internal standards and
procedures to maximize the infrastructure investments.
 
 
 
Provides comprehensive physical and virtual infrastructure management and
automation.
 
Provides unified solution and single pane of glass for consistent and
connected experience across private, public & hybrid clouds.
 
*Vulnerability Description*
 
jQuery File Tree is a configurable, AJAX file browser plugin for the jQuery
javascript library utilised within the Cloupia application framework.
 
Unauthenticated access to this module allows a remote attacker to browse
the entire file system of the host server, beyond the realm of the web
service itself.
 
Cloupia are aware of this flaw and are releasing a patch to mitigate
access. End users are urged to update immediately by contacting the vendor.
 
http://www.cloupia.com
 
 
 
* **Technical Description*
 
The following process performed as an attacker to exploit this
vulnerability would be as follows:
 
The code for the jQuery File Tree Java-Server-Page file reads as follows:
 
<%@ page
 
        import="java.io.File,java.io.FilenameFilter,java.util.Arrays"%>
 
<%
 
/**
 
  * jQuery File Tree JSP Connector
 
  * Version 1.0
 
  * Copyright 2008 Joshua Gould
 
  * 21 April 2008
 
*/
 
    String dir = request.getParameter("dir");
 
    if (dir == null) {
 
        return;
 
    }
 
 
 
        if (dir.charAt(dir.length()-1) == '\\') {
 
        dir = dir.substring(0, dir.length()-1) + "/";
 
        } else if (dir.charAt(dir.length()-1) != '/') {
 
            dir += "/";
 
        }
 
    if (new File(dir).exists()) {
 
               String[] files = new File(dir).list(new FilenameFilter() {
 
                   public boolean accept(File dir, String name) {
 
                               return name.charAt(0) != '.';
 
                   }
 
               });
 
               Arrays.sort(files, String.CASE_INSENSITIVE_ORDER);
 
               out.print("<ul class=\"jqueryFileTree\" style=\"display:
none;\">");
 
               // All dirs
 
               for (String file : files) {
 
                   if (new File(dir, file).isDirectory()) {
 
                               out.print("<li class=\"directory
collapsed\"><a href=\"#\" rel=\"" + dir + file + "/\">"
 
                                      + file + "</a></li>");
 
                   }
 
               }
 
               // All files
 
               for (String file : files) {
 
                   if (!new File(dir, file).isDirectory()) {
 
                               int dotIndex = file.lastIndexOf('.');
 
                               String ext = dotIndex > 0 ?
file.substring(dotIndex + 1) : "";
 
                               out.print("<li class=\"file ext_" + ext +
"\"><a href=\"#\" rel=\"" + dir + file + "\">"
 
                                      + file + "</a></li>");
 
                       }
 
               }
 
               out.print("</ul>");
 
    }
 
%>



#  0day.today [2018-01-10]  #

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