addItemsSubmit() reads the number of items to add from $element['add']['more_items']['#value'] and stores it directly into form state without any server-side bound. The HTML #max attribute on the number input prevents this in normal browser usage, but a crafted POST request (or JavaScript manipulation of the max attribute) can submit an arbitrarily large value.
Issue fork element_multiple-3590246
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
facine commented