Files
CVEs-PoC/2021/CVE-2021-29641.md
2025-09-29 21:09:30 +02:00

20 lines
1.1 KiB
Markdown

### [CVE-2021-29641](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29641)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brightgreen)
### Description
Directus 8 before 8.8.2 allows remote authenticated users to execute arbitrary code because file-upload permissions include the ability to upload a .php file to the main upload directory and/or upload a .php file and a .htaccess file to a subdirectory. Exploitation succeeds only for certain installations with the Apache HTTP Server and the local-storage driver (e.g., when the product was obtained from hub.docker.com).
### POC
#### Reference
- http://packetstormsecurity.com/files/162118/Monospace-Directus-Headless-CMS-File-Upload-Rule-Bypass.html
- http://seclists.org/fulldisclosure/2021/Apr/14
- https://sec-consult.com/vulnerability-lab/advisory/arbitrary-file-upload-and-bypassing-htaccess-rules-in-monospace-directus-headless-cms/
#### Github
No PoCs found on GitHub currently.