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.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://www.exploit-db.com/exploits/46511/ | exploit vdb entry third party advisory |
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/ | third party advisory exploit |
http://www.securityfocus.com/bid/107089 | vdb entry third party advisory |
http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html | exploit vdb entry third party advisory |
http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce | third party advisory exploit |
https://www.exploit-db.com/exploits/46662/ | mailing list exploit vdb entry third party advisory |
http://packetstormsecurity.com/files/161213/WordPress-5.0.0-Remote-Code-Execution.html | exploit vdb entry third party advisory |