Last Updated: February 25, 2016
·
701
· bagilevi

Guard your application from invalid parameters

If you are receiving exception notifications from your Rails app, and when examining the request parameters, you find that some funny people are trying to pass in a string where you expect a hash, or just omit a few parameters, you can use this gem to define the expected format of the params hash and validate users' inputs against that before your naive code get executed.

https://github.com/bagilevi/param_guard

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

Most application security programs still stop at the repository. The page a visitor loads can run third-party scripts that read the DOM, change a checkout, or steal a session after the deploy already looks clean.

Security insights from Cside