Skip to content

Files

Latest commit

 

History

History
24 lines (16 loc) · 539 Bytes

GrailsMassAssignment.md

File metadata and controls

24 lines (16 loc) · 539 Bytes

Pattern: Grails - mass assignment

Issue: -

Description

Untrusted input should not be allowed to set arbitrary object fields without restriction.

Example of violations:

   // Person would be a grails domain object
   def person = new Person(params)
   person.save()

   // or using .properties
   def person = Person.get(1)
   person.properties = params
   person.save()

Further Reading