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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| danielbrendel | hortusfox-web | ≤ 6.3 | — |
References
- https://github.com/danielbrendel/hortusfox-web product
- GitHub Security Advisory (GHSA-8phf-v3xj-8jjg) vendor-advisory
- https://hackmd.io/@leediay/stored-xss-hortusfox-via-plant-attachment technical-description
- https://github.com/danielbrendel/hortusfox-web/blob/v6.3/app/models/PlantAttachmentModel.php#L28-L31 technical-description
- https://github.com/danielbrendel/hortusfox-web/blob/v6.3/app/resources/js/app.js#L466 technical-description
- VulnCheck Advisory: HortusFox through 6.3 Unrestricted File Upload via Plant Attachments third-party-advisory