<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: security]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=security</link>
<description></description>
<pubDate>Thu, 07 Feb 2008 23:11:50 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[Disappointed in php -- again!]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?disappointed_in_php_again</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: php, security</div><hr/><div class="wiki">
<p>
Taint checking? <a target="_blank" title="(external link)" href="http://marc.info/?l=php-internals&amp;m=116621380305497&amp;w=2">Just say no<!-- wiki-renamed-hyperlink "Just say no"<http://marc.info/?l=php=-internals&m=116621380305497&w=2> --></a>, according to php developers (I must admit, I stopped reading after first two replies).</p>
<p>
<a target="_blank" title="(external link)" href="http://pixybox.seclab.tuwien.ac.at/pixy/">Pixy<!-- wiki-renamed-hyperlink "Pixy"<http://pixybox.seclab.tuwien.ac.at/pixy/> --></a> tries to address that (in Java, sic!) and fails on my test code. Only hope left (as it seems) is generation of AST tree using <a target="_blank" title="(external link)" href="http://www.phpcompiler.org/">phc<!-- wiki-renamed-hyperlink "phc"<http://www.phpcompiler.org/> --></a> or using <a target="_blank" title="(external link)" href="http://pecl.php.net/package/Parse_Tree">Parse_Tree<!-- wiki-renamed-hyperlink "Parse_Tree"<http://pecl.php.net/package/Parse_Tree> --></a>. Both look like a workable way to get AST tree, but I really wouldn't like to implement taint analysis for language which I don't particularly like.</p>
<p>
Any suggestions from idle readers of my blog?</p>
<p>
OOH, this day would be more-or-less complete waste if I didn't stumble upon <a target="_blank" title="(external link)" href="http://code.google.com/p/hypertable/">hypertable<!-- wiki-renamed-hyperlink "hypertable"<http://code.google.com/p/hypertable/> --></a> which seem like nice implementation of bigtable in sane language (C/C++). Now if I could just find bunch of machines to run it on...</p>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>php, security</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?disappointed_in_php_again</guid>
<pubDate>Thu, 07 Feb 2008 23:11:50 -0000</pubDate>
</item>
<item>
<title><![CDATA[PHP Security]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?php_security</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: php, security</div><hr/><div class="wiki">
<p>
Oxymoron, right? Well for somebody who loves perl so much, it is. Anyway here it is...</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#one_liners">Dobrica Pavlinušić's random unstructured stuff (One-liners)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] One-=liners} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#show_phpinfo_from_shell">Dobrica Pavlinušić's random unstructured stuff (show phpinfo from shell)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] show phpinfo from shell} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#security_scanning">Dobrica Pavlinušić's random unstructured stuff (Security scanning)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Security scanning} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#spike_php_security_audit_tool">Dobrica Pavlinušić's random unstructured stuff (Spike PHP Security Audit Tool)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Spike PHP Security Audit Tool} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#pixky">Dobrica Pavlinušić's random unstructured stuff (Pixky)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Pixky} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#phc">Dobrica Pavlinušić's random unstructured stuff (phc)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] phc} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (Links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Links} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="one_liners">One-liners</h1>
<h2 id="show_phpinfo_from_shell">show phpinfo from shell</h2>
<pre>
echo '&lt;? phpinfo() ?&gt;' | php5
</pre>
<br /><h1 id="security_scanning">Security scanning</h1>
<h2 id="spike_php_security_audit_tool">Spike PHP Security Audit Tool</h2>
<p>
<a target="_blank" title="(external link)" href="http://developer.spikesource.com/projects/phpsecaudit/">http://developer.spikesource.com/projects/phpsecaudit/</a></p>
<pre>
sudo apt-get install php5-xslt
</pre>
<br /><p>
Small list of checked expressions, quite difficult to browse.</p>
<h2 id="pixky">Pixky</h2>
<p>
<a target="_blank" title="(external link)" href="http://pixybox.seclab.tuwien.ac.at/pixy/">http://pixybox.seclab.tuwien.ac.at/pixy/</a></p>
<p>
Enables taint analysis of code. Doesn't handle ISO-8859-2 chars well, and breaks with terrifing error, but it's a very promising tool (in Java, sigh)</p>
<h2 id="phc">phc</h2>
<p>
<a target="_blank" title="(external link)" href="http://www.phpcompiler.org/">http://www.phpcompiler.org/</a></p>
<p>
Great tool to get php's AST tree. Used by <a target="_blank" title="(external link)" href="http://www.perlfoundation.org/parrot/index.cgi?plumhead">Plumhead<!-- wiki-renamed-hyperlink "Plumhead"<http://www.perlfoundation.org/parrot/index.cgi?plumhead> --></a></p>
<h1 id="links">Links</h1>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
 <div class="fetchrss_title">
     fetchrss: http://del.icio.us/rss/dpavlin/php+security
 </div>

  </div>
  
<ul class="fetchrss_item">
  <li class="fetchrss_item">
    There was an error: 500 Can't connect to del.icio.us:80 (Bad hostname 'del.icio.us')

  </li>
</ul>

</div>
















<!-- wiki: {fetchrss: http://del.icio.us/rss/dpavlin/php+security full}
--></div><br /></div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>php, security</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?php_security</guid>
<pubDate>Tue, 08 Jan 2008 18:30:59 -0000</pubDate>
</item>
</channel>
</rss>