cve/2021/CVE-2021-24236.md

19 lines
971 B
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2021-24236](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24236)
![](https://img.shields.io/static/v1?label=Product&message=Imagements&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=1.2.5%3C%3D%201.2.5%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 Imagements WordPress plugin through 1.2.5 allows images to be uploaded in comments, however only checks for the Content-Type in the request to forbid dangerous files. This allows unauthenticated attackers to upload arbitrary files by using a valid image Content-Type along with a PHP filename and code, leading to RCE.
### POC
#### Reference
- https://wpscan.com/vulnerability/8f24e74f-60e3-4100-9ab2-ec31b9c9cdea
#### Github
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/jinhuang1102/CVE-ID-Reports