[security] Store auth tokens as SHA-256 hashes instead of plaintext #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From QA Audit (#25 comment)
Severity: SHOULD-FIX
The
clients.tokencolumn stores the raw 64-character hex token. If the database file is compromised, all active session tokens are immediately usable.Suggested fix: Store
SHA-256(token)in the database; compare against the hash on lookup.