Username: 
Password: 
Restrict session to IP 
Online within 1d
Questions  |  score: 4  |  3,72 5,43 6,04 |  Solved By 660 People  |  107504 views  |  since Aug 27, 2010 - 21:54:30

Crappyshare (Exploit, PHP)

Description
Z and Gizmore were thinking of a file-sharing company, Crappyshare, to collect the latest warez and earn money in one go.
While gizmore was working with the designer on the xhtml/css stuff, Z implemented the upload script,
and we got first results...but it seems to contain a vulnerability somewhere.
Some crackers already managed to gather sensitive local files (solution.php) and broke into the server.
Could you please help us to find the vulnerability?
Click here to see the code.

Note: This challenge is simulated as this would have been a real security issue. Multiple solutions are accepted.

PHP Warning(2): require_once(/home/gizmore/www/geshi/src/geshi.php): Failed to open stream: No such file or directory in core/inc/util/GWF_BBCodeItem.php line 219


Backtrace starts in www/challenge/crappyshare/index.php line 19. GWF_Message::display()........ core/inc/util/GWF_Message.php line 229. GWF_BBCode::decode().......... core/inc/util/GWF_BBCode.php line 127. GWF_BBCodeItem->render()...... core/inc/util/GWF_BBCodeItem.php line 78. GWF_BBCodeItem->renderChilds() core/inc/util/GWF_BBCodeItem.php line 117. GWF_BBCodeItem->render()...... core/inc/util/GWF_BBCodeItem.php line 74. GWF_BBCodeItem->renderTag()... core/inc/util/GWF_BBCodeItem.php line 101. GWF_BBCodeItem->render_code(). core/inc/util/GWF_BBCodeItem.php line 410. GWF_BBCodeItem->renderCode().. core/inc/util/GWF_BBCodeItem.php line 219. require_once()................ core/inc/util/GWF_BBCodeItem.php line 219. GWF_Debug::error_handler().... core/inc/util/GWF_Debug.php line 180.

PHP Fatal Error(1): Constant E_STRICT is deprecated since 8.4, the error level was removed in www/protected/config.php line 6


Backtrace starts in [unknown file] line ?. GWF_Debug::shutdown_function() core/inc/util/GWF_Debug.php line 109. GWF_Debug::error_handler().... core/inc/util/GWF_Debug.php line 180.