Results 1 to 5 of 5

Thread: Sugar Suite "sugarEntry" Parameter Security Bypass

  1. #1
    mikeshinn is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    20

    Default Sugar Suite "sugarEntry" Parameter Security Bypass

    Secunia is reporting a vulnerability in Sugar Suite, that may allow remote code uploads to effected servers. The details are here: http://secunia.com/advisories/20072/

    This only appears to effect systems with "register_globals" set to On, which is not required for Sugar to work and htaccess should include register_globals off, so this shouldn't effect anyone really, but hey you never know. If you are concerned about this effecting your system, and you dont have time to patch, change your php.ini, check your .htaccess, etc. you can use mod_security to block these attacks with these signatures:


    #Sugar Suite "sugarEntry" Parameter Security Bypass
    SecFilterSelective REQUEST_URI "/modules/.*/.*\.php\?GLOBALS\[sugarEntry\].*((ht|f)tps?:/|\.\./\.\.)" "id:390054,rev:1,severity:2,msg:'JITP: Sugar Suite sugarEntry Parameter Security Bypass'"
    SecFilterSelective REQUEST_URI "/modules/.*/.*\.php\?cmd=.*GLOBALS\[sugarEntry\].*((ht|f)tps?:/|\.\./\.\.)" "id:390055,rev:1,severity:2,msg:'JITP: Sugar Suite sugarEntry Parameter Security Bypass'"

    For instructions on how to setup mod_security, please feel free to visit:

    http://www.gotroot.com/tiki-index.ph...security+rules

    Its pretty simple, and most of the newer Linux distributions come with mod_security, or allow you to download binaries for easy install.
    Last edited by mikeshinn; 2006-05-15 at 02:09 PM.
    Michael Shinn
    Prometheus Global
    Author of: Troubleshooting Linux Firewalls
    Creator of: Gotroot's modsecurity rules
    Tel: 703-266-6006 e-mail:michael.shinn AT prometheus-group DOT com

  2. #2
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Sugar Suite "sugarEntry" Parameter Security Bypass

    Thanks for the heads up, mikeshinn. We'll look into this right away.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  3. #3
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Sugar Suite "sugarEntry" Parameter Security Bypass

    Hi mikeshinn, as you point out, even though "register_globals" is required to be ON for this vulnerability to occur, we've looked into it anyway and determined that we can address this issue in code as well, just in case.

    (Edit: You also have to set Allow Override to Off in Apache)

    That we're doing.

    Expect a patch to 4.0.1 and 4.2 product releases within the next days/week.

    Thanks again for the heads up.

    Andy
    Last edited by andydreisch; 2006-05-15 at 09:19 PM. Reason: Adding "Allow Override" to text
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  4. #4
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Sugar Suite "sugarEntry" Parameter Security Bypass

    Hi all -

    4.2.0 Patch B has been released which contains a code fix for this reported issue.

    Here's the pointer to the release announcement:
    http://www.sugarcrm.com/forums/showthread.php?t=12393

    Expect a 4.0.1 Patch G in the next few days.

    Regards,
    Clint
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  5. #5
    filcole is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    76

    Default Re: Sugar Suite "sugarEntry" Parameter Security Bypass

    This is confusing me. I've just downloaded a full install of SugarSuite-4.2.0d and index.php still starts with
    Code:
    $GLOBALS['sugarEntry'] = true;
    instead of
    Code:
    if(!defined('sugarEntry'))define('sugarEntry', true);
    as explained in the forums here: http://www.sugarcrm.com/forums/showthread.php?t=12621

    Does the full install of SugarSuite 4.2.0d need to be updated?

    Edit: The answer is here: http://www.sugarcrm.com/forums/showp...74&postcount=5
    Last edited by filcole; 2006-05-30 at 05:11 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •