WP is reasonably secure for default use cases. In typical workflow it will call wp_check_filetype_and_ext()
to verify that file uploaded is of allowed type.
It can get considerably more questionable in regards to security if you customize it to work with non–default kinds of files and you might need to implement your own security checks.
Note that users with special unfiltered_upload
capability will be able to upload absolutely anything at all, so be very careful if you are assigning it to any roles.
Related Posts:
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- Password protect some uploaded files, so only logged-in users can view them
- How to protect uploads in multisite if user is not logged in?
- making media URL secured
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- simple solution for restricting access to (some) uploads/downloads
- what happens to existing media files when I switch to year/month directory structure format?
- Set limit to media upload?
- Use a separate custom table (not posts) to handle file upload data
- Image upload callback in new 3.5 media
- Add inline uploader to plugin option page
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Differentiate Featured Image from Post Images upon Upload
- How to call WP3.5 Media Library manager?
- I want to replace a media file (pdf) with an updated version
- There’s a way to scale media (images) at 50%?
- How to get all files inserted (but not attached) to a post
- What are the security reasons to disallow Microsoft Word uploads?
- Media Uploader: get deleted files
- Trigger JS when featured image upload window is opened in admin
- Modify the array of selected images in media modal
- 3.5 media manager add CSS / JS to new ‘tab’ iframe content
- Add/change multipart_params parameter when uploading post image
- http error when uploading media files
- How to change “Publish” button text for specific page
- Saving WordPress generated thumbnails in a subdirectory
- Whole bunch of errors on WP website – media upload, edit slugs, edit screen not working [closed]
- Add select field to media uploader that adds a class to the image
- Retroactively place uploaded media into -month, -year based folders?
- wp.media add context
- How can I receive the image id using the media box?
- media sideload image not working with JPG file
- Insert Image automatically when upload finishes wordpress media uploader
- How do I modify the url of uploaded media content?
- How do I get allowed Media Library upload file extension list?
- Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback
- WordPress bug with capabilities?
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- Media Gallery Upload photo incorrect way like glitch
- media_handle_upload() progress bar
- WordPress uploads autocreate folder every month
- Enabling users to upload files
- ‘An error occurred in the upload. Please try again later.’ for users with different roles
- Is there a way to make my media files unsearchable?
- Is it possible to use media_sideload_image to upload local files?
- Attach media to post by media category
- upload_max_filesize is set to 64 MB already but WordPress is still showing 2 MB
- PHP error when trying to upload .mp3 files via Media Library [closed]
- How to fix the orientation of images when uploading via the WordPress Media Uploader? [closed]
- Is it possible to import all files from a uploads DIR into WP media, retaining paths to the files
- How does WordPress decides how many sizes of an image to create?
- Flat media folder vs multiple directories
- Move media files from the root to date folder structure
- Big file upload give HTTP error
- Can you limit the size of media files being uploaded not using php.ini?
- Image upload to media library fails. Folder won’t create, database insert fail, XAMPP Windows
- Send media uploads to different directories
- Open Media Uploader Link in single post or page
- Remove Media File Items From Server That Do Not Exist in Media Library
- How to change archieve frequency of the media file in uploads folder for wordpress blog
- Cropping thumbnails to specific dimensions on front end post
- How to limit sizes for specific upload programmatically?
- Using WP-CLI “wp media import” to sync files to the media library
- Import media (.xml) does not attribute featured images to posts
- Efficient way to move media folder to another folder
- Make inline uploader (plupload) on options page upload to a specific folder
- Blog suddenly can’t display .jpg
- MIME type not supporting HEIC support type in WordPress
- media file uploading
- Modify Maximum upload file size text in WordPress Media
- Replicate Media Galley Edit view in Add Media View
- Front-End Upload media with category
- How to manually set an attachment in a post?
- Adding attachment custom field metadata to TinyMCE tag
- Sanitizing existing media library paths and page links from foreign characters
- Issue with upload.php with media
- Media files not loading
- Media files not loading
- Set default “Link CSS Class” in add media admin editor
- media_sideload_image results in http error (500)
- How could you allow users to upload a video in within their profile and display it on a wordpress site?
- How to share media between independent blogs?
- media_handle_upload on mix form fields (not required file input)
- Check if author or uploader id of the attachment(uploaded) image is match?
- WP Capabilities to Add Media, Use Media, But Not Edit Them
- Limit attachment caption characters
- Don’t show avatars in media library
- Organizing the Media Library for Cleanup
- Drag and Drop Media Not Working in Windows 10 Edge Browser
- WP upload/select image , isn’t this a security issue?
- Insert media while posting is not working with new wordpress update
- Media Library broken images
- What is the best way to upload a temporary & sensitive file and then delete it when done
- Make custom thumbnail size image in media_sideload_image function
- Importing blog failed to download attachments from older (still online) blog
- Upload more than one media files with a post
- Media Gallery doesn’t show (using WP-Read Only)
- Single file upload
- Can’t upload files 1MB+ [closed]
- Image in binary in the data to WordPress media library