<?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>Thu, 24 May 2012 06:08:40 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DashExamples.com: Add a Content Security Policy(CSP) to your Web Site with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16774</guid>
      <link>http://www.phpdeveloper.org/news/16774</link>
      <description><![CDATA[<p>
Related to <a href="http://phpdeveloper.org/news/16749">this other post</a> about content security policies in PHP sites, DashExamples.com has a <a href="http://linux.dashexamples.com/2011/08/add-a-content-security-policy-csp-to-your-web-site-with-php/">quick new post</a> about what you'll need to add to your application to implement a policy of your own.
</p>
<blockquote>
Content Security Policy(CSP) is a mechanism in the browser that restricts what content will be requested and run by the browser. CSP does this by passing in a specific response header that tells the browser what resources (images, javascript, css, frames, etc) can be requested and accepted to execute. There are multiple ways to setup CSP for your web site, you can use your <a href="http://linux.dashexamples.com/2011/08/adding-content-security-policy-csp-to-apache-virtual-hosts/">web server configuration</a> like I showed in a previous example or use a dynamic scripting language like PHP.
</blockquote>
<p>
What it really boils down to is setting a header, either X-Content-Security-Policy or X-Content-Security-Policy-Report-Only, to tell the browser what security policy to use and how to honor it. You can find out more about content security policies from <a href="https://wiki.mozilla.org/Security/CSP/Specification">this page</a> on the Mozilla wiki. CSPs allow you to define how your site's content interacts and help to prevent issues like XSS and data injection.
</p>]]></description>
      <pubDate>Thu, 25 Aug 2011 13:11:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Dealing with different password validation schemes in a single app]]></title>
      <guid>http://www.phpdeveloper.org/news/12551</guid>
      <link>http://www.phpdeveloper.org/news/12551</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has written up <a href="http://codeutopia.net/blog/2009/05/20/dealing-with-different-password-validation-schemes-in-a-single-app/">a new post</a> for his blog looking at how to combine multiple password validation methods inside of a single application.
</p>
<blockquote>
If your application is well thought out, you would not want to save any data that isn't valid. So what do you do, when you need different validation schemes, say for passwords, depending on some special case? [...] There is a better approach: Using a "policy" - Policies can be used for other things than this too, but let's look at how to use a policy for managing password validation.
</blockquote>
<p>
He sets up an example scenario where the user sets an invalid and valid password and shows how policies for password validation (regular expression matches and other validation techniques) can provide a simple way to ensure the user has entered the right information.
</p>]]></description>
      <pubDate>Sat, 23 May 2009 06:32:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Blog:  New symfony security policy]]></title>
      <guid>http://www.phpdeveloper.org/news/10234</guid>
      <link>http://www.phpdeveloper.org/news/10234</link>
      <description><![CDATA[<p>
In an effort to keep things a bit more secure (after finding out about <a href="http://www.symfony-project.org/blog/2008/05/14/symfony-1-0-16-is-out">this</a>) the symfony team has officially released their own <a href="http://www.symfony-project.org/blog/2008/05/21/new-symfony-security-policy">security policy</a> to help prevent issues like that in the future.
</p>
<blockquote>
You may be wondering why it has been taking us such a long time to react. Here's the main reason: we had not a very strong security alert reporting and qualifying process. This has been fixed recently. So as of now, if you find a security bug in <a href="http://www.symfony-project.com/">symfony</a>, please send an email to security at symfony-project.com, with as much details as you can and ideally a patch if you can provide one.
</blockquote>
<p>
The wiki has a <a href="http://trac.symfony-project.com/wiki/HowToContributeToSymfony#Reportingsecurityissues">whole section</a> on how to report security issues to get them to the right place.
</p>]]></description>
      <pubDate>Wed, 21 May 2008 12:06:29 -0500</pubDate>
    </item>
  </channel>
</rss>

