what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

bxcp0297.txt

bxcp0297.txt
Posted Feb 22, 2005
Site ofb-clan.de

A lack of validation in BXCP 0.2.9.7 scripts allow for local php file inclusion and path disclosure.

tags | exploit, local, php, file inclusion
SHA-256 | 682e5f0612f5d2564293d0855b1b47b08d7056fdf09cf28a436caffa3a24ef43

bxcp0297.txt

Change Mirror Download

Title: Local *.php file inclusion and full path disclosure in BXCP <=
0.2.9.7
Author: [OfB|FistFucker]
Contact: http://www.ofb-clan.de/
#ofb-clan at irc.quakenet.org:6667


1. Local *.php file inclusion:
---------------------------------

Because of no user input validation in 'index.php' it's possible to include
every local *.php file. Let's take a look at the most important part of the
source code:

~~ SOURCE CODE ~~~~~~~~~~~~~~~~~~~~~~~~

$show = $_REQUEST['show'];
require ("config.php");

if (!file_exists("show/$show.php"))
{
$notfound = $show;
$show = 'error';
}

$page = "show/$show.php";

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ END ~~

Yeah, there is no validation of the variable '$show'. So we can easily
access
every local file ending with '.php', also in restricted directories like
htaccess. We can easily jump outside the 'show' directory and include
every
file ending with '.php'!

Example URL: http://www.rz-liga.com/index.php?show=../intern/board/common

Don't worry about the response "Hacking attempt". It's just a die()
message
from 'common.php' of their htaccess protected phpBB. ;-)


2. Full path disclosure:
---------------------------

And by including the 'index.php' into itself with the above vulnerability
we
can cause a full path disclosure.

Example URL: http://www.rz-liga.com/index.php?show=../index


3. Let's fix that shit! =)
-----------------------------

Just replace in 'index.php':

~~ SOURCE CODE ~~~~~~~~~~~~~~~~~~~~~~~~

$show = $_REQUEST['show'];

if(ereg("\.\.", $show))
{
$show = '';
}

require ("config.php");

if (!file_exists("show/$show.php"))
{
$notfound = $show;
$show = 'error';
}

$page = "show/$show.php";

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ END ~~


4. Greetings:
----------------

Greetings fly out to all members of OfB-Clan that know me. And sorry for
the
events that occured at and after the 25th December. Please forgive me and
please stop seeing me as a criminal kiddie. Better see me as a guardian!
=D


Login or Register to add favorites

File Archive:

August 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close