I am trying to setup an edit form for my User
object. I have automatic binding from the form to the user object working fine.
I'm wondering how do I prevent malicious users from binding to fields of my User
object that I don't want them to?
For example, my user object has userName
, and it also has points
. When they click edit user, I want them to be able to change the userName
, but not the points
. A malicious user could just send an extra points=429429
as a hidden field in the form by editing the HTML, and this would automatically be bound to the backing object by Spring.