3 ms·
This is all fine, with the understanding of exactly who gets to see the authentication token on its way from your server to the customer's inbox: any MTA and if
by IgorPartola 15y ago
This is all fine, with the understanding of exactly who gets to see the authentication token on its way from your server to the customer's inbox: any MTA and if the MTA's pass the e-mail to and fro in clear text, anyone on those networks (including your dear old ISP if you use them for your e-mail provider). Additionally, the webmail provider, and any plugin on the user's browser that can read content out of a web page.
If you are comfortable with that, great. Provide this feature as a nice option. However, if your service hosts any sort of sensitive information at all, or has anything to do with money, please don't turn this on by default. This is one step away from send me my password in clear text.
- calloc 15y agoYet when I get a reset password email the exact same things happen... so for sites where that reset password is good enough it is also good enough to send auto login links.
- IgorPartola 15y agoYup. And sending reset passwords link is just as insecure. Just because it is the accepted practice does not mean it's a good idea. Introducing some sort of security questions helps a bit, depending on implementation. Another idea would be to ask the user to create a temporary PIN, that is then used to sign the token, and is asked for again, when the user actually clicks the emailed link. Lastly, users are more or less trained not to forward password reset emails. However, getting an email that says "Your stock is burning, click here to sell all." might cause the panic-stricken user to forward this email to his/her broker.
- itcmcgrath 15y agoExcept people are not use to simply forwarding an email giving anybody access to their account.