Files
CVEs-PoC/2021/CVE-2021-24171.md
T
2024-06-18 02:51:15 +02:00

18 lines
1.1 KiB
Markdown

### [CVE-2021-24171](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24171)
![](https://img.shields.io/static/v1?label=Product&message=WooCommerce%20Upload%20Files&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=59.4%3C%2059.4%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-434%20Unrestricted%20Upload%20of%20File%20with%20Dangerous%20Type&color=brighgreen)
### Description
The WooCommerce Upload Files WordPress plugin before 59.4 ran a single sanitization pass to remove blocked extensions such as .php. It was possible to bypass this and upload a file with a PHP extension by embedding a "blocked" extension within another "blocked" extension in the "wcuf_file_name" parameter. It was also possible to perform a double extension attack and upload files to a different location via path traversal using the "wcuf_current_upload_session_id" parameter.
### POC
#### Reference
- https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/
#### Github
No PoCs found on GitHub currently.