Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:13012
HistoryJun 07, 2006 - 12:00 a.m.

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

2006-06-0700:00:00
vulners.com
11

*/ Federico Fazzi, <[email protected]>
*/ 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>{$title} - Powered by BloggIT 1.01</title>\n");
?>