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
There are multiple issues with the way the deviceInfo property is filled in the POST /login route:
the IP hash is generated using generateToken(ip) but generateToken is not a hash function since it involves random data
the deviceInfo property in the request body is not validated and can contain arbitrary data which is inserted straight into our database. Users can, for example, manipulate the effective value of ipHash. Also, the deviceInfo content is not useful if we do not enforce a specific structure.
The text was updated successfully, but these errors were encountered:
There are multiple issues with the way the
deviceInfo
property is filled in thePOST /login
route:generateToken(ip)
butgenerateToken
is not a hash function since it involves random datadeviceInfo
property in the request body is not validated and can contain arbitrary data which is inserted straight into our database. Users can, for example, manipulate the effective value ofipHash
. Also, thedeviceInfo
content is not useful if we do not enforce a specific structure.The text was updated successfully, but these errors were encountered: