File Resumable Upload
The module does not properly check who is allowed to use the upload forms. Anyone without logging in could start uploading files to forms they should not have access to and store partial files on the server. They could add data to the server but could not view any hidden information.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youAny site using this module.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate File Resumable Upload to 2.0.6.
For developers: what the fix changed
The fix adds access checks to the `onBuildForm` methods in `src/EventSubscriber/BuildForm.php` and `modules/file_resup_media_library/src/EventSubscriber/BuildForm.php` to verify that the current user has permission to create or update the entity, or access the media library, before allowing the upload.
Also in this release The release also added a composer.json file, improved upload request handling, and updated field settings to be read as booleans.
composer.json+30 −0file_resup.module+1 −1 fixfile_resup.services.yml+1 −1 fixjs/file-resup.js+4 −0 fixmodules/file_resup_media_library/file_resup_media_library.services.yml+1 −1 fixmodules/file_resup_media_library/src/EventSubscriber/BuildForm.php+50 −22 fixmodules/file_resup_media_library/src/Form/MediaLibraryAddFormUploadAlter.php+2 −2 fixsrc/Controller/UploadController.php+29 −14 fixsrc/EventSubscriber/BuildForm.php+67 −42 fixsrc/Form/FileFormAlterBase.php+10 −5 fixsrc/Form/FileWidgetFormAlter.php+2 −2 fix