Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Slack. Or why you need to hash reset_token like password (sakurity.com)
3 points by homakov on March 28, 2015 | hide | past | favorite | 2 comments


Even without an ID in the post, you could hash the input and search for a matching value in the DB, right? So not having an ID along with it isn't proof they aren't hashing tokens, but... I think hashing tokens, especially session_id, is a good defense-in-depth practice which almost no one is following.


> Even without an ID in the post, you could hash the input and search for a matching value in the DB, right

Hmmm indeed! if we hash incoming value before searching then it would work. So with blackbox it's impossible to tell, I'm sorry.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: