What is Nostr?
Alex /
npub1q3s…d26p
2024-10-03 00:28:34

Alex on Nostr: Btw it's really crazy to me it's not standard practice to hash session tokens. ...

Btw it's really crazy to me it's not standard practice to hash session tokens. Remember when Gab got hit with a major SQL injection vuln and the attacker dumped thousands of OAuth tokens and used them to control famous people's accounts? This can be be prevented by just treating OAuth tokens the same as passwords in the database, lol. https://www.wired.com/story/gab-hack-data-breach-ddosecrets/

Auth tokens in #Ditto's database are now hashed, and nip46 keys are encrypted: https://gitlab.com/soapbox-pub/ditto/-/merge_requests/526

This means that even if someone gained unauthorized access to the database, they wouldn't be able to control people's sessions. In other words, much better #security on the server.

note1nel…8sq3
Author Public Key
npub1q3sle0kvfsehgsuexttt3ugjd8xdklxfwwkh559wxckmzddywnws6cd26p