发新话题
打印

[转载]Postnuke 0.750 - 0.760rc4本地文件包含漏洞

[转载]Postnuke 0.750 - 0.760rc4本地文件包含漏洞

文章作者:Andreas Krapoh

Description
===========
Postnuke is Web Content Management System written in PHP and using mysql
as database backend.

Detail
======

Directory traversal in function pnModFunc
-----------------------------------------

We have found serious vulnerability which allow any user to view/include
local file in function pnModFunc. This is due to lack of error checking in
function pnModFunc when user supply func through index.php. func variable
will sanitize using pnVarCleanFromInput which will remove any slashes
before pass to pnModFunc in index.php. This make nullbyte poisoning
possible. With the help from pnlang directory in Blocks module this
vulnerability is very easy to exploit. Remote code execution also possible
with help of 3rd party module which allow image upload or through
accesible apache log file.

--pnMod.php--
} else {
if(file_exists("modules/$modname/pn$type/$func.php"))
{

require_once("modules/$modname/pn$type/$func.php");<-- THE PROBLEM

return $modfunc($args);
}
-------------

Proof of concept
================
http://server.com/index.php?modu ... ../../etc/passwd%00

Fix
===
Fix Available from postnuke cvs since 5th May 2005

http://cvs.postnuke.com/viewcvs. ... r1=1.47&r2=1.48

http://cvs.postnuke.com/viewcvs. ... ostnuke-devel/html/
index.php.diff?r1=1.39&r2=1.40

Vendor Response
===============
3rd May 2005 - Vendor contacted
4th May 2005 - Vendor Reply
5th May 2005 - Fix Available

Thanks
======
Andreas Krapoh from postnuke for fast response in this issue.
曾几何时,有人对我说:装B遭雷劈。我说:去你妈的。于是,这个人又对我说:如果再说脏话,上帝会惩罚你的。我说:我操上帝。结论:彪悍的人生不需要上帝。

TOP

发新话题