<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 23 May 2012 04:58:52 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mark Hamlin's Blog: Debugging xdebug (tcp, dns, ubuntu, osx, vmware) ((all at once))]]></title>
      <guid>http://www.phpdeveloper.org/news/16799</guid>
      <link>http://www.phpdeveloper.org/news/16799</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Mark Hamlin</i> talks about <a href="http://uber-code.blogspot.com/2011/08/more-debugging-xdebug-tcp-dns-ubuntu.html">some of his difficulties</a> in getting <a href="http://xdebug.org">XDebug</a> and <a href="http://netbeans.org">Netbeans</a> working together from an OSX machine hitting a Ubuntu server.
</p>
<blockquote>
For the past 18 months working with PHP, i've primarily used alternatives, not out of preference, but because netbeans xdebug integration consistently failed me.  It would (might) work with a remote apache, but would not play with scripts executed remotely from the command line.  I could be fairly sure my xdebug config was sound as I no problems with MacGDB and PHPStorm whatsoever.
</blockquote>
<p>
With a little more investigation, he discovered that it was the OSX firewall causing issues. He found that, with a new incoming connection came a confirmation box to approve the connection. This, of course, wasn't passed along to Netbeans so he never saw it. In the end, he set up a reverse SSH tunnel to bypass the firewall completely (command included).
</p>]]></description>
      <pubDate>Wed, 31 Aug 2011 13:04:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Remote Debugging PHP with a Firewall in the Way]]></title>
      <guid>http://www.phpdeveloper.org/news/16779</guid>
      <link>http://www.phpdeveloper.org/news/16779</link>
      <description><![CDATA[Sometime debugging PHP applications isn't as easy as just pointing your IDE directly at the server and starting to work. <i>Derick Rethans</i> has a new post talking about one such situation, <a href="http://derickrethans.nl/debugging-with-xdebug-and-firewalls.html">remote debugging with a firewall in between</a> you and the remote machine with <a href="http://xdebug.org">XDebug</a>.
</p>
<blockquote>
The PHP debugging extension Xdebug has "remote" debugging capabilities for single-step debugging PHP applications. This works by setting your favourite IDE into listening mode and instructing Xdebug (with one of the handy browser extensions for example) to initiate debugging. [...] There could however be a firewall in the way that prevents Xdebug connecting directly to your IDE's IP address. That can be because the network you are on employs NAT. [...]  In this case, there is no way Xdebug can connect to your IDE's IP address and port. Or is there?
</blockquote>
<p>
His alternative requires <a href="http://en.wikipedia.org/wiki/Secure_Shell">SSH access</a> to the remote machine - building a tunnel from your local machine to the remote server XDebug can use to get around the firewall. He explains the shell command to set up the tunnel and, a more graphical way, through the <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">Putty</a> ssh/telnet client. A quick call to "netstat" can tell you if things are working correctly or not. All that's left then is to point your XDebug to the port on the localhost and you should be good to go on debugging.
</p>]]></description>
      <pubDate>Fri, 26 Aug 2011 11:24:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[php|architect: Modsecurity: Why it matters to PHP ]]></title>
      <guid>http://www.phpdeveloper.org/news/14779</guid>
      <link>http://www.phpdeveloper.org/news/14779</link>
      <description><![CDATA[<p>
New from the php|architect blog today <a href="http://www.phparch.com/2010/07/09/modsecurity-why-it-matters-to-php/">there's a post</a> talking about a new book from Feisty Duck Publishing about <a href="http://www.amazon.com/ModSecurity-Handbook-Ivan-Ristic/dp/1907117024/ref=sr_1_1?ie=UTF8&s=books&qid=1278678726&sr=8-1">ModSecurity</a> for Apache and how that effects the world of PHP.
</p>
<blockquote>
ModSecurity is a web application firewall. It can live in and out of the Apache web server environment, one of the most popular web servers around. ModSecurity is infinitely customizable and extremely powerful. The philosophy of ModSecurity can be summed up in a few words. Look, and only modify if I tell you to. 
</blockquote>
<p>
The author of the post (<i>Orlanao Medina</i>) thinks that this book is *the* resource for ModSecurity-related information, providing step-by-step information on how to work with the tool both inside and outside of Apache. It shares tips on blocking XSS attacks, brute force attacks and generally protecting your application in general. 
</p>]]></description>
      <pubDate>Mon, 12 Jul 2010 11:42:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevCentral Blog: Why Is Reusable Code So Hard to Secure?]]></title>
      <guid>http://www.phpdeveloper.org/news/13804</guid>
      <link>http://www.phpdeveloper.org/news/13804</link>
      <description><![CDATA[<p>
In <a href="http://devcentral.f5.com/weblogs/macvittie/archive/2010/01/07/why-is-reusable-code-so-hard-to-secure.aspx">this recent post</a> to the DevCentral blog (from f5.com) they ask why reusable code, one of the foundations of good development (especially in PHP) is so hard to secure.
</p>
<blockquote>
Being an efficient developer often means abstracting functionality such that a single function can be applied to a variety of uses across an application. Even as this decreases risk of errors, time to develop, and the attack surface necessary to secure the application it also makes implementing security more difficult. 
</blockquote>
<p>
The article talks about a project the author was working on and how, when he came across a need for a component and found one that worked, they were surprised to see how difficult it would be to secure it without adding on extra code bloat. He describes some of the issue and talks about how the development of the component must not have included any thought into things like input validation or filtering. One suggestion is to employ a firewall to sit in front of the entire application and handle all of these things without changes to the code.
</p>]]></description>
      <pubDate>Fri, 08 Jan 2010 10:28:42 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sanisoft Blog:  Inspekt - put a firewall in your PHP applications]]></title>
      <guid>http://www.phpdeveloper.org/news/8838</guid>
      <link>http://www.phpdeveloper.org/news/8838</link>
      <description><![CDATA[<p>
The Sanisoft blog has a <a href="http://www.sanisoft.com/blog/2007/10/15/inspekt-put-a-firewall-in-your-php-applications/">new post</a> today about a handy PHP utility you can use to put a "firewall" in your PHP application - <a href="http://code.google.com/p/inspekt/">Inspekt</a>.
</p>
<blockquote>
Everyone knows that you should filter your inputs most of the good programmers do it but when you are working with a large team of programmers on an open source project things slip up, errors do creep in, at times like this you wish for a mechanism which would prevent your team from making such mistakes, some thing which forces them to declare their intent.
</blockquote>
<p>
One solution he mentions is the input_filter extension for PHP5, but this doesn't help most users since it's normally off by default and PHP5-only. The other solution, <a href="http://code.google.com/p/inspekt/">Inspekt</a>, a modified version of the Zend_Filter_input component of the Zend Framework. An <a href="http://www.sanisoft.com/blog/2007/10/15/inspekt-put-a-firewall-in-your-php-applications/">example</a> is included and a list of filtering methods is too (like getAlnum, getDigits and getInt).
</p>]]></description>
      <pubDate>Mon, 15 Oct 2007 08:47:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: PHP Security Tip #19 (Securing Your Connection)]]></title>
      <guid>http://www.phpdeveloper.org/news/7530</guid>
      <link>http://www.phpdeveloper.org/news/7530</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted their <a href="http://devzone.zend.com/node/view/id/1871">latest security tip</a> today - this time dealing with the actual connection your application sits on (from <i>Chris Hartjes</i>).
</p>
<blockquote>
<p>
The most secure application is one with no connection to the outside world.
</p>
<p>
As we've covered, you can't really disconnect the network from your web server if you are building web applications. You can however, carefully consider which servers need to be connected to the outside world and which can be inside your firewall. Beyond that, you can also evaluate how those servers that have to remain outside your firewall communicate with the ones inside.
</p>
</blockquote>
<p>
No, <a href="http://devzone.zend.com/node/view/id/1871">his suggestion</a> is not to take your application "off the grip" but more to limit access to things like database servers to help protect the data that lives inside it.
</p>]]></description>
      <pubDate>Thu, 29 Mar 2007 12:36:00 -0500</pubDate>
    </item>
  </channel>
</rss>

