Opened 5 years ago
Closed 3 days ago
#49725 closed defect (bug) (invalid)
Bug in plugin upload
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upload | Keywords: | |
Focuses: | administration | Cc: |
Description
bug in wordpress version 5.3.2
how to exploit:
- download wordpress and run into localhost.
- trying to upload plugin than they are showing here only upload .zip file.
- but we are trying to upload .php shell file.
- now see file is upload successfully in database.
Attachments (4)
Change History (8)
#1
@
5 years ago
- Keywords dev-feedback added
- Severity changed from critical to normal
- Summary changed from found a bug in wordpress version 5.3.2 to Bug in plugin upload
- Version 5.3.2 deleted
#2
@
5 years ago
Just did a quick test using Local by Flywheel. I got the same error as @mukesh27, and the plugin file was not present in my /wp-content/plugins
folder.
The file was available under /wp-content/uploads/2020/03 .
#3
@
2 months ago
- Keywords close added; dev-feedback removed
Hi All,
This doesn't appear to be an issue in the latest releases, and you cannot upload a single php file now. There is validation on the file upload input to only accept .zip files. However if you avoid that, and upload a php file regardless there is validation server side to stop the file from being read or stored within the site.
As of such I believe this ticket no longer applies to the current state of WordPress and can be closed.
#4
@
3 days ago
- Keywords close removed
- Resolution set to invalid
- Status changed from new to closed
Hi all, I've confirmed this is no longer an issue in the latest version of WP. As such, I'm going to close this ticket to help clean up Trac. If you think this is still a problem and can provide instructions on how to reproduce, please feel free to reopen.
Hi @offensive,
Welcome to WordPress Trac! Thanks for the ticket.
When I try to upload PHP file in plugin upload it shows me below error and uploaded file is move-in upload directory.
Installing Plugin from uploaded file: code.php
Unpacking the package…
The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
Before moving the file in the upload folder system need to check it uploaded file has valid format than and then move the file in the upload directory