<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to securety-holes</title><link href="https://sourceforge.net/p/phpnetzero/securety-holes/" rel="alternate"/><link href="https://sourceforge.net/p/phpnetzero/securety-holes/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpnetzero/securety-holes/</id><updated>2006-04-18T17:35:42Z</updated><subtitle>Recent changes to securety-holes</subtitle><entry><title>local file inclusion through cookie = remote cmd xctn</title><link href="https://sourceforge.net/p/phpnetzero/securety-holes/1/" rel="alternate"/><published>2006-04-18T17:35:42Z</published><updated>2006-04-18T17:35:42Z</updated><author><name>Fr0zen</name><uri>https://sourceforge.net/u/froz3n/</uri></author><id>https://sourceforge.net49321442d80bcc83ea69cd5b44e1b83ac28b1d26</id><summary type="html">&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;</summary></entry></feed>