PoC for Espo CRM 7.2.4 CVE-2023-5965 & CVE-2023-5966# PoC for Espo CRM 7.2.4 CVE-2023-5965 & CVE-2023-5965
## CVE-2023-5965
[Advisory](https://vulmon.com/vulnerabilitydetails?qid=CVE-2023-5965&scoretype=cvssv3)
``An authenticated privileged attacker could upload a specially crafted zip to the EspoCRM server in version 7.2.5, via the update form, which could lead to arbitrary PHP code execution.``
- To upload the file go to Administration => Upgrades

## CVE-2023-5966
[Advisory](https://vulmon.com/vulnerabilitydetails?qid=CVE-2023-5966&scoretype=cvssv3)
``An authenticated privileged attacker could upload a specially crafted zip to the EspoCRM server in version 7.2.5, via the extension deployment form, which could lead to arbitrary PHP code execution.``
- To upload the file go to Administration => Extensions


## PoC
- The zip files on this repo upload a web shell to /webshell.php
``Ex:``
https://localhost/espocrm/webshell.php?cmd=id
[4.0K] /data/pocs/bae24e09f665e02376257f39443bd2e83fdc1a55
├── [ 841] EspoCRM-weaponized-upgrade.zip
├── [1.2K] README.md
└── [1.2K] Weaponized_Extension.zip
1 directory, 3 files