Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.

BP142: Do not trust the input parameters

Never trust the input parameters that were sent to the API endpoint. Always assume that the input parameters could have been spoofed.

Always validate the inputs.

If you accept any identifiers that you use to access data (retrieve data from database) or alter the application state (modify data in database), always check that the calling user is authorized to access/alter the resource.


No Comments Yet.
Be the first to tell us what you think.

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play