Problem/Motivation
In this Drupal application, file or media fields may allow unsafe or overly broad file extensions (for example executable or script types), which increases the risk of malicious files being uploaded and potentially executed or served to end users.
Steps to reproduce
Proposed resolution
Add a new Security FitCheck group entry with the plugin FileUploadExtensionCheck that:
FileUploadExtensionCheck– scans all file/media field configurations for their allowed extensions, failing withFitWeight::Highwhen dangerous or unrestricted extensions are detected and listing the affected fields/content types.FileUploadSchemeCheck– optionally verifies that uploaded files are stored on non-executable schemes/paths (e.g. private or non-executable public locations), failing withFitWeight::Mediumwhen uploads are placed under executable paths.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3558972-5.patch | 13.79 KB | shubham.prakash |
Issue fork drupalfit-3558972
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 #2
harivansh commentedComment #3
harivansh commentedComment #4
shubham.prakash commentedComment #5
shubham.prakash commentedComment #6
shubham.prakash commentedComment #7
shubham.prakash commentedComment #9
harivansh commentedComment #11
harivansh commentedComment #12
harivansh commentedComment #13
harivansh commented.