Input validation attack in php-affiliate-v1.0

From: MOD (br014c1155at_private)
Date: Thu Aug 15 2002 - 14:08:37 PDT

  • Next message: Bill Fryberger: "Re: IE [with Google Toolbar installed] crash"

    www.organicphp.com
    php-affiliate-v1.0.zip
    
    PHP Affiliate allows you to promote your site with an affiliate program.
    When affiliates sign up to your site they display links and banners to your
    site, and in return you offer them a financial reward for every sale they
    bring. Requires PHP4 and MySQL.
    
    A vulnerability is present in details.php, a form for changing details about
    an affiliates account. The user id is submitted to details2.php via a hidden
    field, so any user can change the field to another user and be able to edit
    their information.
    
    A fix may be to check the user is logged in with a valid session in
    details2.php:
    
      if (session_is_registered("valid_user"))
    
    and then to update the database with this:
    
      WHERE refid = '$HTTP_SESSION_VARS[valid_user]'
    
    This hasn't been tested.
    



    This archive was generated by hypermail 2b30 : Thu Aug 15 2002 - 16:14:06 PDT