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.

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

Get it on Google Play