<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>PHP safe_mode bypass for windows</title>
        <description>I wrote a small post on my weblog regarding a safe_mode bypass for PHP. It works on all versions I have tested (including the latest), but only on windows. those few of you who know my blog also know that I barely write something and I'm not a good writer ;)
Anyway I reported this to the PHP team several times but got no response, so I'm trying to bring this to public attention because I feel it's a serious issue (although I see the limiting facts: windows, PHP eval)

there you go :)
http://websec.wordpress.com/2008/10/14/php-safe_mode-bypass/</description>
        <link>http://sla.ckers.org/forum/read.php?3,24937,24937#msg-24937</link>
        <lastBuildDate>Sat, 18 May 2013 22:42:52 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?3,24937,26015#msg-26015</guid>
            <title>Re: PHP safe_mode bypass for windows</title>
            <link>http://sla.ckers.org/forum/read.php?3,24937,26015#msg-26015</link>
            <description><![CDATA[TheInsider Wrote:<br />
-------------------------------------------------------<br />
&gt; Isn't safe_mode suppose to protect PHP only when<br />
&gt; ran as a CGI and NOT when it is running as a<br />
&gt; command-line process (because it means that user<br />
&gt; has already ran a process so no protection from<br />
&gt; process execution is required)?<br />
<br />
I guess it is not supposed to protect CGI only because safe_mode turned on will block calls like exec() at command line too (actually).<br />
<br />
anyway, as stated in the blogpost the bug does work at CGI too, so exploiting a PHP eval() or uploading a PHP file with &quot;&lt;? exec('\calc') ?&gt;&quot; does work.]]></description>
            <dc:creator>Reiners</dc:creator>
            <category>Full Disclosure</category>
            <pubDate>Sun, 11 Jan 2009 05:56:27 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?3,24937,25881#msg-25881</guid>
            <title>Re: PHP safe_mode bypass for windows</title>
            <link>http://sla.ckers.org/forum/read.php?3,24937,25881#msg-25881</link>
            <description><![CDATA[n1ce find !<br />
now , every one can run command even with safe mode : ON !]]></description>
            <dc:creator>one23</dc:creator>
            <category>Full Disclosure</category>
            <pubDate>Sun, 04 Jan 2009 15:41:33 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?3,24937,25731#msg-25731</guid>
            <title>Re: PHP safe_mode bypass for windows</title>
            <link>http://sla.ckers.org/forum/read.php?3,24937,25731#msg-25731</link>
            <description><![CDATA[Isn't safe_mode suppose to protect PHP only when ran as a CGI and NOT when it is running as a command-line process (because it means that user has already ran a process so no protection from process execution is required)?]]></description>
            <dc:creator>TheInsider</dc:creator>
            <category>Full Disclosure</category>
            <pubDate>Wed, 24 Dec 2008 19:02:23 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?3,24937,24995#msg-24995</guid>
            <title>Re: PHP safe_mode bypass for windows</title>
            <link>http://sla.ckers.org/forum/read.php?3,24937,24995#msg-24995</link>
            <description><![CDATA[There's a surprise!<br />
I wonder why Stefan left...]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Full Disclosure</category>
            <pubDate>Mon, 20 Oct 2008 09:41:44 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?3,24937,24937#msg-24937</guid>
            <title>PHP safe_mode bypass for windows</title>
            <link>http://sla.ckers.org/forum/read.php?3,24937,24937#msg-24937</link>
            <description><![CDATA[I wrote a small post on my weblog regarding a safe_mode bypass for PHP. It works on all versions I have tested (including the latest), but only on windows. those few of you who know my blog also know that I barely write something and I'm not a good writer ;)<br />
Anyway I reported this to the PHP team several times but got no response, so I'm trying to bring this to public attention because I feel it's a serious issue (although I see the limiting facts: windows, PHP eval)<br />
<br />
there you go :)<br />
http://websec.wordpress.com/2008/10/14/php-safe_mode-bypass/]]></description>
            <dc:creator>Reiners</dc:creator>
            <category>Full Disclosure</category>
            <pubDate>Mon, 13 Oct 2008 19:43:37 -0500</pubDate>
        </item>
    </channel>
</rss>
