157

This thread is frustrating. Everyone seems more interested in nitpicking the specifics of what OP is saying and are ignoring that a forum sends you your password (not an automatically generated one) in an email on registration.

you are viewing a single comment's thread
view the rest of the comments
[-] abhibeckert@lemmy.world 7 points 1 year ago* (last edited 1 year ago)

Everyone seems more interested in nitpicking the specifics of what OP is saying

Yep. That's how security works. You have to nitpick the specifics.

The reality is nobody has invented a perfectly secure authentication system that is easy to use (for example, allows easy recovery when people forget their password which for any large service will be tens of millions of times per day).

Attempts have been made - passkeys being the latest one - but they're not even remotely easy to use as soon as you step slightly out of the most common path (such as using the web browser that is provided by the company you're logged in with... try to use Chrome with an Apple passkey, or Safari with a Google passkey, and you're going to stumble into usability issues).

Passwords are not considered secure wether they're sent in a plaintext email or not. They can be secure, if used properly, but 99% of users don't follow best practices. As a result almost every web service in the world is insecure and it's the nitpicky details that matter.

Sending a secret to an email address is a standard step during registration for almost any service.

[-] jormaig@programming.dev 7 points 1 year ago

But the thing is that you should never have access to the plaintext password and thus you should never be able to receive it in an email. You should store the salted hash of the password instead of the password itself.

[-] 8ace40@programming.dev 4 points 1 year ago

These kind of forums don't store the plaintext password, they send an email while in memory, and hash them afterwards. Still bad security, but it's not storing it in plaintext.

[-] Miaou@jlai.lu 2 points 1 year ago* (last edited 1 year ago)

It's storing it in plain text in at least one third party's database. Indeed, it's not stored in plain text locally, it's doing something much worse

[-] sekhat@lemmy.temporus.me 1 points 1 year ago

But you are supposed to change that generated password as soon as you use it to login. Now I have no idea about these forums, but you'd expect the software to enforce that need to change

[-] Miaou@jlai.lu 1 points 1 year ago

It's still stupid because people reuse password. They shouldn't, but they do. If it's one time login, make it a token. There's zero reason to ever email a password, period

[-] jormaig@programming.dev 0 points 1 year ago

But your password should never reach the server. It should be hashed already at the client and then salted at the server with a random hash. Then you store the salted hash

load more comments (2 replies)
load more comments (4 replies)
this post was submitted on 30 Sep 2023
157 points (74.2% liked)

Programming

17314 readers
361 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS