flip the script

Cloupia End-To-End FlexPod Management Directory Traversal

Cloupia End-To-End FlexPod Management Directory Traversal
Posted Jan 15, 2012
Authored by Chris Rock

Cloupia End-To-End FlexPod management suffers from a directory traversal vulnerability. jQuery File Tree is a configurable, AJAX file browser plugin for the jQuery javascript library utilized 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.

tags | exploit, remote, web, javascript
MD5 | 389f76e233f9dce061d6e4dc0a2cde7b

Cloupia End-To-End FlexPod Management Directory Traversal

Change Mirror Download
*Cloupia End-to-end FlexPod Management - Directory Traversal Vulnerability***

*Advisory Information*

Advisory ID: KUSTODIAN-2011-011

Date published: Jan 13, 2011

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

}

%>





*Credits*

This vulnerability was discovered by Chris Rock <team@kustodian.com> and
from Kustodian www.Kustodian.com.

*Disclaimer*

The contents of this advisory are copyright (c) Kustodian Security and may
be distributed freely provided that no fee is charged for this distribution
and proper credit is given.


Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close