Results 1 to 3 of 3

Thread: Security of form fields in *FormController

  1. #1
    Join Date
    Aug 2004
    Location
    Tampa, FL
    Posts
    39

    Default Security of form fields in *FormController

    I am wondering, when using SimpleFormController, AbstractFormController, etc: For the properties of an object that you don't bind in your view (using spring:bind tags), is it possible for an attacker to submit these fields, or are only the fields that are bound allowed to be submitted?

  2. #2

    Default Re: Security of form fields in *FormController

    Quote Originally Posted by nilesh
    I am wondering, when using SimpleFormController, AbstractFormController, etc: For the properties of an object that you don't bind in your view (using spring:bind tags), is it possible for an attacker to submit these fields, or are only the fields that are bound allowed to be submitted?
    No, they won't be mapped to the command object, just the ones spring knows about. Actually, this an important consequence because if you do not have sessions turn on (setSession( true )), the extra properties that are not bound by spring will lose their state if I remember (haven't used it in awhile). I could be wrong. By making the form use a session, you can have other properties contain data but not exposed to the view and everything should be okay.

  3. #3

    Default

    No, they won't be mapped to the command object, just the ones spring knows about
    I am not sure this is true. I tried and I found that Spring binds all the properties with a matching input. Is there a way to prevent this ?

Similar Threads

  1. Replies: 3
    Last Post: Jun 8th, 2010, 03:27 AM
  2. Replies: 6
    Last Post: Sep 24th, 2006, 11:58 AM
  3. Replies: 2
    Last Post: Aug 4th, 2006, 01:37 PM
  4. Replies: 1
    Last Post: Sep 22nd, 2005, 04:42 AM
  5. Submission of empty form fields
    By steven.warren in forum Web
    Replies: 7
    Last Post: Aug 17th, 2004, 03:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •