Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Security-Fault: change user-pw

  1. #1
    mike2009 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    25

    Exclamation Security-Fault: change user-pw

    Hello,

    is it a normal function that:

    changing password,
    after submitting the form, old-pw and new-pw is sent in url (via get-request?!?!)

    Can anybody confirm this security fault ??

    Mike

  2. #2
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: Security-Fault: change user-pw

    Could you make your question bit clear?

  3. #3
    mike2009 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    25

    Default Re: Security-Fault: change user-pw

    Yes, sorry,
    I paste the text in the form and missed 50% ...

    I'm logged in as a normal user.
    I enter My Account -> change password.

    The form appears.
    I enter old pw, twice new pw and press submit.

    Now the popup-form disappears and the following "URL" in the browser (and was also tracked by the history):

    ://DOMAIN_FOR_SUGAR/index.php?old_password=testtest&is_admin=1&new_pas sword=abbaabba&confirm_new_password=abbaabba&butto n=++Speichern++

    This can be reproduced: 29 attempts, 3 times this result

    Used Browser: Firefox actual release, no extension/addons installed

    Not confirmed with IE 7.x

    I never see that, but I think, in case of security this should not happen.

    I want to know:
    can anyone else confirm this "fault" or maybe it is some system-specific reason.

    Using:
    DualPen Win XP Pro act. Patchlevel, default Win Firewall, Normnan Virus-Suite.
    Nothing special in background active.

    Mike

  4. #4
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: Security-Fault: change user-pw

    Which version of sugar you are using? Did the change password feature customized in the past?

  5. #5
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Security-Fault: change user-pw

    Mike the simple fact is that the new password must be sent to the server in cleartext for the server to save it.
    So whether it is sent using GET (in the URL) or POST it IS going to go over the wire in cleartext - there is just no other way.

    That is why the "wire" itself should be secured so at the very least you should be using https for accessing sugar (over a public network).

    This "fault" seems unavoidable to me.

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  6. #6
    mike2009 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    25

    Default Re: Security-Fault: change user-pw

    I'm using Version 5.2.0c (Build 5505) , no customization at all.

    If this "feature" is the default was to post pw to database, why it happens not during _every_ attempt to change password ?

  7. #7
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default Re: Security-Fault: change user-pw

    There is no way to avoid posting the password to the webserver? How else would the webserver know it has been changed? As noted, you should therefore use SugarCRM in the context of HTTPS, which encrypts the communication between the browser and the webserver.

    Your test of the GET / POST seemed flawed somehow, but really it is irrelevant anyway. Web systems send data to web servers. This is the nature of the internet, not a design flaw in SugarCRM.
    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

  8. #8
    mike2009 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    25

    Default Re: Security-Fault: change user-pw

    Of course, I understand the technical flow by sending data via web.
    Naturally sugar is used via https.

    The question was:
    why this method of sending data occured not _everytime_ ?

    In more than 50% of all cases the data is sent coded in url.

    So I think, if sth. is coded, it works in coded-behaviour. The reason for changing behaviour can imho be one these:
    a) s.th. in my environment is the cause
    b) s.th. in sugar works not _as it should_.

    Am I wrong ?
    Last edited by mike2009; 2009-04-01 at 01:58 PM.

  9. #9
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default Re: Security-Fault: change user-pw

    The popup passes values back to a hidden form on the User DetailView and causes it to POST.

    <form action="index.php" method="post" name="DetailView" id="form">
    <input type="hidden" name="module" value="Users">
    <input type="hidden" name="record" value="24fnca6b-9c4c-456i-5018-424b38710429">
    <input type="hidden" name="isDuplicate" value=false>
    <input type="hidden" name="action">
    <input type="hidden" name="user_name" value="davidokeefe">
    <input type="hidden" name="password_change">
    <input type="hidden" name="old_password">
    <input type="hidden" name="new_password">
    <input type="hidden" name="return_module">
    <input type="hidden" name="return_action">
    <input type="hidden" name="return_id">

    To follow the flow, you should interrupt it before it goes on to the return action.
    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

  10. #10
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default Re: Security-Fault: change user-pw

    You could put, for example:

    print_r($_REQUEST);
    die;

    somewhere in /modules/Users/Save.php to stop the execution. That would show what was posted and how.
    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. User Vs Account Security
    By cygnusceo in forum Help
    Replies: 3
    Last Post: 2008-12-19, 09:13 PM
  2. Replies: 0
    Last Post: 2008-08-06, 12:56 AM
  3. Security problem for the group user
    By rasha in forum Help
    Replies: 1
    Last Post: 2008-03-04, 02:43 PM
  4. sugar crm - User Input/DB Access (Security Questions!)
    By bdouglas in forum Developer Help
    Replies: 0
    Last Post: 2005-09-21, 07:17 PM
  5. Security settings - limiting user access
    By infocap in forum General Discussion
    Replies: 6
    Last Post: 2005-03-23, 01:43 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
  •