Lucene search

K
wpvulndbNicholas FerreiraWPVDB-ID:60605E30-628C-4EB1-9D46-DED115AF5843
HistoryMar 08, 2023 - 12:00 a.m.

Drag and Drop Multiple File Upload PRO - Contact Form 7 Standard < 2.11.0 - Path Traversal

2023-03-0800:00:00
Nicholas Ferreira
wpscan.com
10
path traversal
file upload
contact form 7 standard

0.002 Low

EPSS

Percentile

61.6%

The plugin does not properly check the value of the input “upload_dir”, which is modifiable by the user. As a result, by changing the value of this input, it’s possible to upload a file anywhere writable in the webserver.

PoC

1. Create a contact form and add a “multiple file upload” field. 2. Add the contact form to a page using the contact-form-7 shortcode. 3. Visit the page on the frontend and drag a file into the upload section. 4. Intercept the request and append /../.. to the upload_dir parameter. 5. See that the file is uploaded outside of the wpcf7_drag-n-drop_uploads directory.

CPENameOperatorVersion
drag-n-drop-upload-cf7-prolt5.0.6.4

0.002 Low

EPSS

Percentile

61.6%

Related for WPVDB-ID:60605E30-628C-4EB1-9D46-DED115AF5843