medium6.5Public exploit code
CVE-2019-8943
WordPress through 5.0.3 allows Path Traversal in wp_crop_image().
Public exploit code
Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.
- WordPress Core 5.0.0 - Crop-image Shell Upload (Metasploit)2019-04-05 · remote · php · Verified
- WordPress Core 5.0 - Remote Code Execution2019-03-01 · webapps · php
Impact
WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Wordpress | Wordpress | through 5.0.3 |
Weakness classification
References
- NVD record
- CVE.org record
- http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html
- http://packetstormsecurity.com/files/161213/WordPress-5.0.0-Remote-Code-Execution.html
- http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce
- http://www.securityfocus.com/bid/107089
- https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/
- https://www.exploit-db.com/exploits/46511/
- https://www.exploit-db.com/exploits/46662/
- http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html
- http://packetstormsecurity.com/files/161213/WordPress-5.0.0-Remote-Code-Execution.html
- http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce
- http://www.securityfocus.com/bid/107089
- https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/
- https://www.exploit-db.com/exploits/46511/
- https://www.exploit-db.com/exploits/46662/