Slashdot Mirror


Over 78% of All PHP Installs Are Insecure

An anonymous reader writes: Anthony Ferrara, a developer advocate at Google, has published a blog post with some statistics showing the sorry state of affairs for website security involving PHP. After defining a list of secure and supported versions of PHP, he used data from W3Techs to find a rough comparison between the number of secure installs and the number of insecure or outdated installs. After doing some analysis, Ferrara sets the upper bound on secure installs at 21.71%. He adds, "These numbers are optimistic. That's because we're counting all version numbers that are maintained by a distribution as secure, even though not all installs of that version number are going to be from a distribution. Just because 5.3.3 is maintained by CentOS and Debian doesn't mean that every install of 5.3.3 is maintained. There will be a small percentage of installs that are from-source. Therefore, the real 'secure' number is going to be less than quoted." Ferrara was inspired to dig into the real world stats after another recent discussion of responsible developer practices.

2 of 112 comments (clear)

  1. Re:PHP by ircmaxell · · Score: 4, Informative

    Ummm... No. WordPress was first written in PHP3. Before it was even called "register globals". Back when that was just how you did things.

    --
    If a man isn't willing to take some risk for his opinions, either his opinions are no good or he's no good
  2. Re:Why the distros? by ircmaxell · · Score: 5, Informative

    The point most people make when you talk about running old versions is that "well, distributions backport security fixes, so 5.3.3 is secure on distro XYZ".

    So, to get around that, I looked at the popular distro's versions that they maintain. Then I counted *all* of those point versions as secure (over counting). So 5.3.3 is insecure as distributed by php.net, but as installed by Debian 6 it is secure.

    So therefore to get an upper bound (rather than lower bound) on secure versions, you need some way of factoring in for distro support.

    So I picked the most popular distros for server usage. Is this hand-waving? Absolutely. But it should give a pretty reasonable upper-bound.

    --
    If a man isn't willing to take some risk for his opinions, either his opinions are no good or he's no good