I'm a pretty novice Rails developer, but since most of the things in Rails are so simple, I’m always afraid that I will add a new security hole when I write my code. For example, just an hour ago, I noticed one of the code that I wrote a few weeks ago, where in the UserController editing method I forgot to check whether the user you are editing is equal to the user you are logged in with (i.e. @user = User.find params[:id]instead of @user = current_user) I wrote it like this because I usually use it for all editing methods (e.g., @post = Post.find params[:id]). This will show you the email address of another user.
What are the common security holes in Rails applications that I should be aware of? Things that are easily overlooked due to conventions (like the example above)?
user142019
source
share