Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2006
    Posts
    57
    Plugin Contributions
    0

    bug Forgot your password? : Does not validate?

    Hi All

    I'm busy setting up a new store with v1.5.3 and came across this:

    On index.php?main_page=password_forgotten; any value or non value entered here is accepted, with the reply: " A new password has been sent to your email address."

    I've set up a complete fresh install as well, thinking that maybe I broke something while busy on my new store, but I get the same problem there as well.

    Has anyone else come across this?

    Apologies if this has been asked and answered somewhere else, as this seems like such a basic function (and would have been reported by now), but I could not find anything in the forum for this.

    Thank you
    Warren

  2. #2
    Join Date
    Jan 2004
    Posts
    66,387
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Forgot your password? : Does not validate?

    Are you saying something's malfunctioning or just that it's not telling you "hey, you forgot to enter an email address"?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2006
    Posts
    57
    Plugin Contributions
    0

    Default Re: Forgot your password? : Does not validate?

    If I click the submit link to get a new password, with the email address field empty, it does not show the usual message stack warning.
    I have the same behavior when I enter for example "dggsd sdg rsg" and click submit. It does not seem to be going through the validation to make sure that a proper email address has been entered and it also is not checking that the email address entered actually exists.


    I see it has server side validation so when I have the field empty or just rubbish entered ad click "submit" I should get the following message stack " Error: The Email Address was not found in our records; please try again."

    Instead it gives me the green message stack " A new password has been sent to your email address. "
    Last edited by this side up; 5 Aug 2014 at 07:38 AM. Reason: additional info

  4. #4
    Join Date
    Jul 2012
    Posts
    16,751
    Plugin Contributions
    17

    Default Re: Forgot your password? : Does not validate?

    Haven't tested this response myself, but relatively speaking a credential checking application should not provide a different message for any error other than possibly indicating that overall an error was made. Ie, if any error message is provided, it should be the same for a username that does not exist or an improperly entered username. By providing different responses for different errors, one can then discover information about the operation and membership of the site.

    Perhaps the better fix that would prevent divulging information would be something like, thank you for submitting your request, as applicable an email will be sent to the account holder.

    Just a "thought". Partially considering that if too much of an email check was incorporated it may become difficult to detangle and allow other forms of login credentials from being used...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,611
    Plugin Contributions
    88

    Default Re: Forgot your password? : Does not validate?

    Processing on the password_forgotten page was updated in v1.5.3 so the "password sent" message is given automatically. You really don't want a message that indicates that a properly-entered email address doesn't exist, but I agree that the processing should be somewhat modified to return a "Please enter a valid email address" if the value entered is either blank or (er) not a valid email address.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,387
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Forgot your password? : Does not validate?

    Exactly. It's a security thing. If you want to read up on it it's called "user enumeration", where a different error message is shown if there is no match vs when there is one, and it allows hackers to learn about your site more info than they ought to know.

    In behind, the system is doing what it's supposed to do. I suppose in the future we could change the message to be even more generic, instead of even saying it "sent" anything at all. But it should no longer ever tell you whether what you entered was valid or not. (Notwithstanding a "blank" should indeed do nothing, or could safely say "hey silly you forgot to enter anything" ... but that's a pretty low-severity kind of issue.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Nov 2006
    Posts
    57
    Plugin Contributions
    0

    Default Re: Forgot your password? : Does not validate?

    Thank you.
    "In behind, the system is doing what it's supposed to do". .
    I get the security aspect. Don't like it. But I suppose we do have to play it closer to the chest now days...

    I just know customer's (who either forgot what they registered with, or just entered it in badly) will tell us they could not get passwords sent to them because our system is not working. (when it actually is) . "BUT, YOUR systems says it has sent me a new password!? Now you say it may have not? What do you mean...?"

    Validating the email address formatting on the client side I think is a must.
    In the meantime, i'm going to edit the success message so to read something along the lines, like "If our system has recognised your email address, a new password will be sent to you immediately. Need assistance? Contact us .....".

    This would improve the general customer experience.

    But, I suppose in the bigger scheme of things it is a "low-severity kind of issue".
    I'll have to add this to the to-do list.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,387
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Forgot your password? : Does not validate?

    Quote Originally Posted by this side up View Post
    Validating the email address formatting on the client side I think is a must.
    Validating the *formatting*? Why? That's not going to help them recover a password. Other than, again, "hey, stupid, you can't type".
    NOTE: The email address formatting *is* already validated when creating an account.

    Nevertheless, we'll be updating the wording in v1.6.0, to remove the ambiguity.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Nov 2006
    Posts
    57
    Plugin Contributions
    0

    Default Re: Forgot your password? : Does not validate?

    Quote Originally Posted by DrByte View Post
    Validating the *formatting*? Why? That's not going to help them recover a password. Other than, again, "hey, stupid, you can't type". .

    he he... If only I could say that. , BUT i've used a similar message to the one displayed when using the forgotten password feature for the admin.

 

 

Similar Threads

  1. "Forgot your password" not working
    By ekele in forum General Questions
    Replies: 3
    Last Post: 26 Jan 2011, 08:17 PM
  2. Forgot your password? problem!
    By alhakeem2001 in forum General Questions
    Replies: 1
    Last Post: 22 Jul 2010, 04:27 PM
  3. [Done v1.3.8] Forgot your password link is not working!!
    By Boss Of The Bosses in forum Bug Reports
    Replies: 21
    Last Post: 3 Sep 2008, 09:52 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR