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
catmando
changed the title
Finders should return nil EVEN instead of raising security violations
Finders should return nil instead of raising security violations
Jan 29, 2019
For example consider:
Customers.find_by_handle('catmando')
if 'catmando' exists but the client does not have permission to view the data it will throw an error.
if 'catmando' does not exist it will just return nil.
so a hacker could use this to easily check if specific data exists or not.
Solution is just to return nil always unless the client has permission to view at least one attribute in the record.
The text was updated successfully, but these errors were encountered: