<?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>Tue, 18 Jun 2013 16:12:31 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Elijah Horton: Sandboxing Untrusted Code With PHPSandbox]]></title>
      <guid>http://www.phpdeveloper.org/news/19520</guid>
      <link>http://www.phpdeveloper.org/news/19520</link>
      <description><![CDATA[<p>
<i>Elijah Horton</i> has a recent post to his site sharing a tool he's developed to <a href="http://www.fieryprophet.com/blog/detail/sandboxing-untrusted-code-with-phpsandbox">sandbox and validate PHP code</a> of user-contributed code.
</p>
<blockquote>
Few quotes related to the PHP language are as pithy and resoundingly accurate as the phrase: "Eval is evil." The reasons are myriad: the eval() function basically gives whatever code is passed to it unlimited control of the parser, and this freedom makes eval() both a temptation for developers, who may need to dynamically control PHP at runtime, and a panacea for hackers who are ever-searching for more servers to add to their botnets. So, how does one make use of the extreme power available through runtime evaulation of PHP, without exposing one's server to near-certain rooting? Through a sandbox. 
</blockquote>
<p>
His tool - <a href="https://github.com/fieryprophet/php-sandbox">PHPSandbox</a>, uses the <a href="https://github.com/nikic/PHP-Parser">PHP-Parser</a> library to deconstruct the PHP code its given and look for issues. He gives an example of a call to <a href="http://php.net/mail">mail</a> and how it would catch the issue. He shows how to install it via Composer, how to configure it with whitelisted methods/functions. It also includes a way to overwrite function calls with a bit safer alternative.
</p>
Link: http://www.fieryprophet.com/blog/detail/sandboxing-untrusted-code-with-phpsandbox]]></description>
      <pubDate>Mon, 29 Apr 2013 11:56:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gareth Heyes: Bypassing XSS Auditor]]></title>
      <guid>http://www.phpdeveloper.org/news/19209</guid>
      <link>http://www.phpdeveloper.org/news/19209</link>
      <description><![CDATA[<p>
<i>Gareth Heyes</i> has <a href="http://www.thespanner.co.uk/2013/02/19/bypassing-xss-auditor/">posted about some bypasses</a> that he's found for getting around the XSS Auditor functionality in some browsers:
</p>
<blockquote>
I had a look at XSS Auditor for a bit of fun because Mario said it's getting harder to bypass. Hmmm I don't agree. I seem to remember the same flaws are present from the last time I checked it with a little variation. It is also a very limited XSS filter not supporting detection of script based attacks (very common). 
</blockquote>
<p>
He includes three of his own bypasses - using a "formaction" on the submit input in a form, using "target" to override the iframe external resource restriction and the injection of a specially placed anchor tag. Each of these comes with a proof-of-concept example and another is <a href="http://pastebin.com/7jU4yhs9">also included</a> courtesy of <i>Mario Heiderich</i>.
</p>]]></description>
      <pubDate>Wed, 20 Feb 2013 11:21:29 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: Protection and Methodologies of Security Vulnerabilities in Web Development]]></title>
      <guid>http://www.phpdeveloper.org/news/16731</guid>
      <link>http://www.phpdeveloper.org/news/16731</link>
      <description><![CDATA[<p>
On the Script Tutorials blog today there's a good summary post reminding you of some of the <a href="http://www.script-tutorials.com/security-vulnerabilities-in-web-development-and-how-they-work/">common security issues</a> that your web application can face, mostly due to improper validation and filtering.
</p>
<blockquote>
Our new article focuses on security in web. Many beginners (and not only) web programmers sometimes can make mistakes when developing its web applications. Our article is intended to eliminate potential gaps in knowledge web developers. It is quite possible that you already know something, but I'll be incredibly happy if you learn anything new. Today we learn about most popular exploits (with samples).
</blockquote>
<p>Security issues that made their list include:</p>
<ul>
<li>SQL injections
<li>Cross-site scripting/Cross-site Request Forgeries
<li>Remote & local file inclusion
<li>Displaying errors on production
<li>Including .svn (or any version control meta) files in the production release
</ul>]]></description>
      <pubDate>Wed, 17 Aug 2011 11:16:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jason Stiles' Blog: How To Protect Your Site From XSS With PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16458</guid>
      <link>http://www.phpdeveloper.org/news/16458</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Jason Stiles</i> takes a look at some of the things you can do with PHP to help <a href="http://jstiles.com/Blog/How-To-Protect-Your-Site-From-XSS-With-PHP">protect your site from XSS</a> (cross-site scripting attacks) with some basic filtering.
</p>
<blockquote>
Cross-Site Scripting (XSS) is a type of attack where a hacker attempts to inject client-side scripting into a webpage that others are able to view.  The attack could be as simple as an annoying alert window or as sophisticated as stealing a logged in user's credentials (commonly saved in browser cookies). [...] Since these types of user input can immediately be displayed to other user's, the attack could be spread pretty quickly and even without your knowledge. 
</blockquote>
<p>
He provides a basic function to get you started filtering the input from your users - a "xss_protect" method that takes in the data, whether to strip HTML tags or not and an optional set of allowed tags if you do. He also asks for opinions and better methods in his comments:
</p>
<blockquote>
No solution is going to be perfect, but at least now you have a head start!  If you have ways of improving this function, let myself and everyone else know in <a href="http://jstiles.com/Blog/How-To-Protect-Your-Site-From-XSS-With-PHP#comments">the comments</a>. 
</blockquote>]]></description>
      <pubDate>Mon, 13 Jun 2011 09:40:42 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Development Blog: E-mail links, protective solutions against SPAM]]></title>
      <guid>http://www.phpdeveloper.org/news/14039</guid>
      <link>http://www.phpdeveloper.org/news/14039</link>
      <description><![CDATA[<p>
In a recent post to the Web Development Blog they talks a look at some methods you can use on your site to help reduce the amount of spam sent to email addresses by <a href="http://www.web-development-blog.com/archives/e-mail-links-protective-solutions-against-spam/">protecting them from scripts that might harvest them</a> right from the page.
</p>
<blockquote>
There are lots of spam bots checking the Internet for email addresses on regular websites, forums, blog and mailing lists. Once caught by some spam bot your mailbox is in need of a strong spam filter or sometimes it might be better to use a new e-mail address. In this article we show you different ways, how you're able to show your e-mail address to human visitors and hide it for spam bots. 
</blockquote>
<p>
They give four solutions, some a bit more practical than others - using an image instead of the text-only version of the address, hiding the @ symbol, hiding it with PHP (converting it to ASCII) and using Javascript to handle it similarly.
</p>]]></description>
      <pubDate>Wed, 17 Feb 2010 08:28:55 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Juozas Kaziukenas' Blog: HTML filtering and XSS protection]]></title>
      <guid>http://www.phpdeveloper.org/news/12186</guid>
      <link>http://www.phpdeveloper.org/news/12186</link>
      <description><![CDATA[<p>
<i>Juozas Kaziukenas</i> has <a href="http://dev.juokaz.com/php/html-filtering-and-xss-protection">an example</a> of how to keep you and your application's data safe from prying eyes by filtering input with the <a href="http://htmlpurifier.org/">HTML_Purifier</a> package.
</p>
<blockquote>
It's really hard to decide what data is acceptable, especially when user has permission to insert HTML content through form. [...] However, problem can be solved, and quite easily. Almost a year ago I was reading some random blog when I find out about <a href="http://htmlpurifier.org/">HTML Purifier</a>. Basically, it's library which can filter and fix any HTML. 
</blockquote>
<p>
He gives an example - running a web scraping tool against a site with malformed HTML. By running it through the HTML_Purifier package first, the errors were corrected and the "more correct" HTML source could be parsed easily. The package also helps to protect from XSS attacks via a <a href="http://htmlpurifier.org/live/smoketests/xssAttacks.php">whole set of filters</a> included by default.
</p>]]></description>
      <pubDate>Mon, 23 Mar 2009 10:21:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Esser's Blog: Suhosin 0.9.21 - XSS Protection]]></title>
      <guid>http://www.phpdeveloper.org/news/9151</guid>
      <link>http://www.phpdeveloper.org/news/9151</link>
      <description><![CDATA[<p>
<i>Stefan Esser</i> has <a href="http://blog.php-security.org/archives/94-Suhosin-0.9.21-XSS-Protection.html">posted about</a> the release of the latest version of the <a href="http://www.suhosin.org/">Suhosin</a> security patch for PHP - version 0.9.21.
</p>
<blockquote>
It has been a very long time since the last Suhosin extension has been released, but today this has changed with the release of <a href="http://www.suhosin.org/">Suhosin 0.9.21</a>. Among the changes are two new features that will protect applications that put to much trust into the SERVER variables from several XSS (and SQL injection) attacks. These features are suhosin.server.strip and suhosin.server.encode.
</blockquote>
<p>
He details <a href="http://blog.php-security.org/archives/94-Suhosin-0.9.21-XSS-Protection.html">these two features</a> and gives examples of what they protect from. You can find out more about the Suhosin patch on <a href="http://www.suhosin.org/">its website</a>.
</p>]]></description>
      <pubDate>Fri, 30 Nov 2007 11:17:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP Security Blog: Suhosin 0.9.15 comes with Transparent phpinfo() Protection]]></title>
      <guid>http://www.phpdeveloper.org/news/6791</guid>
      <link>http://www.phpdeveloper.org/news/6791</link>
      <description><![CDATA[<p>
According to <a href="http://blog.php-security.org/archives/52-Suhosin-0.9.15-comes-with-Transparent-phpinfo-Protection.html">this new post</a> on the PHP Security Blog, there's a new META tag the <a href="http://www.hardened-php.net/suhosin/index.html">Suhosin extension</a> includes in the output of a phpinfo page to help resolve some of the issues with Google (and buddies) storing the contents of the page, giving a potential attacker information they could exploit.
</p>
<blockquote>
[The] extra META TAG to the HTML output of phpinfo() that forbids indexing and archiving by robots. For fairness reasons following the embedded links is still allowed to robots, because a lot of projects [...] to get at least a few backlinks for their work, that might result in a better search engine positioning.
</blockquote>
<p>
The patch can be downloaded <a href="http://www.hardened-php.net/suhosin/index.html">from their site</a>.
</p>]]></description>
      <pubDate>Wed, 29 Nov 2006 10:43:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Pro PHP Security  /  Preventing SQL Injection, Part 3]]></title>
      <guid>http://www.phpdeveloper.org/news/6715</guid>
      <link>http://www.phpdeveloper.org/news/6715</link>
      <description><![CDATA[<p>
PHPBuilder.com continues their look at preventing SQL injections in your PHP scripts with <a href="http://www.phpbuilder.com/columns/ProPHPSecurity_excerpt_part3.php3">this new tutorial</a>, the third part of the excerpts from the APress book <a href="http://www.apress.com/book/bookDisplay.html?bID=437">Pro PHP Security</a>.
</p>
<p>
They pick up where they left off <a href="http://www.phpdeveloper.org/news/6672">last time</a> with the creation of an abstraction layer for your application to act as a go-between and filter out possible bad data. They give examples of how to use it to secure a new application, use abstraction libraries like the PearDB functionality, and how to test your application's protection.
</p>]]></description>
      <pubDate>Wed, 15 Nov 2006 15:01:08 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: EncoderCompare.com Launched]]></title>
      <guid>http://www.phpdeveloper.org/news/6243</guid>
      <link>http://www.phpdeveloper.org/news/6243</link>
      <description><![CDATA[<p>
When it comes to protecting your code, you definitely want to find the right product for your needs. Finding the information on all of the encoders out there can be a task in itself, though. Fortunately, <a href="http://www.encodercompare.com/">EncoderCompare.com</a> has been created to give you a quick and easy reference.
</p>
<blockquote>
<p>
Whilst we would always recommend the use of the ionCube Encoder product to protect your PHP source code when distributing your product to customers and users, there are several other products available to choose from.
</p>
<p>
To help with this, we have launched a comparison website which lists the available encoders and compares their features. The feature set is standardised so that it is possible to compare like for like in a clear manner.
</p>
</blockquote>
<p>
Currently, there's <a href="http://www.encodercompare.com/">fifteen encoders listed</a> with all of their stats - protection types, restrictions available, what OSes it has loaders for, the availability of licensing, and the pricing. There's links to get more specific information on each as well.
</p>]]></description>
      <pubDate>Mon, 11 Sep 2006 11:06:00 -0500</pubDate>
    </item>
  </channel>
</rss>
