Description
HortusFox (hortusfox-web) through 6.3 contains an unrestricted file upload vulnerability in PlantAttachmentModel that allows authenticated users to store files with client-supplied extensions under public/attachments/. Attackers can upload HTML or SVG files via /plants/attachments/add for stored cross-site scripting, or PHP files where .htaccess is unenforced to execute code.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
danielbrendel hortusfox-web
Default version status: unaffected
0 to ≤ 6.3affected
pkg:github/danielbrendel/hortusfox-webReferences
- https://github.com/danielbrendel/hortusfox-web ↗
- https://github.com/danielbrendel/hortusfox-web/security/advisories/GHSA-8phf-v3xj-8jjg ↗
- https://hackmd.io/@leediay/stored-xss-hortusfox-via-plant-attachment ↗
- https://github.com/danielbrendel/hortusfox-web/blob/v6.3/app/models/PlantAttachmentModel.php#L28-L31 ↗
- https://github.com/danielbrendel/hortusfox-web/blob/v6.3/app/resources/js/app.js#L466 ↗
- https://www.vulncheck.com/advisories/hortusfox-through-6.3-unrestricted-file-upload-via-plant-attachments ↗