Results 1 to 3 of 3

Thread: How to set SSL for cookies ?

  1. #1
    smarttux is offline Junior Member
    Join Date
    Jun 2008
    Posts
    2

    Default How to set SSL for cookies ?

    Hi,

    Scanalert found the following two vulnerabilities with my CRM installation:

    1. Missing Secure Attribute in an Encrypted Session (SSL) Cookie

    Description
    The application sets a cookie over a secure channel without using the "secure" attribute. RFC states that if the cookie does not have the secure attribute assigned to it, then the cookie can be passed to the server by the client over non-secure channels (http). Using this attack, an attacker may be able to intercept this cookie, over the non-secure channel, and use it for a session hijacking attack.


    General Solution
    It is best business practice that any cookies that are sent (set-cookie) over an SSL connection to explicitly state secure on them.


    2. Potentially Sensitive Information Missing Secure Attribute in an Encrypted Session (SSL) Cookie.

    Description
    The application sets a cookie over a secure channel without using the "secure" attribute. RFC states that if the cookie does not have the secure attribute assigned to it, then the cookie can be passed to the server by the client over non-secure channels (http). Using this attack, an attacker may be able to intercept this cookie, over the non-secure channel, and use it for a session hijacking attack. The information that was sent was flagged as being potentially sensitive. Potentially sensitive information could be session tokens, user id's, or passwords.


    General Solution
    It is best business practice that any cookies that are sent (set-cookie) over an SSL connection to explicitly state secure on them. Speak with your web developer to have them enable the secure attribute on cookies sent over secure connections.


    Can someone help me set SSL for the cookies ?


    Thank you!

  2. #2
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: How to set SSL for cookies ?

    Yup, in php.ini, find the commented out line...

    ;session.cookie_secure =

    and change it to....

    session.cookie_secure = 1

    As the comment says...

    ; This option enables administrators to make their users invulnerable to
    ; attacks which involve passing session ids in URLs; defaults to 0.

    Sessions won't work at all unless you're over https. You'll need to bounce your webserver to pick up the change (at least you do with apache).

    You should probably make your htaccess force redirects from http to https too if you're not already.
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  3. #3
    lilia gephardt is offline Junior Member
    Join Date
    Nov 2010
    Posts
    1

    Default Re: How to set SSL for cookies ?

    Hello everyone! Thanks Nick for the cookies setup code. SSL has been giving me headaches.
    Lilia Gephardt - SSL affiliate

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mysql - MSSql
    By Proware in forum Help
    Replies: 15
    Last Post: 2009-10-05, 01:27 PM
  2. Question about SSL (from FastStack Install)
    By shelzmike in forum Help
    Replies: 0
    Last Post: 2008-03-19, 06:04 PM
  3. HTTPS / SSL and bitrock installer
    By hkphooey in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-03-09, 08:37 AM
  4. Replies: 3
    Last Post: 2007-02-28, 02:45 PM
  5. Upgrade from Open Source to Professional
    By Sohonet in forum General Discussion
    Replies: 1
    Last Post: 2006-06-12, 09:23 PM

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
  •