Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Bugtraq
[Top] [All Lists]

AW: JetBox cms (search_function.php) Remote File Include

Subject: AW: JetBox cms (search_function.php) Remote File Include
Date: Tue, 29 Aug 2006 08:27:51 +0200
The same 'vuln' was posted yesterday and it is definitly not exploitable.
You can't include any file there the include function is called in a
function and you can't call that function in any way by requesting
search_function.php. 

Search_function.php 

<?php

//comments

function phpdigSearch(){

Line: 423 <?php include $relative_script_path.'/libs/htmlheader.php' ?>

...
} 

?>

The variable $relative_script_path is also initialized in the function
header

function phpdigSearch($id_connect, $query_string, $option='start',
$refine=0, $refine_url='', $lim_start=0, $limite=10,
$browse=0,$site=0, $path='', 
                             $relative_script_path = '.', $template='',
                       $templates_links='')
{
...
}


Please explain us how that should be exploited.



-----Ursprüngliche Nachricht-----
Von: carcabotx@yahoo.com [mailto:carcabotx@yahoo.com] 
Gesendet: Montag, 28. August 2006 15:08
An: bugtraq@securityfocus.com
Betreff: JetBox cms (search_function.php) Remote File Include

############################################

Found by : CarcaBot

--

E-mail : CarcaBotx [at] Yahoo [dot] com

--

$relative_script_path.'/libs/htmlheader.php

--

Exploit

--

# Google Dork: powered by Jetbox CMS

--

http://www.sitename.com/path/includes/phpdig/libs/search_function.php?relati
ve

_script_path=[Evil Code]

--

Greets goes to : CarcaBot Administrator of Romanian Electronic Network
Security Lab Team http://Hacking.CarcaBot.ro - Best Romanian Hacking Source


<Prev in Thread] Current Thread [Next in Thread>