Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-5965 PoC — Unrestricted Upload of File with Dangerous Type in EspoCRM

Source
Associated Vulnerability
Title:Unrestricted Upload of File with Dangerous Type in EspoCRM (CVE-2023-5965)
Description: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.
Description
PoC for Espo CRM 7.2.4 CVE-2023-5965 & CVE-2023-5966
Readme
# 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
  ![image](https://github.com/josemlwdf/CVE-2023-5965/assets/60181010/ebe1293b-d749-4a12-b1f4-41de2b222b5e)

## 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
  ![image](https://github.com/josemlwdf/CVE-2023-5965/assets/60181010/56087c0c-3c47-46c7-bda5-9004c85a2c3b)
  ![image](https://github.com/josemlwdf/CVE-2023-5965/assets/60181010/a3c6668d-a812-4ba3-83a1-acf8737bc3d6)

## PoC

- The zip files on this repo upload a web shell to /webshell.php

``Ex:``
 
     https://localhost/espocrm/webshell.php?cmd=id
File Snapshot

[4.0K] /data/pocs/bae24e09f665e02376257f39443bd2e83fdc1a55 ├── [ 841] EspoCRM-weaponized-upgrade.zip ├── [1.2K] README.md └── [1.2K] Weaponized_Extension.zip 1 directory, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →