<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to securety-holes</title><link>https://sourceforge.net/p/phpnetzero/securety-holes/</link><description>Recent changes to securety-holes</description><atom:link href="https://sourceforge.net/p/phpnetzero/securety-holes/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 18 Apr 2006 17:35:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpnetzero/securety-holes/feed.rss" rel="self" type="application/rss+xml"/><item><title>local file inclusion through cookie = remote cmd xctn</title><link>https://sourceforge.net/p/phpnetzero/securety-holes/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;/*&lt;br /&gt;
tested software:&lt;br /&gt;
&lt;a href="http://sourceforge.net/project/showfiles.php?group_id=71894"&gt;http://sourceforge.net/project/showfiles.php?group_id=71894&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;description: "Php-ZeroNet is a script comprised of php&lt;br /&gt;
allowing webmasters to start a online community.&lt;br /&gt;
Php-ZeroNet features Content Management, News posting,&lt;br /&gt;
User CP, interactive sytem, etc. Php-ZeroNet uses a&lt;br /&gt;
wide range of different cases in its script, it can adapt."&lt;/p&gt;
&lt;p&gt;vulnerable code in function.php at lines 34-44:&lt;br /&gt;
...&lt;br /&gt;
if (isset($_COOKIE['specifiedlayout'])) {&lt;br /&gt;
//well it seems that the cookie to the layout that&lt;br /&gt;
the user wants to see exists so display it&lt;br /&gt;
$defaultlayout = $_COOKIE['specifiedlayout'];&lt;br /&gt;
$result = $DB-&amp;gt;query ("SELECT SiteName FROM&lt;br /&gt;
preferences");&lt;br /&gt;
list($sitename) = $DB-&amp;gt;getrow($result);&lt;br /&gt;
} else {&lt;br /&gt;
//well it doesnt seem to exist so get the normal&lt;br /&gt;
defaultlayout&lt;br /&gt;
$result = $DB-&amp;gt;query ("SELECT&lt;br /&gt;
SiteName,defaultlayout FROM preferences");&lt;br /&gt;
list($sitename, $defaultlayout) = $DB-&amp;gt;getrow($result);&lt;br /&gt;
}&lt;br /&gt;
require("themes/$defaultlayout/index.php");&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;if magic quotes off we can include local file through&lt;br /&gt;
$defaultlayout&lt;br /&gt;
which is set by COOKIE['specifiedlayout']&lt;/p&gt;
&lt;p&gt;this can be exploited by web browser however here is my POC&lt;br /&gt;
*/ &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fr0zen</dc:creator><pubDate>Tue, 18 Apr 2006 17:35:42 -0000</pubDate><guid>https://sourceforge.net49321442d80bcc83ea69cd5b44e1b83ac28b1d26</guid></item></channel></rss>