Description
Monica 5.0.0-beta.1 through 5.0.0-beta.5 contains an insecure direct object reference vulnerability that allows vault editors to delete other users' Uploadcare files by supplying their uuid. Attackers can register another account's file uuid in their own vault via UploadFile.php, then delete it so DeleteFileInStorage permanently removes it.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| monicahq | Monica | 5.0.0-beta.1 – ≤ 5.0.0-beta.5 | — |
References
- https://github.com/monicahq/monica/blob/v5.0.0-beta.5/app/Domains/Contact/ManageDocuments/Services/UploadFile.php#L18-L88 technical-description
- https://github.com/monicahq/monica/blob/v5.0.0-beta.5/app/Domains/Contact/ManageDocuments/Listeners/DeleteFileInStorage.php#L58-L73 technical-description
- VulnCheck Advisory: Monica 5.0.0-beta.1 through 5.0.0-beta.5 IDOR Uploadcare File Deletion via UploadFile third-party-advisory