You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
yuki24
changed the title
user = User.find_by(token: token) is vulnerable to Timing attackuser = User.find_by(token: token) is vulnerable to Timing attacks
Feb 24, 2017
yuki24
changed the title
user = User.find_by(token: token) is vulnerable to Timing attacksUser.find_by(token: token) is vulnerable to Timing attacks
Feb 24, 2017
yuki24
changed the title
User.find_by(token: token) is vulnerable to Timing attacks
User.find_by(token: token) is vulnerable to Timing attacks
Feb 24, 2017
fixed by #19
Eventually went for regular token/email authentication that I also had in the previous tutorial (first find user by email, then check the token using ActiveSupport::SecurityUtils.secure_compare). Feels like JWT tokens are for more special use cases.
This is in fact insecure and shouldn't be encouraged.
The text was updated successfully, but these errors were encountered: