+ Reply to Thread
Results 1 to 5 of 5
Like Tree4Likes
  • 1 Post By Qombat
  • 1 Post By Livewire
  • 1 Post By Qombat
  • 1 Post By callumacrae

Thread: PHP floating point bug and you - You might DoS yourself from the inside out

  1. #1
    Qombat's Avatar
    Qombat is offline x10Hosting Member Qombat is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    25

    PHP floating point bug and you - You might DoS yourself from the inside out

    A vulnerability has been found in most 32-bit versions of PHP which causes the interpreter to hang when parsing a specific floating point number.

    As a result, any script taking user input and treating it as a number is vulnerable to a DoS attack.

    It takes next to no effort to initiate, and PHP on your machine will enter an infinite loop.

    Fixes are being worked on but for now, if you don't need to work with floating point numbers, don't.

    Vulnerable:
    Code:
    $id = (int)$_GET['x'];
    Safe:
    Code:
    $id = (int)substr($_GET['x'], 0, strpos($_GET['x'], "."));
    For reference, this is safe because it ignores everything past the decimal place.

    -For user safety, I have been asked to remove the specific floating point number, along with the cause behind the action PHP takes.-

    Trust me, if your site is public in any way shape or form, you'll thank me later.
    Last edited by Qombat; 01-06-2011 at 05:56 PM.
    pc-blackberry36 likes this.
    Elliot Speck | Unofficial Technical and Systems Support
    Filemaw - Free file sharing for the masses!

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: PHP floating point bug and you - You might DoS yourself from the inside out

    And stickied now that the actual exploit itself is removed
    Last edited by Livewire; 01-05-2011 at 11:23 PM.
    pc-blackberry36 likes this.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    Qombat's Avatar
    Qombat is offline x10Hosting Member Qombat is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    25

    Re: PHP floating point bug and you - You might DoS yourself from the inside out

    Update:

    The PHP team has released two new versions as of today: PHP versions 5.3.5 and 5.2.17. These versions contain the fix for the bug. If you are unable to update, I highly recommend continuing with the fix in the original post.
    pc-blackberry36 likes this.
    Elliot Speck | Unofficial Technical and Systems Support
    Filemaw - Free file sharing for the masses!

  4. #4
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: PHP floating point bug and you - You might DoS yourself from the inside out

    I thought they had discontinued support for PHP 5.2?

    ~Callum
    pc-blackberry36 likes this.
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  5. #5
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: PHP floating point bug and you - You might DoS yourself from the inside out

    There's a difference between discontinuing development and releasing security patches. Whilst there won't be any new features added, there will still be security fixes where necessary. For example, I still get security patches for Leopard despite it not being the most current release.

+ Reply to Thread

Similar Threads

  1. What do we point our domains to, so they point to this website?
    By randall-chris76 in forum Free Hosting
    Replies: 1
    Last Post: 12-21-2010, 02:21 PM
  2. Was 9-11 an inside job?
    By allofus in forum Crossfire
    Replies: 14
    Last Post: 09-18-2009, 11:54 PM
  3. n00b inside :D
    By Seishio in forum Introductions
    Replies: 0
    Last Post: 08-27-2006, 03:26 AM
  4. just look inside please?
    By swirly in forum Off Topic
    Replies: 2
    Last Post: 04-19-2006, 08:31 PM
  5. DIV inside a DIV
    By Conor in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 04-09-2005, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers