#!/usr/bin/python # # Exploit Title: mBlogger v1.0.04 (viewpost.php) SQL Injection Exploit # Date : 31 August 2010 # Author : Ptrace Security (Gianni Gnesa [gnix]) # Contact : research[at]ptrace-security[dot]com # Software Link: http://sourceforge.net/projects/mblogger/ # Version : 1.0.04 # Tested on : EasyPHP 5.3.1.0 for Windows # # # Description # =========== # # + viewpost.php => SQL Injection!! # # 30: $query = "SELECT id, name, subject, message, posted FROM posts WHERE # id = '$_GET[postID]'"; # 31: $result = mysql_query($query) or die(mysql_error()); # 32: while($row = mysql_fetch_array($result, MYSQL_ASSOC)) # 33: { # 34: echo "
Posted by: " . $row['name'] . " on " . $row['posted'] . "
"; # 39: echo "" . $row['message'] . "
"; # 40: echo "