.. / CVE-2021-24236

Exploit for WordPress Imagements <=1.2.5 - Arbitrary File Upload (CVE-2021-24236)

Description:

WordPress Imagements plugin through 1.2.5 is susceptible to arbitrary file upload which can lead to remote code execution. The plugin allows images to be uploaded in comments but only checks for the Content-Type in the request to forbid dangerous files. An attacker can upload arbitrary files by using a valid image Content-Type along with a PHP filename and code.

Nuclei Template

View the template here CVE-2021-24236.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2021/CVE-2021-24236.yaml
Copy

References:

https://wordpress.org/plugins/imagements/
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24236
https://nvd.nist.gov/vuln/detail/CVE-2021-24236
https://wpscan.com/vulnerability/8f24e74f-60e3-4100-9ab2-ec31b9c9cdea