What wrong with this system to proactively check if customers’ passwords have been found in a breach?

Let’s say that during account creation, I already prohibit passwords known to be reused from breaches of other sites, like if it’s in the Have I Been Pwned list. But breaches happen all the time, so what if my customers’ passwords show up … Continue reading What wrong with this system to proactively check if customers’ passwords have been found in a breach?

How to store private keys in browsers after Apple’s decision to wipe script-writeable storage?

We have a web application that puts a private key in LocalStorage, which enables users to sign off certain messages. It’s been working fine until today we saw this announcement from Apple.

The TLDR; version is that now there is a “7-Day … Continue reading How to store private keys in browsers after Apple’s decision to wipe script-writeable storage?

How is security risk of storing authentication token in localStorage compared with cookies?

I’ve read that it’s a bad idea to save Single Page App’s encrypted authentication token in browser’s localStorage because this makes your app vulnerable to XSS attack, and when the token is stolen, the hacker can disguise as… Continue reading How is security risk of storing authentication token in localStorage compared with cookies?