what you don't know can hurt you
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: https://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: https://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 :

https://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

https://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

https://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

https://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: https://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
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 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