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:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 Files
  • 24
    Sep 24th
    65 Files
  • 25
    Sep 25th
    24 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 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