Lucene search

K
wpvulndbViktor MarkopoulosWPVDB-ID:8F6E82D5-C0E9-468E-ACB8-7CD549F6A45A
HistoryMay 25, 2021 - 12:00 a.m.

SP Project & Document Manager < 4.22 - Authenticated Shell Upload

2021-05-2500:00:00
Viktor Markopoulos
wpscan.com
23
file upload vulnerability
php file upload
server security
webshell upload
plugin vulnerability
extension case sensitivity

EPSS

0.971

Percentile

99.8%

The plugin allows users to upload files, however, the plugin attempts to prevent php and other similar files that could be executed on the server from being uploaded by checking the file extension. It was discovered that php files could still be uploaded by changing the file extension’s case, for example, from “php” to “pHP”. The plugin does state that users can upload and manage files without limits, but also does attempt to prevent dangerous files from being uploaded, which was found to be inadequate.

PoC

1. Upload a webshell as web.php:

2. Intercept the request 3. Rename the dlg-upload-file[] parameter from web.php with web.pHP 4. Visit http://website.com/wp-content/uploads/sp-client-document-manager/[user’s uid]/web.php and use the webshell