WooCommerce Catalog Enquiry - Arbitrary File Upload



Description
Email from user:

"A 'fix' for the file upload vulnerability seems to have been introduced in version 3.0.2 with the cryptic description "Fixed some data issues."

However I hope you're aware that the vulnerability still exists and can be exploited by simply changing Content-Type in the HTTP request. You're trusting the client to be honest about Content-Type when you check "type" from $_FILES. The very first comment at http://php.net/manual/en/reserved.variables.files.php warns about this."

Additional notes:

File is uploaded to the '/wp-content/uploads/catalog_enquiry/' directory. Content type of "image/png" works.

Affects Plugin

fixed in version 3.1.0

References

CVE 2017-18592
URL https://www.pluginvulnerabilities.com/2017/04/20/arbitrary-file-upload-vulnerability-in-woocommerce-catalog-enquiry/

Classification

Type UPLOAD
CWE CWE-434

Miscellaneous

Submitter ethicalhack3r
Submitter Website https://dewhurstsecurity.com/
Submitter Twitter ethicalhack3r
Views 5779
Verified Yes
WPVDB ID 8865

Timeline

Publicly Published 2017-04-20 (over 2 years ago)
Added 2017-07-19 (over 2 years ago)
Last Updated 2019-11-01 (13 days ago)

Our Other Services

Online WordPress Vulnerability Scanner WPScan WordPress Security Plugin